Is there a command line command I can use to output the current MIBs already
loaded in a particular MIB ascii (e.g., "snmpmib") or MIB binary (e.g.,
"snmpmib.bin") file? This info. is displayed via the GUI upon executing
"xnmloadmib", but I do not see a command line option for this same output.
Joe
-----Original Message-----
From: James Shanks [mailto:James_Shanks@TIVOLI.COM]
Sent: Wednesday, January 12, 2000 3:43 PM
To: NV-L@UCSBVM.UCSB.EDU
Subject: Re: Loading SNMPv1/SNMPv2 MIBs
Right. You can script using the -load parm. That is a common thing to do.
And
the man page for xnmloadmib2 (or xnmloadmib2 -?) lists other options to
make
this easier too. I recommend that if you are doing a lot of them you also
use
-noEvent and -replace , and if you are tight on space in /usr/OV be sure to
specify a different -wrkDir. If the compile fails, you may want to go to
/usr/OV/tmp and blow away the temp files there before restarting.
Also I would make sure you have the ulimits set to unlimited or sooner or
later
your script will exceed things like the data stack size (you end up holding
the
entire snmpv2mib.bin in storage when you compile).
Good luck
James Shanks
Tivoli (NetView for UNIX) L3 Support
"Prokott, Joe" <Joe.Prokott@WESTGROUP.COM> on 01/12/2000 03:31:09 PM
Please respond to Discussion of IBM NetView and POLYCENTER Manager on
NetView
<NV-L@UCSBVM.UCSB.EDU>
To: NV-L@UCSBVM.UCSB.EDU
cc: (bcc: James Shanks/Tivoli Systems)
Subject: Re: Loading SNMPv1/SNMPv2 MIBs
This didn't work. An error came up saying "invalid MIB table" upon trying
to load a new MIB after the copy.
It appears I can use the "-load" parameter with the xnmloadmib2 command so I
can script the loading of these MIBs rather than via the GUI, right?
Joe
-----Original Message-----
From: James Shanks [mailto:James_Shanks@TIVOLI.COM]
Sent: Tuesday, January 11, 2000 3:07 PM
To: NV-L@UCSBVM.UCSB.EDU
Subject: Re: Loading SNMPv1/SNMPv2 MIBs
Well, you could try this if you like, and it may even work, but it's not
supported. I'm sure it has not been tested.
Each mib compiler maintains its own binary file and its own text file and no
attempt has ever been made to make them interchangeable. Indeed, because
each
one has different parsing routines, it is hard to say whether they could
read
each other's binary files or not. If you want to really try this, then I
would
do it this way:
(1) make a backup copy of /usr/OV/conf/snmpv2mib
(2) make a backup copy of /usr/OV/conf/snmpv2mib.bin
(3) cp snmpmib snmpv2mib
(4) cp snmpmib.bin snmpv2mib.bin
(5) try loading a new MIB with xnmloadmib2.
You won't really know whether your copying was successful until you get the
first new MIB loaded, because the entire MIB database is re-compiled with
every
new MIB added to it. That's the acid test.
If it works, then please tell us all, but don't be surprised if it doesn't.
James Shanks
Tivoli (NetView for UNIX) L3 Support
"Prokott, Joe" <Joe.Prokott@WESTGROUP.COM> on 01/11/2000 03:54:59 PM
Please respond to Discussion of IBM NetView and POLYCENTER Manager on
NetView
<NV-L@UCSBVM.UCSB.EDU>
To: NV-L@UCSBVM.UCSB.EDU
cc: (bcc: James Shanks/Tivoli Systems)
Subject: Loading SNMPv1/SNMPv2 MIBs
Without having to reload all MIBs over again one-by-one, is there a way to
convert the existing SNMPv1 MIBs loaded into the SNMPv1/SNMPv2 NetView
browser? Can one just copy the "snmpmib.bin" file over to the
"snmpv2mib.bin" file and then just reload the few SNMPv2 MIBs (we have many
more SNMPv1 MIBs than SNMPv2)?
Joe Prokott
Network Architect
West Group
e-mail: joe.prokott@westgroup.com
|