Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to load a set off MIB´s 1

Status
Not open for further replies.

RegioCom

IS-IT--Management
Feb 19, 2002
2
DE
Hello,

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.

best regards

Danny Buthge


 
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......

Sorry Mate

I will try and remember the file if it helps
 
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.

Danny
 
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.
 
Hi again,

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).

Hope this helps.

 
Are you sure about that?

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.

Gemini
 
i agree with openview21. it will load the mibs, but not the traps to the trapd.conf. there is only one way. the gui ;)
 
MS26,
openview21,

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.

Thanks
 
Hi all,

I have a possible answer to the original posters query.

I have written a script which runs using the perl which is shipped with HP OV to load in any number of mibs which are found in a named directory.

You can find the script at :
Nigel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top