- Community Home
- >
- Networking
- >
- IMC
- >
- iMC compliance checks and jython scripts
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2013 02:56 PM
01-29-2013 02:56 PM
iMC compliance checks and jython scripts
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2013 04:53 AM
01-30-2013 04:53 AM
Re: iMC compliance checks and jython scripts
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2013 09:24 AM
01-30-2013 09:24 AM
Re: iMC compliance checks and jython scripts
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2013 09:42 AM
01-30-2013 09:42 AM
Re: iMC compliance checks and jython scripts
Hi Peter,
thanks for the info.
I will look at both.
Best regards,
Franck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2013 09:49 AM - edited 01-30-2013 09:50 AM
01-30-2013 09:49 AM - edited 01-30-2013 09:50 AM
Re: iMC compliance checks and jython scripts
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2013 11:38 AM
01-30-2013 11:38 AM
Re: iMC compliance checks and jython scripts
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!