Is there Junos command to get the number of security polices on the high end SRX device? Or how can be determined about how many security policies there are on the SRX?
I'm not aware of any built in feature to do this but this command will give the number of polcies configured.
show configuration security policies | match policy | count
You may use the hidden command "show security policies information" to get the policy utilization counters like number of current policies and Maximum limit etc...
root@srx> show security policies information Policy utilization counters: Number of policies : 0 / 80000 Number of global policies : 0 Number of policies with scheduler : 0 Number of policies with statistics enabled : 0 / 1024 Number of policy contexts : 0 / 8192 Number of Policies per context : 0 / 80000 Number of Source addresses per policy : 0 / 4096 Number of Destination addresses per policy : 0 / 4096 Number of Applications per policy : 0 / 3072 Number of Source identities per policy : 0 / 128
Both are worked.
"show security policy zone-context"
give you the count per zone-pair which IMHO is more important than the absolute number