Most viewed recipes by Peter Dilley http://code.activestate.com/recipes/users/4100123/views/2007-11-14T02:31:49-08:00ActiveState Code RecipesAutomation of unix shell or DOS shell programs (Python)
2007-11-14T02:31:49-08:00Peter Dilleyhttp://code.activestate.com/recipes/users/4100123/http://code.activestate.com/recipes/534161-automation-of-unix-shell-or-dos-shell-programs/
<p style="color: grey">
Python
recipe 534161
by <a href="/recipes/users/4100123/">Peter Dilley</a>
(<a href="/recipes/tags/sysadmin/">sysadmin</a>).
Revision 5.
</p>
<p>Every view months HP provides new SNMP MIB files for their new products (software and hardware). Using the provided HP shell commands mcompile and mxmib, you compile and register each .mib/.cfg file with their management software on a file by file basis. This script automates the process.</p>
<p>Shows:
o Automation of shell commands
o Using script/shell arguments
o Error checking
o OS independent file, path, directory handling
o Sequential programming</p>
<p>Prerequisites:
This script assumes you have HP Systems Insight Manager installed to provide the mcompile and mxmib programs if you wish to run it directly on your system.</p>