Network Management

 View Only
  • 1.  iMC compliance checks and jython scripts

    Posted Jan 29, 2013 05:57 PM

    Hi,

    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.

     

    Thanks.



  • 2.  RE: iMC compliance checks and jython scripts

    Posted Jan 30, 2013 07:54 AM

    Hi,

     

    I cannot help with a sample script, I can just refer you to this video for a basic compliance example:

    http://www.youtube.com/watch?v=LdqPLa0dgHU

     

    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,

     

    Best regards,Peter

     



  • 3.  RE: iMC compliance checks and jython scripts

    Posted Jan 30, 2013 12:25 PM

    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!



  • 4.  RE: iMC compliance checks and jython scripts

    Posted Jan 30, 2013 12:50 PM

     

    Northlanboy,

     

    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.

     

    Best regards,

    Franck



  • 5.  RE: iMC compliance checks and jython scripts

    Posted Jan 30, 2013 02:39 PM

    The eAPI is pretty cool, and sometimes it's the right answer, but I understand why you'd want to do it "inside" IMC itself.

     

    Do let us know how you get on - if you do manage to work out how to do it, there's plenty of others would like to know!



  • 6.  RE: iMC compliance checks and jython scripts

    Posted Jan 30, 2013 12:43 PM

    Hi Peter,

    thanks for the info.

    I will look at both.

     

     

    Best regards,

    Franck