Re: problem with snmpset. need help

2006-03-02 Thread Dave Shield
On Thu, 2006-03-02 at 09:27 +0530, [EMAIL PROTECTED] wrote:

> I have a problem with snmpset.

>   When  I try to set this variable with value 10.10.10.10 or the
> equivalent in hex 0A0A0A0A it sets the variable with a blank value.


>  /usr/local/bin/snmpset -v 1 -c public -t 60 -r 3 -Ont --
> 53.53.53.10:161 .1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 i 1
> .1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 i 1
>.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 d 10.10.10.10
> .1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 = INTEGER: 1
> .1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 = INTEGER: 1
> .1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 = STRING: "
>  
>  
>  
> "

Unfortunately, it's a bit difficult to see exactly what's happening
here.  Can you try running this with the '-d' option, to dump the
raw SNMP packets?   (For both 'd 10.10.10.10' and 'x 0A0A0A0A' forms)

Dave


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


problem with snmpset. need help

2006-03-01 Thread sushma.sangameswaran



Hi,
 
 I have a problem 
with snmpset. I am trying to set a octet-string variable in the MIB.Follwing is 
the type.

 InetAddress ::= 
OCTET STRING (SIZE (0..255))
 
  When  I try to set this 
variable with value 10.10.10.10 or the equivalent in hex 0A0A0A0A it sets the 
variable with a blank value. The same thing happens for 10.10.10.9 ,10.10.10.10, 
10.101.10.11,10.10.10.12,10.10.10.13, 9.9.9.9 to 9.9.9.13, 11.11.11.9 to 
11.11.11.13, 12.12.12.9 to 12.12.12.13 and 13.13.13.9 to 13.13.13.13. 

 
10.10.10.14 works fine. Please see the 
traces below. 
 
Setting as decimal 
string(10.10.10.10)
 
 /usr/local/bin/snmpset -v 1 -c public 
-t 60 -r 3 -Ont -- 53.53.53.10:161 .1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 i 1 
.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 . .1 
.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 d 
10.10.10.10.1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 = 
INTEGER: 1.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 = INTEGER: 
1.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 = STRING: "
 
 
 
"
 Setting as HEX 
(10.10.10.10)
 
/usr/local/bin/snmpset -v 1 -c public -t 60 
-r 3 -Ont -- 53.53.53.10:161 .1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 i 1 
.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 i 1 
.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 x 
0A0A0A0A.1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 = 
INTEGER: 1.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 = INTEGER: 
1.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 = STRING: "
 
 
 
"
Setting as decimal string 
(10.10.10.14)
 
/usr/local/bin/snmpset -v 1 -c public -t 60 
-r 3 -Ont -- 53.53.53.10:161 .1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 i 1 
.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 i 1 
.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 d 
10.10.10.14.1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 = 
INTEGER: 1.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 = INTEGER: 
1.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 = Hex-STRING: 0A 0A 0A 
0E
 
Setting as HEX 
(10.10.10.14)
 
/usr/local/bin/snmpset -v 1 -c public -t 60 
-r 3 -Ont -- 53.53.53.10:161 .1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 i 1 
.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 i 1 
.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 x 
0A0A0A0E.1.3.6.1.4.1.637.61.1.59.1.1.1.1412443904 = INTEGER: 
1.1.3.6.1.4.1.637.61.1.59.1.1.2.1412443904 = INTEGER: 
1.1.3.6.1.4.1.637.61.1.59.1.1.3.1412443904 = Hex-STRING: 0A 0A 0A 
0E
 
Thanks in advance
 
Regards
Sushma