[AGENT++] setting rowstatus for cmd_exe_mib fails with error Reason Bad value

Ravi Kanth Vanapalli vvnrk.vanapalli at gmail.com
Mon Dec 28 22:45:13 CET 2015


Dear all,
  I have compiled example/cmd_exe_mib and run the agent in the folder src/
and run the agent on port 9500

  ./agent 9500

Issued SNMP set request to rowstatus command. It fails with Reason:
(badValue)

snmp set command used
------------------------------------
root at ravikanth-ubuntu:/home/ravikanth# snmpset -v 1 -c public
localhost:9500 .1.3.6.1.4.1.4976.6.1.2.2.2.1.5.1 i 5
Error in packet.
Reason: (badValue) The value given has the wrong type or length.
Failed object: SNMPv2-SMI::enterprises.4976.6.1.2.2.2.1.5.1

Note: the value of OID for rowstatus column is obtained from
COMMAND-EXECUTION-MIB last line as shown below for quick reference.

cmdExecutionCmdRowStatus OBJECT-TYPE SYNTAX RowStatus
        MAX-ACCESS read-create
        STATUS current
        DESCRIPTION "The row status of this conceptual row. When this row
is activated the specified command is executed. After execution the row
status is notInService."
 -- 1.3.6.1.4.1.4976.6.1.2.2.2.1.5 --  ::= { cmdExecutionCmdEntry 5 }



output of agentpp.
-----------------------


root at ravikanth-ubuntu:/home/ravikanth/Downloads/agent++-4.0.4/examples/cmd_exe_mib/src#
./agent 9500
20151228.16:34:49:   80 97 CC FB 24 7F 00 00
....$...
: (0)EVENT  : main: SNMP listen port: (9500)
20151228.16:34:49:   80 97 CC FB 24 7F 00 00
....$...
: (1)DEBUG  : TaskManager: thread started
20151228.16:34:49:   80 97 CC FB 24 7F 00 00
....$...
: (1)DEBUG  : TaskManager: thread started
20151228.16:34:49:   80 97 CC FB 24 7F 00 00
....$...
: (1)DEBUG  : TaskManager: thread started
20151228.16:34:49:   80 97 CC FB 24 7F 00 00
....$...
: (1)DEBUG  : TaskManager: thread started
20151228.16:34:49:   80 97 CC FB 24 7F 00 00
....$...
: (1)DEBUG  : TaskManager: thread started
20151228.16:34:49:   80 97 CC FB 24 7F 00 00
....$...
: (1)DEBUG  : TaskManager: thread started
20151228.16:34:58:   80 97 CC FB 24 7F 00 00
....$...
: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com)(type):
(1732722588), (1), (127.0.0.1/36252), (SNMPv1), (public), (163)
20151228.16:34:58:   80 97 CC FB 24 7F 00 00
....$...
: (1)DEBUG  : TaskManager: task manager found
20151228.16:34:58:   00 77 CC FB 24 7F 00 00
.w..$...
: (0)EVENT  : Agent: starting thread execution (pduType)(subrequests):
(163), (1)
20151228.16:34:58:   00 77 CC FB 24 7F 00 00
.w..$...
: (0)EVENT  : Mib: process request: set request (tid)(oid): (0),
(1.3.6.1.4.1.4976.6.1.2.2.2.1.5.1)
20151228.16:34:58:   00 77 CC FB 24 7F 00 00
.w..$...
: (0)EVENT  : Agent: preparing set request: (0)
20151228.16:34:58:   00 77 CC FB 24 7F 00 00
.w..$...
: (0)EVENT  : Agent: cleaning up set request: (0)
20151228.16:34:58:   00 77 CC FB 24 7F 00 00
.w..$...
: (2)EVENT  : RequestList: request answered (rid)(tid)(to)(err)(send)(sz):
(1732722588), (0), (127.0.0.1/36252), (3), (0), (1)
20151228.16:34:58:   00 77 CC FB 24 7F 00 00
.w..$...
: (0)EVENT  : Agent: finished thread execution


Can you please help me why setting the rowstatus is being failed ?

-- 
Regards,
RaviKanth VN Vanapalli


More information about the AGENTPP mailing list