Hi,
I have been integrating NetSNMP 5.4.2.1 with quagga-0.99.11 (bgpd).
Based on the referred doc
I wrote
smuxpeer .1.3.6.1.4.1.3317.1.2.2 mypassword in snmpd.conf
and
smux peer .1.3.6.1.4.1.3317.1.2.2 mypassword in bgpd.conf
but found the error
SMUX_CLOSE error : 5 in bgpd
and
refused smux peer: oid SNMPv2-SMI::enterprises.3317.1.2.2, descr quagga-0.99.11
in snmpd
Then I debugged the problem and went through 'smux.c'
I found that the two OID lengths were not same.
because I found that OID length for .1.3.6.1.4.1.3317.1.2.2 in
snmpd.conf gave the value 9 and bgpd.conf gave it 10. That was the precise
reason for the mismatch and then I added a '.2' in snmpd.conf parameter .
I gave
smuxpeer .1.3.6.1.4.1.3317.1.2.2.2 mypassword in
snmpd.conf
note that .2 is being added
and it ran successfully.
Given below is the code extract I changed by giving the printf while debugging.
aptr->sa_active_fd = -1;
aptr->sa_oid_len = MAX_OID_LEN;
read_objid( cptr, aptr->sa_oid, &aptr->sa_oid_len );
DEBUGMSGTL(("smux_conf", "parsing registration for: %s\n", cptr));
printf("\nsmux_conf parsing registration for: %s length : %d \n",
cptr,aptr->sa_oid_len);
password_cptr = strchr(cptr, ' ');
cptr_len = strlen(cptr);
printf("\nsmux_conf :password %s length:%d \n", cptr,cptr_len);
the values I'm getting are
cptr= .1.3.6.1.4.1.3317.1.2.2.2 demo
cptr_len= 30
I want to know that whether this is fine
Can anyone help me out
Thanks
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates.
Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of
this message without the prior written consent of the author of this e-mail is
strictly prohibited. If you have
received this email in error please delete it and notify the sender
immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders