I am trying to use a subagent to access our enterprise MIB. 

I am using the daemon created when I built net-snmp. I build my subagent 
with :

    net-snmp-config --compile-subagent mysubagent mycompiledmib.c

mycompiledmib.c was generated using:

    mib2c -c mib2c.scalar.conf mycompiledmib

I made sure that all my mibs were in the mibs directory and that 
snmpd.conf included:

master agentx support
master agentx

When I do a SNMP walk, I am able to see iso / org / dod / internet / mgmt 
/ mib-2 / system but nothing else.

when I try to browse our enterprise oid (1.3.6.1.4.1.10604.1) I get 
nothing. 

I will be attaching the logging on the snmpd and sub-agent side for your 
reference. Any idea of what I am missing??


Thanks,

Mario Hebert

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I enabled agentx logging and got this on the snmpd side:

    agentx_register_app_config_handler: registering .conf token for 
"agentxsocket"
    agentx_register_app_config_handler: registering .conf token for 
"agentxperms"
    agentx_register_app_config_handler: registering .conf token for 
"agentxRetries"
    agentx_register_app_config_handler: registering .conf token for 
"agentxTimeout"
    Turning on AgentX master support.
    agentx/master: initializing...
    agentx/master: initializing...   DONE
    NET-SNMP version 5.4.2.1

On the subagent side I got:

agentx_register_app_config_handler: registering .conf token for 
"agentxsocket"
agentx/subagent: initializing....
agentx/subagent: subagent_init sess 00015270
agentx/subagent: initializing....  DONE
agentx/subagent: connecting to master...
agentx/subagent: agentx_reopen_session(0) called
agentx/subagent: opening session...
agentx/subagent: opening session
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: open
agentx/subagent:  trap session registered OK
agentx/subagent: registering callbacks for session 0x4f5a0
NET-SNMP version 5.4.2.1 AgentX subagent connected
agentx/subagent: opening session...  DONE (0x4f5a0)
agentx/subagent: registering: MEASUREMENT-MIB::testrequestTableSize
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: registered
agentx/subagent: registering: MEASUREMENT-MIB::actualparamTableSize
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: registered
agentx/subagent: registering: MEASUREMENT-MIB::measurementTableSize
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: registered
agentx/subagent: registering: MEASUREMENT-MIB::rawTableSize
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: registered
agentx/subagent: registering: MEASUREMENT-MIB::measAvailEvTrapEn
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: registered
agentx/subagent: registering: MEASUREMENT-MIB::measurementResult
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: registered
agentx/subagent: registering: PARAMETER-MIB::linetestTableSize
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: registered
agentx/subagent: registering: PARAMETER-MIB::parameterTableSize
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: registered
agentx/subagent: registering: CONFIGURATION-MIB::configurationTableSize
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: registered
agentx/subagent: registering: COMMAND-MIB::commandTableSize
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: registered
agentx/subagent: register ping alarm every 15 seconds
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: checking status of session 0x4f5a0
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: session 0x4f5a0 responded to ping
agentx/subagent: transport disconnect indication
agentx/subagent: unregistering callbacks for session 0x4f5a0


ZARLINK Semiconductor
Mario Hébert
Software engineer
Communications Products group
mario.hebertatzarlink.com  | www.zarlink.com

----------
This email is confidential and may contain information that is privileged and
exempt from disclosure by law.  If you have received it in error, please contact
the sender immediately by return email and then delete it from your system; you
should not copy it or disclose its contents to anyone.  Emails are not secure
and cannot be guaranteed to be error free as they can be intercepted, amended,
lost or destroyed, or contain viruses.  Anyone who communicates with us by email
is taken to accept these risks.

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to