Re: how to send octet string using snmptrap command

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 21 June 2010 12:01, Harendra Pratap Singh
<[email protected]> wrote:
> Could you please tell me how to send octet string using snmptrap command?

A binary octet string, or a printable octet string?

> Below is the command I am running
>
> /usr/bin/snmptrap 10.201.1.180:162 ' ' 1.3.6.1.4.1.7684.2.5.0.10
>     NOTIFICATION-MIB:RegId x sip-gw

Try using "NOTIFICATION-MIB:RegId s sip-gw" instead.

Other comments:
   - that's not actually a legal name for a MIB object
      Try running your NOTIFICATION-MIB through "smilint" or some
similar checker

   - the payload varbinds would normally include an instance subidentifier
     (i.e. similar to what you'd use with "snmpget")

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.