You also got usage notes about other operands. Some of those are required
for addtrap to work.
What's missing is a "-i " operand indicating the enterprise id of "nai".
My guess is that you got a prior error when you ran mib2trap which said
that it could not determine the enterprise id.
Apparently the MIB with the trap definition does not contain the full
enterprise id specification of this vendor. Look in the IMPORTS section
of the MIB to determine what others from that vendor it requires. Probably
just one. Then obtain those prior MIBs and concatenate them together with
the one which has the entry which says
nai OBJECT IDENTIFIER ::= {enterprises nnn}
where "nnn" is their base enterprise number first, and then the MIB with
this trap definition last, and any other in-between. Then mib2trap on
this combined MIB and it should pull the enterprise id out of the big
file.
Alternatively, if you can determine what it is more easily by yourself,
just add the -i operand into your addtrap script.
Support will be glad to help you if you cannot make this work.
James Shanks
Level 3 Support for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group
bducharme@avdl.com
06/28/2002 09:28 AM
To: nv-l@lists.tivoli.com
cc:
Subject: [nv-l] Réf. : Re: [nv-l] loading mib files (Mcafee)
They are SNMP V1.
I've done the mib2trap command succesfully.
But when i tried to execute the result of the mib2trap i got this error
message:
"If arguments contain space, use the double quotation mark."
Here is the result of the mib2trap:
/usr/OV/bin/addtrap -l naiTrapWithAllFields -g 6 -s 9999 \
-n nai \
-o A -c "LOGONLY" -t 0 \
-S 1 \
-D "NAI Trap" \
-e naiTrapWithAllFields \
-F '$E $G $S $# args: $*'
Can someone guide me to found what is the problem ?
Thanks.
Ben
|---------+---------------------------->
| | jshanks@us.ibm.co|
| | m |
| | |
| | 2002-06-27 16:39 |
| | |
|---------+---------------------------->
>------------------------------------------------------------------------------------------------------------------------------|
| |
| Pour : nv-l@lists.tivoli.com |
| cc : |
| Objet : Re: [nv-l] loading mib files (Mcafee) |
>------------------------------------------------------------------------------------------------------------------------------|
Are they SNMP V1 MIBs or SNMP V2 MIBs?
Look at the IMPORTS section. All V2 MIBs import constructs from
SNMPv2-SMI
and SNMPv2-TC.
If that's the case, then you will need to use xnmloadmib2. If they are V1
MIBs, I'd use xnmloadmib so you will have an easier time with snmpCollect
(if that's whay you are loading them).
If what you are rtying to do is define traps, then you don't have to laod
the MIBs, you use mib2trap instead.
James Shanks
Level 3 Support for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group
bducharme@avdl.com
06/27/2002 03:52 PM
To: nv-l@lists.tivoli.com
cc:
Subject: [nv-l] loading mib files (Mcafee)
Hi
AIX 4.3.2, netview 6.2
I have two mib files that i have to load in Netview.
What is the best way to do it ?
Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com
*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com
*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com
*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)
|