Re: Problem modifying trap destination etc. dynamically with snmpset

Boris Zweimueller <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
This was a type. It does really not work like this:

snmpset -v 3 -u boris localhost
SNMP-TARGET-MIB::snmpTargetAddrRowStatus.\'mytrap2\' = 5

Error in packet.
Reason: wrongLength (The set value has an illegal length from what the agent
expects)
Failed object: SNMP-TARGET-MIB::snmpTargetAddrRowStatus.'mytrap2'

Strangely it works for the snmpTargetParamsTable.

this

snmpset -v 3 -u boris localhost
SNMP-TARGET-MIB::snmpTargetParamsRowStatus.\'mytrap2\' i 5

works perfectly.

I really don't know that to do..

Boris


2010/6/10 Dave Shield <[email protected]>

> On 10 June 2010 10:52, Boris Zweimueller <[email protected]>
> wrote:
> > I try now to create a new row and set the values with seperate snmpset
> > commands as following
> >
> > snmpset -v 3 -u boris localhost
> > SNMP-TARGET-MIB::snmpTargetAddrRowStatus.\'index2'\ = 5
>
> You need to escape both quotes.
> i.e.
>     \'index2\'
>
> *not*
>     \'index2'\
>
> 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.