View Single Post
  #1 (permalink)  
Old 2007-07-24
mamakos mamakos is offline
Member
 
Join Date: 2007-01-19
Posts: 33
Rep Power: 0
mamakos has an average reputation (10+)
Default howto list installed policies (command or file)

Hello gentlemen, (and gentlewomen)

I am currently running NGX R60. I'd like to duplicate policies to have the latests installed renamed with a new naming convention. The thing is we have many modules (over 600 CMA thus making over 1200 fw modules) so I cannot afford using cpstat command to query each of my modules to know which policy package is installed on them. Indeed, I have a limited time and this command sometimes fails due to network latency of some other reasons.

On each CMA (i.e. like a smartcenter), we have several policy packages. But only one or two may be installed on the firewall (FW) modules managed by the CMA. I would like to retrieve the names of the policy packages that are currently installed on my modules.

With the dashboard, there is an option "File > Installed policies" that displays the policies that are installed on each FW module with this form :
FW Module | Name of the policy package | installed date
So I guess the dashboard retrieves this information from a file or built in command !

Do you, by chance, know a command (CLI) that would give me a similar output. Namely for each module, the name of the policy that is installed (again, I cannot afford to query my fw modules with cpstat).

Else do you know if there is a file that has this information ?

I need to write a script to get the list of installed policy packages...

Should you have any hint, please, feel free to share it with me !



PS : For your information, I know the audit log can give me an answer but it is not really practical to handle (it can take quite long to get the answer - 5 seconds per module are too much).
Reply With Quote