Proxy forwarder configuration help

Eitan Pilipski eitanp____qualcomm.com
Thu Apr 12 22:25:44 CEST 2001


At 08:35 AM 4/12/2001 +0000, Frank.Fock____t-online.de wrote:

>Hi Eitan,
>
>Do you have a COMMUNITY-MIB entry that points from the
>community 'public' to the context 'ads' with contextEngineID
>'public' as in your PROXY-MIB configuration?

Yes I have the following entry

name: public
secureName: public
engineId: public
contextName: ads
transportTag: access
storagType nonVoatile
status 1 active

Code:
idx = snmpCommunityEntry::instance->get_next_avail_index();
MibTableRow* cr = snmpCommunityEntry::instance->add_row(idx);

snmpCommunityEntry::instance->set_row(cr,
                                       OctetStr("public"),
                                       OctetStr("public"),
                                       OctetStr("public"),
                                       OctetStr("ads"),
                                       OctetStr("access"),
                                       3, 1);

In addition I also invoked:
snmp_community_mib::add_public();

What I see in the log is the following:

fro)(ver)(com)(type): (200), (1), (129.46.176.142/2029), (SNMPv2c), 
(public), (161).
20010412.13:18:02: 26701: (2)INFO   : snmpCommunityEntry: found v3 info for 
(community)(security_name)(tag): (public), (access).
20010412.13:18:02: 26701: (3)EVENT  : RequestList: received v1/v2c request 
(FOUND)(community)(cid)(cname)(filter_tag): : (TRUE), (public), (public), 
(ads), (access).
20010412.13:18:02: 26701: (1)DEBUG  : RequestList: proxy request detected 
(contextEngineID)(rid): : (public), (200).
20010412.13:18:02: 26701: (2)EVENT  : Agent: starting thread execution 
(pduType)(subrequests): (161), (1).
20010412.13:18:02: 26701: (2)EVENT  : Mib: processing proxy request 
(contextEngineID): (  70 75 62 6C 69 63 public).
20010412.13:18:02: 26701: (2)EVENT  : Agent: Proxy request (contextID): 
(6.112.117.98.108.105.99.0).
20010412.13:18:02: 26701: (6)DEBUG  : ProxyForwarder: matched proxy (pdu 
type)(type): (161), (1).
20010412.13:18:02: 26701: (6)DEBUG  : ProxyForwarder: matching (context 
engine id)(match): (public), (6), (public), (6).
20010412.13:18:02: 26701: (6)DEBUG  : ProxyForwarder: matched (context 
name)(match): (ads), (adsserv).
20010412.13:18:02: 26701: (3)INFO   : ProxyForwarder: no matching proxy entry.
20010412.13:18:02: 26701: (4)EVENT  : RequestList: sent report 
(rid)(tid)(to)(err)(send)(sz): (200), (0), (129.46.176.142/2029), (0), (0),(1).
20010412.13:18:02: 26701: (2)EVENT  : Agent: finished thread execution.

There is an entry with contextName: ads in the proxy-mib so why the proxy 
forwarder returns error no matching ?

Thanks



>Regards,
>Frank
>
> > Hi,
> >
> > Since my last email to the mailing list I got several responses
>(Thanks
> > every one). But unfortunately the proxy forwarder is still not
>working form me.
> >
> > My goal is to run two agents on the same machine, Solaris on port 161
>and
> > my private agent on port 4700.
> > I want to forward requests from port main agent (4700) to port 161 if
>they
> > are Solaris ones.
> > In the first stage I don't want to use v3, just a simple forward
>(later I
> > will add that)
> >
> > Here is the TARGET-MIB, PROXY-MIB,  configuration:
> >
> > snmpProxyTable:
> > Name: proxy
> > Type: read(1)
> > ContectEngineId: public
> > ContextName: ads
> > targetParamsIn: defaultV1Request
> > Single: ads
> > Multiple:
> > Storage: NonVolatile
> > Status: Active.
> >
> >
> > SnmpTagretAddrTable
> > Name: ads
> > Tdomain: snmpV2.1.1
> > Taddress: 127.0.0.1/161
> > Timeout: 1500
> > RetryCount: 3
> > tagList: v1request
> > AddrParams: defaultV1Request
> > Storage: nonVolatile
> > Status: active
> >
> > snmpTargetParamsTable:
> > name: defaultV1Request
> > MPmodel: 1
> > securityModel: 1
> > SecurityName: public
> > SecurityLevle: noAuthNoPriv(1)
> > Storage: nonVolatile
> > Status: active
> >
> > Following is the code
> >
> > Oidx idx = snmpProxyEntry::instance->get_next_avail_index();
> > MibTableRow* r = snmpProxyEntry::instance->add_row(idx);
> > snmpProxyEntry::instance->set_row(r, 1, "public", "solserv",
> > "defaultV1Request", "ads",  "", 3, rowActive);
> >
> >
> > OctetStr nm("ads");
> > Oidx tdomain("snmpV2.1.1");
> > OctetStr tadd("7F.00.00.01.00.A1"); // 127.0.0.1/161 (I also tried
>with my
> > machine ip/161)
> > OctetStr taglist("V1request");
> > OctetStr params("defaultV1Request");
> > snmpTargetAddrEntry::instance->add_entry(nm, tdomain, tadd, taglist,
>params);
> >
> >
> > OctetStr name("defaultV1Request");
> > OctetStr securityName("public");
> > snmpTargetParamsEntry::instance->add_entry(name, 1, 1, securityName,
>1);
> >
> >
> > The agent on port 4700 is processing requests, but I don't see any
> > forwarding when I try to query Solaris object.
> >
> > Thanks
> >
> >
> >
> > Eitan P.
> > Ext. 57327
> >
> >



Eitan P.
Ext. 57327




More information about the AGENTPP mailing list