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