- Products
- Learn
- Local User Groups
- Partners
- More
What's New in R82.10?
10 December @ 5pm CET / 11am ET
Improve Your Security Posture with
Threat Prevention and Policy Insights
Overlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
Is there anyway I can show all the rules under a specific section ?
thanks !!
I assume you mean via mgmt_cli/api method?
Andy
Yes. I showed rule-based to get all the sections based on the suggestion I got from the community. Now I moved to display all the rules in a specific section. I am wondering whether I can specify the section to search the rule base. Now I get the From and To for a section via show rule-based. then use them as offset and limit. It works. but I am wondering whether I can save the first step to get the From and To for a section.
thanks !!
Not sure until I can test it in the lab tomorrow. Whats the command you did? If you can give an example here, I can try it myself in R81.20 lab
Andy
First I use the following to get the rule range
show access-rulebase name ' security_package' limit 1200 | grep -A 3 'section'
Then I use the following to get the rules
show access-rulebase name 'security_package' limit " + str(limit) + " offset " + str(offset)
to get the range of rules.
Wondering whether I can combine these 2 into one.
thanks !!
Sorry, was busy today, had to do bunch of Fortigate stuff, but will try tomorrow, promise.
Cheers,
Andy
thanks !!
For you, no charge....EXCEPT iphone charge ; - )
Sorry for the delay, had another CP major ospf issue...NOT my favorite subject lol
Anyway, I ran the commands you gave, but so far, I cant logically see a way of combining them, but will keep trying.
Andy
thanks so much !!
Note that using a limit of greater than 500 with show access-rulebase will produce inconsistent results (namely, all the requested results may not be returned).
For this many rules, you will need to use multiple API calls with limit/offset to page through the results.
Bottom line: this operation cannot be done in a single operation and will probably have to be turned into a script.
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
Wed 03 Dec 2025 @ 10:00 AM (COT)
Última Sesión del Año – CheckMates LATAM: ERM & TEM con ExpertosThu 04 Dec 2025 @ 12:30 PM (SGT)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - APACThu 04 Dec 2025 @ 03:00 PM (CET)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - EMEAThu 04 Dec 2025 @ 02:00 PM (EST)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - AmericasWed 03 Dec 2025 @ 10:00 AM (COT)
Última Sesión del Año – CheckMates LATAM: ERM & TEM con ExpertosThu 04 Dec 2025 @ 12:30 PM (SGT)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - APACThu 04 Dec 2025 @ 03:00 PM (CET)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - EMEAThu 04 Dec 2025 @ 02:00 PM (EST)
End-of-Year Event: Securing AI Transformation in a Hyperconnected World - AmericasAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY