is there a chance to load MIB´s with a script, because
it´s really stupid to load every MIB i need, with the Load/unload tool in Openview.
We´re using HP OpenView 6.2 on a Windows2000 Server.
I have never managed to do this either and when using a mixed manufacture network this is very painful. I have noticed though it is possbile to copy one of the files at the end so if you rebuild the station you don't have to go through this process again.... however I have never tried it yet...I have never found the same management platform twice to use this file else where......
quote:"I have never found the same management platform twice to use this file else where"
I´m too, but i´want to setup a new collecting station and i
know the MIBs i need. So if i can load all the MIBs in one script i can save a lot of time.
I did this for my job. I created a shell script that uses HP Openview command "xnmloadmib" and use my MIB file name as input to the command. You propably want to look the use the help available in HP Openview NNM GUI to find out more about the command. Or you can also go the Openview bin directory (where the command is located) and type in "xnmloadmib ?" (this should give you a failure message and the correct arguments for using the command). I used the -load argument in my case to load my mib files.
I thought that I would send a snippet of my shell script file to show you how I did this in UNIX. Of course with Windows 2000, instead of making a shell script you would create a batch file and the path for Openview command would be different.
-- UNIX snippet
echo "Loading rfc1902-SNMPv2-SMI mib"
/opt/OV/bin/xnmloadmib -load /opt/OV/var/share/snmp_mibs/Standard/rfc1902-SNMPv2-SMI
echo "rfc1906-SNMPv2-TM"
/opt/OV/bin/xnmloadmib -load /opt/OV/var/share/snmp_mibs/Standard/rfc1906-SNMPv2-TM
echo "rfc1903-SNMPv2-TC"
/opt/OV/bin/xnmloadmib -load /opt/OV/var/share/snmp_mibs/Standard/rfc1903-SNMPv2-TC
echo "rfc1907-SNMPv2-MIB"
/opt/OV/bin/xnmloadmib -load /opt/OV/var/share/snmp_mibs/Standard/rfc1907-SNMPv2-MIB
echo "IANAifType-MIB"
/opt/OV/bin/xnmloadmib -load /opt/OV/var/share/snmp_mibs/Standard/IANAifType-MIB
echo "rfc1213-MIB-II "
/opt/OV/bin/xnmloadmib -load /opt/OV/var/share/snmp_mibs/Standard/rfc1213-MIB-II
echo "rfc2011-IP-MIB mib"
/opt/OV/bin/xnmloadmib -load /opt/OV/var/share/snmp_mibs/Standard/rfc2011-IP-MIB
echo "rfc2012-TCP-MIB"
/opt/OV/bin/xnmloadmib -load /opt/OV/var/share/snmp_mibs/Standard/rfc2012-TCP-MIB
echo "rfc2013-UDP-MIB"
/opt/OV/bin/xnmloadmib -load /opt/OV/var/share/snmp_mibs/Standard/rfc2013-UDP-MIB
---
I also had try testing using Windows NT.
I created a .bat file and replaced the UNIX path for $OV_BIN (/opt/OV/bin) with my Windows NT path (C:\openview\bin). Ditto for the SNMP MIBs directory (/opt/OV/var/share/snmp_mibs replaced with C:\openview\SNMP_MIBS).
as far as I know, /opt/OV/bin/xnmloadmib -load will not run the macro on the mib definition. Which means that if your mib needs to run some updates on the trapd.conf file, the command line will not do that. You need to use graphic tool in that case.
Agreed. To load the traps I tied using xnmevents [-load FILE| -replace FILE | -merge FILE] where FILE is a separate file with .conf format for my application. In my case, I wanted to handle traps in a specific way. RegioCom, do you need to load actions for traps, too?
Hello, I´m working with hp openview 6.2, my problem is the next:
I've load the unix mib into my NNM, but I can´t get any information from unix mib, I think that my snmp agent need the unix mib too. But the question is how can I add the mib unix to my snmp agent.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.