Yes..All use the payload varbinds from NOTIFICATION-MIB

summerwine:/usr/share/snmp/mibs # snmptranslate -Td NOTIFICATION-MIB:RegId

output of abov command..


RegId
RegId OBJECT-TYPE
  -- FROM       NOTIFICATION-MIB
  SYNTAX        OCTET STRING (80)
  MAX-ACCESS    read-only
  STATUS        current
  DESCRIPTION   " The string would contain the RegId for which the 
corresponding trap
          has been generated. "
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) nextone(7684) 
nxManagement(2) NotificationMib(5) Information(5) 1 }


Thanks,
Harendra

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf 
Of Dave Shield
Sent: Monday, June 21, 2010 6:08 PM
To: Harendra Pratap Singh
Cc: Net-SNMP users
Subject: Re: how to send octet string using snmptrap command

On 21 June 2010 13:30, Harendra Pratap Singh
<[email protected]> wrote:
> Mib file is located at /usr/share/snmp/mibs directory.
>
>
> File name is also corect as there are lots of other traps working.

Do these other traps use payload varbinds from NOTIFICATION-MIB?


> The problem with this is that the RegId  object is of octet string.

What does
    snmptranslate -Td NOTIFICATION-MIB:RegId
          report?

What happens if you omit this particular varbind from the command?
i.e.
    /usr/bin/snmptrap 10.201.1.180:162 ' ' 1.3.6.1.4.1.7684.2.5.0.10
             NOTIFICATION-MIB:Port i 1 NOTIFICATION-MIB:epOperStatus i 1
?

Dave

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to