snmp - How to set BITS data type in SNMPSET command? -
the mib oid object have data type 'bits':
object_oid composed type: bits base type: bits access: read-write kind: scalar smi type: object-type value list: doc (0) emta (1) cpe (2) from mib description, default defval { '00'h }. want set value 2 (cpe). tried set value command
snmpset -v2c -c public 192.168.100.1 [object_oid] b 2 but got
error in packet. reason: wrongvalue (the set value illegal or unsupported in way) tried also
snmpset -v2c -c public 192.168.100.1 [object_oid] 2 again error
error in packet. reason: wrongtype (the set datatype not match data type agent expects) snmpget against object returns hex-string: 00 proper format set value 2 bits data type?
you're using correct syntax set bits value. hazard guess agent implementation faulty (i.e. agent not following mib definition).
Comments
Post a Comment