I apologize James but I wasn't able to determine if there's a CLI command to provide you a counter of sorts. I'll keep checking and confirm either way. I do know that the system will relay an error message when the limit is reached upon making a commit.
'Constraints failed for entry: Maximum number of rules reached."
Unfortunately, there doesn't appear to be a CLI command that would provide a counter to indicate the number of NAT policies created. Recourse would be viewing the counter via GUI. If you'd like, you can submit a feature request for a CLI command to show this counter.
Thanks for the help! Follow up question. On a 4050, I ran the command but it did not provide an output even though I have NAT policy configured. Also, as a follow up, how do you configure max rules?
admin@ROUTER-2(active)> show resource limit policies
policy current rules max rules------------------------- --------------- ---------------Security 1 not configured
admin@ROUTER-2(active)> show resource limit policies | match natadmin@ROUTER-2(active)>
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!