dropping bad AgentX request (wrong mode 2)

"Jiang, Yiwen" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <B7B37C745D90DC45A70CA514EE82A6F918D4E12F29@NAVMAIL1.corp.navcan.ca>
Hi there,

I implemented a subagent that handles snmp requests for a proprietary MIB.  I can perform snmpwalk without issues.  However, when I attempt to use snmpset to set an integer variable to a different value, my subagent output this error:
    dropping bad AgentX request (wrong mode 2)
I am using net-snmp version 5.5

I googled on the net and the only source I got was http://www.mail-archive.com/[email protected]/msg15741.html but there were no follow up.  I did add 
    debug_register_tokens( "agentx/subagent" );
rebuilt and reran the subagent, and below is the output I got. Strange thing is that this error did not prevent the subagent to perform the expected actions. 

Can someone please help me in understanding why I am getting this error, and what I should do to get rid of this error please?

Thanks very much!
Yiwen

# ./ncSubAgent -f -L -DappRunTable,verbose:appRunTable,internal:appRunTable
No log handling enabled - turning on stderr logging
registered debug token appRunTable, 1
registered debug token verbose:appRunTable, 1
registered debug token internal:appRunTable, 1
verbose:appRunTable:init_appRunTable: called
verbose:appRunTable:initialize_table_appRunTable: called
internal:appRunTable:_appRunTable_initialize_interface: called
verbose:appRunTable:appRunTable_init_data: called
internal:appRunTable:_appRunTable_container_init: called
verbose:appRunTable:appRunTable_container_init: called
appRunTable:init_appRunTable: Registering appRunTable as a mibs-for-dummies table.
internal:appRunTable:_cache_load: called
verbose:appRunTable:appRunTable_container_load: called
verbose:appRunTable:appRunTable_container_load: inserted 0 records
NET-SNMP version 5.5 AgentX subagent connected
registered debug token agentx/subagent, 1



agentx/subagent: checking status of session 0x8695c30
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x8695c30 responded to ping
verbose:appRunTableEntry: readline read in: INTAS jXIO	1.0.1	26860	1	1		0	0Initial Application Registration
verbose:appRunTableEntry: readline read in: INTAS jXIO	1.0.1	26860	1	2		0	0Initial Application Registration
verbose:appRunTableEntry: readline read in: INTAS jXIO	1.0.1	26860	1	1		0	0Initial Application Registration

agentx/subagent: handling agentx request (req=0x11e,trans=0x11d,sess=0x21)
agentx/subagent:   -> testset
agentx/subagent: checking status of session 0x8695c30
internal:appRunTable:_cache_free: called
internal:appRunTable:_container_free: called
verbose:appRunTable:appRunTable_container_free: called
internal:appRunTable:_cache_load: called
verbose:appRunTable:appRunTable_container_load: called
internal:appRunTable:appRunTable_allocate_rowreq_ctx: called
verbose:appRunTable:appRunTable_rowreq_ctx_init: called
verbose:appRunTable:appRunTable_indexes_set: called
verbose:appRunTable:appRunTable_indexes_set_tbl_idx: called
verbose:appRunTable:appRunTable_index_to_oid: called
verbose:appRunTable:appRunTable_container_load: inserted 1 records
internal:appRunTable:_mfd_appRunTable_pre_request: called
verbose:appRunTable:appRunTable_pre_request: called
internal:appRunTable:_mfd_appRunTable_object_lookup: called
verbose:appRunTable:appRunTable_row_prep: called
internal:appRunTable:_mfd_appRunTable_check_objects: called
internal:appRunTable:_appRunTable_check_column: called for 8
verbose:appRunTable:appRunAdminState_check_value: called
agentx/subagent: synching input, op 0x01
agentx/subagent: handling agentx subagent set response (mode=162,req=0x11e,trans=0x11d,sess=0x21)
agentx/subagent:   going from RESERVE1 -> RESERVE2
agentx/subagent: session 0x8695c30 responded to ping
internal:appRunTable:_mfd_appRunTable_undo_setup: called
verbose:appRunTable:appRunTable_allocate_data: called
verbose:appRunTable:appRunTable_undo_setup: called
internal:appRunTable:_appRunTable_undo_setup_column: called for 8
verbose:appRunTable:appRunAdminState_undo_setup: called
agentx/subagent: handling agentx subagent set response (mode=162,req=0x11e,trans=0x11d,sess=0x21)
agentx/subagent:   FINISHED
agentx/subagent: handling agentx request (req=0x11f,trans=0x11d,sess=0x21)
agentx/subagent:   -> commitset
internal:appRunTable:_mfd_appRunTable_set_values: called
internal:appRunTable:_appRunTable_set_column: called for 8
verbose:appRunTable:appRunAdminState_set: called
internal:appRunTable:_mfd_appRunTable_check_dependencies: called
internal:appRunTable:appRunTable_check_dependencies: called
internal:appRunTable:_mfd_appRunTable_commit: called
verbose:appRunTable:appRunTable_commit: called
appRunTable:appRunTable_dirty_set: called. was 0, now 1
agentx/subagent: handling agentx request (req=0x11f,trans=0x11d,sess=0x21)
agentx/subagent:   -> commitset
dropping bad AgentX request (wrong mode 2)
agentx/subagent: handling agentx subagent set response (mode=162,req=0x11f,trans=0x11d,sess=0x21)
agentx/subagent:   FINISHED
agentx/subagent: handling agentx request (req=0x121,trans=0x11d,sess=0x21)
agentx/subagent:   -> cleanupset
agentx/subagent: handling agentx request (req=0x122,trans=0x120,sess=0x21)
agentx/subagent:   -> testset
internal:appRunTable:_mfd_appRunTable_irreversible:commit: called
internal:appRunTable:_mfd_appRunTable_undo_cleanup: called
verbose:appRunTable:appRunTable_undo_cleanup: called
verbose:appRunTable:appRunTable_release_data: called
internal:appRunTable:_mfd_appRunTable_post_request: called
verbose:appRunTable:appRunTable_post_request: called
appRunTable:appRunTable_dirty_set: called. was 1, now 0
agentx/subagent: handling agentx subagent set response (mode=162,req=0x121,trans=0x11d,sess=0x21)
agentx/subagent:   FINISHED
internal:appRunTable:_cache_free: called
internal:appRunTable:_container_free: called
verbose:appRunTable:appRunTable_container_free: called
internal:appRunTable:_container_item_free: called
internal:appRunTable:appRunTable_release_rowreq_ctx: called
verbose:appRunTable:appRunTable_rowreq_ctx_cleanup: called
internal:appRunTable:_cache_load: called
verbose:appRunTable:appRunTable_container_load: called
verbose:appRunTable:appRunTable_container_load: inserted 0 records
internal:appRunTable:_mfd_appRunTable_pre_request: called
verbose:appRunTable:appRunTable_pre_request: called
internal:appRunTable:_mfd_appRunTable_object_lookup: called
agentx/subagent: handling agentx subagent set response (mode=162,req=0x122,trans=0x120,sess=0x21)
agentx/subagent:   FINISHED
agentx/subagent: handling agentx request (req=0x123,trans=0x120,sess=0x21)
agentx/subagent:   -> cleanupset
internal:appRunTable:_mfd_appRunTable_post_request: called
verbose:appRunTable:appRunTable_post_request: called
agentx/subagent: handling agentx subagent set response (mode=162,req=0x123,trans=0x120,sess=0x21)
agentx/subagent:   FINISHED
^CappRunTable_subagent: select returns: -1
agentx/subagent: shutting down session....
agentx/subagent: closing session
agentx/subagent: synching input, op 0x01
agentx/subagent: closed
agentx/subagent: shut down finished.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.