Proxy Agent subtree parsing

soudovtsev____bluewin.ch soudovtsev____bluewin.ch
Tue May 14 08:45:59 CEST 2002


Hi all, 

I have a little problem using a proxy agent, not all subtrees are parsed
when I execute an snmpwalk command. What I've done is the following : 

- Create a Proxy Agent using MibProxy object (so it's an old style). 
- For each proxied agent I specify a subtree he exposes, the community and
the ip address. 
- The code to add a proxied agent information in the proxy agent is : 

       MibProxy* mp = new MibProxy( ( LPCTSTR ) subtree, READCREATE, hostUdpAddress
); 
       mp->set_community( READING, ( LPCTSTR ) readCommunity ); 
       mp->set_community( WRITING, ( LPCTSTR ) writeCommunity ); 
       m_mib.add( mp ); //m_mib is a Mib object 

I have tried the proxy agent on a Cisco router (in the proxy agent I expose
1.3.6.1.2.1 subtree). When I execute snmpwalk on my proxy agent I only receive
oids from 1.3.6.1.2.1.1.1.1 to 1.3.6.1.2.1.11.32. When I execute snmpwalk
on the router agent I got oids to 1.3.6.1.2.1.52.2.1 
It seems that after the table 11 the proxy agent cannot find the rest of
tables, and, according to the log, the proxy agent searches for the rest
in another mib table 

For example if I execute snmpwalk -p 1161 localhost test .1.3.6.1.2.1.44,
the log is : 

20020513.17:51:13: 465: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com)(type):
(26232), (1), (127.0.0.1/2005), (SNMPv1), (test), (1 
61) 
20020513.17:51:13: 465: (3)EVENT  : RequestList: received v1/v2c request
(FOUND)(community)(cid)(cname)(filter_tag): : (FALSE), (test), (), (), ()

20020513.17:51:13: 465: (7)DEBUG  : Vacm: getViewName for: (model) (name)
(level) (type) (context): (1), (test), (1), (1), () 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: getGroupName: (model) (name):
(1), (test), (1.3.6.1.6.3.16.1.2.1.3.1.4.116.101.115.116) 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: getViewName: (group) (context)
(model) (level) (type): (1.3.6.1.2.1Group), (), (1), (1), (1) 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: getViewName: (matched group):
(1.3.6.1.2.1Group) 
20020513.17:51:13: 465: (8)DEBUG  : Vacm: getViewName: (matching)(prefix)(context):
(1), (), () 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: getViewName: (matched context):
() 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: getViewName: (matched group):
(1.3.6.1.2.1Group) 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: Access requested for: (viewName)
(oid): (1.3.6.1.2.1ViewRead), (1.3.6.1.2.1.44) 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: isInMibView: (viewName) (subtree):
(1.3.6.1.2.1ViewRead), (1.3.6.1.2.1.44) 
20020513.17:51:13: 465: (8)DEBUG  : VacmViewTreeFamilyTable: isInMibView:
(viewName) (match): (1.3.6.1.2.1ViewRead), (1.3.6.1.2.1ViewRead) 
20020513.17:51:13: 465: (9)DEBUG  : Vacm: isInMibView: access allowed 
20020513.17:51:13: 465: (1)DEBUG  : TaskManager: task manager found 
20020513.17:51:13: 465: (2)DEBUG  : TaskManager: after notify 
20020513.17:51:13: 465: (2)EVENT  : Agent: starting thread execution (pduType)(subrequests):
(161), (1) 
20020513.17:51:13: 465: (2)EVENT  : Mib: process request: getnext request,
oid: (2), (1.3.6.1.2.1.44) 
20020513.17:51:13: 465: (3)EVENT  : Mib: process subrequest: getnext request,
oid: (2), (1.3.6.1.2.1.44) 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: Access requested for: (viewName)
(oid): (1.3.6.1.2.1ViewRead), (1.3.6.1.6.3.10.2.1.1.0) 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: isInMibView: (viewName) (subtree):
(1.3.6.1.2.1ViewRead), (1.3.6.1.6.3.10.2.1.1.0) 
20020513.17:51:13: 465: (8)DEBUG  : VacmViewTreeFamilyTable: isInMibView:
(viewName) (match): (1.3.6.1.2.1ViewRead), (1.3.6.1.2.1ViewRead) 
20020513.17:51:13: 465: (9)DEBUG  : Vacm: isInMibView: access allowed 
20020513.17:51:13: 465: (3)EVENT  : RequestList: finished subrequest (ind)(oid)(val):
(0), (1.3.6.1.6.3.10.2.1.1.0), (  80 00 13 70 05 31 31 36 31 
                    ...p.1161 
) 
Snmpx::send called with UTarget 
SnmpMsg: return status of snmpBuild (0) 
++ SNMP++: sending to 127.0.0.1/2005: 
30 82 00 32  02 01 00 04  04 74 65 73  74 A2 27 02 
02 66 78 02  01 00 02 01  00 30 1B 30  82 00 17 06 
0A 2B 06 01  06 03 0A 02  01 01 00 04  09 80 00 13 
70 05 31 31  36 31 
++ AGENT++: data received from 127.0.0.1 port 2005. 
30 23 02 01  00 04 04 74  65 73 74 A0  18 02 02 66 
79 02 01 00  02 01 00 30  0C 30 0A 06  06 2B 06 01 
02 01 2C 05  00 
20020513.17:51:13: 465: (2)EVENT  : RequestList: request received (id)(siz)(fro)(ver)(com)(type):
(26233), (1), (127.0.0.1/2005), (SNMPv1), (test), (1 
60) 
20020513.17:51:13: 465: (3)EVENT  : RequestList: received v1/v2c request
(FOUND)(community)(cid)(cname)(filter_tag): : (FALSE), (test), (), (), ()

20020513.17:51:13: 465: (7)DEBUG  : Vacm: getViewName for: (model) (name)
(level) (type) (context): (1), (test), (1), (1), () 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: getGroupName: (model) (name):
(1), (test), (1.3.6.1.6.3.16.1.2.1.3.1.4.116.101.115.116) 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: getViewName: (group) (context)
(model) (level) (type): (1.3.6.1.2.1Group), (), (1), (1), (1) 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: getViewName: (matched group):
(1.3.6.1.2.1Group) 
20020513.17:51:13: 465: (8)DEBUG  : Vacm: getViewName: (matching)(prefix)(context):
(1), (), () 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: getViewName: (matched context):
() 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: getViewName: (matched group):
(1.3.6.1.2.1Group) 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: Access requested for: (viewName)
(oid): (1.3.6.1.2.1ViewRead), (1.3.6.1.2.1.44) 
20020513.17:51:13: 465: (7)DEBUG  : Vacm: isInMibView: (viewName) (subtree):
(1.3.6.1.2.1ViewRead), (1.3.6.1.2.1.44) 
20020513.17:51:13: 465: (8)DEBUG  : VacmViewTreeFamilyTable: isInMibView:
(viewName) (match): (1.3.6.1.2.1ViewRead), (1.3.6.1.2.1ViewRead) 
20020513.17:51:13: 465: (9)DEBUG  : Vacm: isInMibView: access allowed 
20020513.17:51:13: 465: (2)EVENT  : RequestList: request answered (rid)(tid)(to)(err)(send)(sz):
(26232), (2), (127.0.0.1/2005), (0), (0), (1) 
20020513.17:51:13: 465: (2)EVENT  : Agent: finished thread execution 
20020513.17:51:13: 465: (1)DEBUG  : TaskManager: task manager found 
20020513.17:51:13: 465: (2)DEBUG  : TaskManager: after notify 
20020513.17:51:13: 465: (2)EVENT  : Agent: starting thread execution (pduType)(subrequests):
(160), (1) 
20020513.17:51:13: 465: (2)EVENT  : Mib: process request: get request, oid:
(3), (1.3.6.1.2.1.44) 
20020513.17:51:13: 465: (3)EVENT  : Mib: process subrequest: get request,
oid: (3), (1.3.6.1.2.1.44) 
20020513.17:51:13: 465: (3)EVENT  : RequestList: finished subrequest (ind)(oid)(val):
(0), (1.3.6.1.2.1.44), () 
Snmpx::send called with UTarget 
SnmpMsg: return status of snmpBuild (0) 
++ SNMP++: sending to 127.0.0.1/2005: 

Thank you, 
Anton. 




More information about the AGENTPP mailing list