01-29-2013 02:56 PM
is there any documentation about writing advanced compliance checks with custom jython scripts ?
The default policies already use jython scripts to make some specific check, like Vlan Tag.py or BPDU Filter.py.
I would like to write a custom script to check vlan configuration consistency on a given set of device interfaces.
01-30-2013 04:53 AM
I cannot help with a sample script, I can just refer you to this video for a basic compliance example:
I would also recommend to post the request on http://www.netopscommunity.net/ , a dedicated IMC forum, where some guys have already developed custom scripts for backup/restore of Fortinet devices for instance,
01-30-2013 09:24 AM
I thought I did have some examples somewhere, but I've been digging around, and can't find any specifics. Might have been something I saw last year at HP Discover. Quite agree that we need some good examples and API documentation here.
I tried reading some of the .py scripts, but they didn't help much!
01-30-2013 09:49 AM - edited 01-30-2013 09:50 AM
As the choice to use a jython script is given when creating a rule, yes it should be documented.
I've also look at the given scripts before posting here. Some are "understandable", like those who just check the value of an SNMP oid (like TC notification count), however nothing to really write an "advanced" check.
Another way I'm investigating at the moment is using the eAPI to reach my initial goal. There is at least a documentation for it. However I really want to use the compliance center and not an external custom application/script to make the job.
Btw, thanks for your reply.
01-30-2013 11:38 AM