Hi,

I am new to net-snmp and I am trying to run the example application that is 
given on the website but the master doesn't seem to forward the get request 
onto the subagent.  Well, I believe that is how it should work.

snmpd output:
Turning on AgentX master support.
tdomain: tdomain_transport_full("snmptrap", "localhost:11161", 0, "[NIL]", 
"[NIL]")
tdomain: Found no domain from specifier "localhost"
tdomain: Use application default domains "udp" "udp6"
tdomain: Found domain "udp" from specifier "udp"
tdomain: trying domain "udp" address "localhost:11161" default address ":162"
netsnmp_udp: open remote UDP: [127.0.0.1]:11161->[0.0.0.0]
netsnmp_udp: client open UDP: [127.0.0.1]:11161->[0.0.0.0]
snmp_agent: final port spec: "udp:localhost:11161"
snmp_agent: installing master agent on port udp:localhost:11161
tdomain: tdomain_transport_full("snmp", "udp:localhost:11161", 1, "[NIL]", 
"[NIL]")
tdomain: Found domain "udp" from specifier "udp"
tdomain: trying domain "udp" address "localhost:11161" default address ":161"
netsnmp_udp: open local UDP: [127.0.0.1]:11161->[0.0.0.0]
netsnmp_udp: set IP_PKTINFO
snmp_agent: init_master_agent; "udp:localhost:11161" registered as an agent NSAP
agentx/master: initializing...
tdomain: tdomain_transport_full("agentx", "udp:localhost:10161", 1, "[NIL]", 
"[NIL]")
tdomain: Found domain "udp" from specifier "udp"
tdomain: trying domain "udp" address "localhost:10161" default address "[NIL]"
netsnmp_udp: open local UDP: [127.0.0.1]:10161->[0.0.0.0]
netsnmp_udp: set IP_PKTINFO


subagent output:
agentx/subagent: connecting to master...
agentx/subagent: agentx_reopen_session(0) called
agentx/subagent: opening session...
netsnmp_udp: open remote UDP: [127.0.0.1]:10161->[0.0.0.0]
netsnmp_udp: client open UDP: [127.0.0.1]:10161->[0.0.0.0]
agentx/subagent: opening session
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: registered
agentx/subagent: register ping alarm every 2400 seconds
example-demon is up and running.


snmpget: ./snmpget -v 2c -r 0 -c mycommunity localhost:11161 
NET-SNMP-TUTORIAL-MIB::nstAgentSubagentObject.0
Timeout: No Response from localhost:11161.

snmpd output after snmpget:
Received SNMP packet(s) from UDP: [127.0.0.1]:49156->[127.0.0.1]
dumpv_recv:  Integer:   1 (0x01)
dumpv_recv:      Integer:       1 (0x01)
dumpv_recv:     Command GET
dumpv_recv:        Integer:     1269434020 (0x4BAA06A4)
dumpv_recv:        Integer:     0 (0x00)
dumpv_recv:        Integer:     0 (0x00)
dumpv_recv:            ObjID: NET-SNMP-EXAMPLES-MIB::netSnmpExamples.4.1.1.2.0
  GET message
    -- NET-SNMP-EXAMPLES-MIB::netSnmpExamples.4.1.1.2.0
agentx/master: agentx master handler starting, mode = 0xa0
agentx/master: request for variable 
(NET-SNMP-EXAMPLES-MIB::netSnmpExamples.4.1.1.2.0)

Sending 60 bytes to UDP: unknown
results: request results (status = 0):
results:        NET-SNMP-EXAMPLES-MIB::netSnmpExamples.4.1.1.2.0 = No Such 
Instance currently exists at this OID


Any help would be appreciated.  Thank you.
Nadia Bibbs


______________________________________________

See  http://www.peak6.com/email_disclaimer.php
for terms and conditions related to this email
------------------------------------------------------------------------------
_______________________________________________
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