nv-l
[Top] [All Lists]

Re: [nv-l] Réf. : Re: [nv-l] loading mib files (Mcafee)

To: bducharme@avdl.com
Subject: Re: [nv-l] Réf. : Re: [nv-l] loading mib files (Mcafee)
From: netview@toddh.net (Todd H.)
Date: 28 Jun 2002 11:05:16 -0500
Cc: nv-l@lists.tivoli.com
Reply-to: nv-l@lists.tivoli.com
bducharme@avdl.com writes:
> 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 ?

What you're getting is the usage error for addtrap which says it
doesn't like something about the syntax.  The bit about arguments
containing a space is just the last portion of that help text.  

I don't see a numeric OID in your command with a -i which tradp.conf
needs.  Its absence probably indicates that you had errors or warnings
when running mib2trap that weren't addressed.

The trickiest part of mib2trap is that you need to concatenate enough
mib files together so the processor can diving the entire numeric
OID.  Start with the mib file you want, and analyze the INCLUDES
section and make sure that every file its dependent on is included in
the text file you feed to mib2trap.  

This is an exercise that's worth doing manually to understand the mib
file syntax, and how to build up that numeric OID by working backwards
from last digit to the first, through included files to get what you
need.  At least then you know how mib2trap has to think in order to
get that OID. 

I wish I had better news, but this is an ugly part of the learning
curve--a function of SNMP's not being quite as "simple" as the authors
might want you to believe.  8-)


The book "Understanding SNMP MIB's"  is very useful in easing this
learning process. 

Best Regards, 
--
Todd H.  
http://www.toddh.net/

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [nv-l] Réf. : Re: [nv-l] loading mib files (Mcafee), Todd H. <=

Archive operated by Skills 1st Ltd

See also: The NetView Web