Errors in accessing Table objects
"Karthikeyan Ramasubramanian" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I am trying to use the table objects. I am using the master agent-
subagent approach. My code runs as a subagent communicating with master
agent via default AgentX socket. The table object are external to the
subagent. I am using the table iterator approach for creating and accessing
the object. I am using the NET-SNMP-EXAMPLES-MIB and netSnmpIETFWGTable
which has been provided in the Net-snmp Wiki tutorials. But the issue is
whenever I try to do snmpset or snmpwalk I get the error messages. Can
anybody help me solve the issue.
SNMPSET
snmpset -v 3 -u myuser -l authNoPriv -a MD5 -A my_password localhost
nsIETFWGChair1.\"sming\" = "David Durham"
Error in packet.
Reason: wrongLength (The set value has an illegal length from what the agent
expects)
Failed object: NET-SNMP-EXAMPLES-MIB::nsIETFWGChair1."sming"
snmpset -v 3 -u myuser -l authNoPriv -a MD5 -A my_password localhost
nsIETFWGChair2.\"sming\" = "Karthik"
Error in packet.
Reason: wrongLength (The set value has an illegal length from what the agent
expects)
Failed object: NET-SNMP-EXAMPLES-MIB::nsIETFWGChair2."sming"
SNMPWALK
snmpwalk -v 3 -u myuser -l authNoPriv -a MD5 -A my_password localhost
netSnmpIETFWGTable
Error in packet.
Reason: (genError) A general failure occured
Failed object: NET-SNMP-EXAMPLES-MIB::netSnmpIETFWGTable
These are the debug info from the snmpd.log file
agent_set: doing set mode = 0 (SET_RESERVE1)
agentx/master: agentx master handler starting, mode = 0x00
agentx/master: request for variable
(NET-SNMP-EXAMPLES-MIB::nsIETFWGChair1."sming")
agentx: sending pdu (req=0x3,trans=0x2,sess=0x5)
agentx_build: packet built okay
agent_set: did set mode = 0, status = 0
results: request results (status = 0):
results: NET-SNMP-EXAMPLES-MIB::nsIETFWGChair1."sming" = STRING:
"David Durham"
agentx/master: got response errstat=8, (req=0x3,trans=0x2,sess=0x5)
agentx/master: agentx_got_response() error branch
agentx/master: end error branch
agent_set: doing set mode = 4 (SET_FREE)
agentx/master: agentx master handler starting, mode = 0x04
agentx/master: request for variable
(NET-SNMP-EXAMPLES-MIB::nsIETFWGChair1."sming")
agentx: sending pdu (req=0x4,trans=0x2,sess=0x5)
agentx_build: packet built okay
agent_set: did set mode = 4, status = 8
agentx/master: handle pdu (req=0x5187f718,trans=0x0,sess=0x5)
agentx/master: send response, stat 0 (req=0x5187f718,trans=0x0,sess=0x5)
agentx_build: packet built okay
agentx/master: handle pdu (req=0x5187f719,trans=0x0,sess=0x5)
agentx/master: send response, stat 0 (req=0x5187f719,trans=0x0,sess=0x5)
agentx_build: packet built okay
agentx/master: handle pdu (req=0x5187f71a,trans=0x0,sess=0x5)
agentx/master: send response, stat 0 (req=0x5187f71a,trans=0x0,sess=0x5)
agentx_build: packet built okay
agent_set: doing set mode = 0 (SET_RESERVE1)
agentx/master: agentx master handler starting, mode = 0x00
agentx/master: request for variable
(NET-SNMP-EXAMPLES-MIB::nsIETFWGChair2."sming")
agentx: sending pdu (req=0x7,trans=0x6,sess=0x5)
agentx_build: packet built okay
agent_set: did set mode = 0, status = 0
results: request results (status = 0):
results: NET-SNMP-EXAMPLES-MIB::nsIETFWGChair2."sming" = STRING:
"Karthik"
agentx/master: got response errstat=8, (req=0x7,trans=0x6,sess=0x5)
agentx/master: agentx_got_response() error branch
agentx/master: end error branch
agent_set: doing set mode = 4 (SET_FREE)
agentx/master: agentx master handler starting, mode = 0x04
agentx/master: request for variable
(NET-SNMP-EXAMPLES-MIB::nsIETFWGChair2."sming")
agentx: sending pdu (req=0x8,trans=0x6,sess=0x5)
agentx_build: packet built okay
agent_set: did set mode = 4, status = 8
agentx/master: handle pdu (req=0x5187f71b,trans=0x0,sess=0x5)
agentx/master: send response, stat 0 (req=0x5187f71b,trans=0x0,sess=0x5)
agentx_build: packet built okay
agentx/master: handle pdu (req=0x5187f71c,trans=0x0,sess=0x5)
agentx/master: send response, stat 0 (req=0x5187f71c,trans=0x0,sess=0x5)
agentx_build: packet built okay
agentx/master: agentx master handler starting, mode = 0xa1
agentx/master: request for variable
(NET-SNMP-EXAMPLES-MIB::netSnmpIETFWGTable)
agentx/master: EXCLUSIVE varbind NET-SNMP-EXAMPLES-MIB::netSnmpIETFWGTable
scoped to NET-SNMP-EXAMPLES-MIB::netSnmpHostsTable
agentx: sending pdu (req=0xb,trans=0xa,sess=0x5)
agentx_build: packet built okay
results: request results (status = 0):
results: NET-SNMP-EXAMPLES-MIB::netSnmpIETFWGTable = NULL
agentx/master: transport disconnect on session 0x8c42fd8
agentx/master: close 0x8c42fd8, -1
results: getnext results, before next pass:
results: NET-SNMP-EXAMPLES-MIB::netSnmpIETFWGTable = NULL
results: request results (status = 0):
results: NET-SNMP-EXAMPLES-MIB::netSnmpIETFWGTable = No Such Object
available on this agent at this OID
--
R.Karthikeyan
"Vision without action is a Daydream. Action without vision is a Nightmare"
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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