Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

disabling the ifTable and ifXtable - registering pdu failed: 263!

467 views
Skip to first unread message

EYRE Bernadette

unread,
Mar 30, 2009, 5:11:43 PM3/30/09
to
This is a multi-part message in MIME format.

--===============5413875551052110808==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C9B17B.E3FD6B8E"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C9B17B.E3FD6B8E
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Hello All,

I want to disable the ifTable and ifXtable implementation in the master =
agent
and register a private handler for the two oid in my sub-agent to handle =
the two mibs.=20

the two oids are:

/*-----------------------------------------------------------*/
static oid aSubagentIfTable_oid[] =3D {1,3,6,1,2,1,2,2};
size_t aSubagentIfTable_oid_len =3D OID_LENGTH(aSubagentIfTable_oid);

/*-----------------------------------------------------------*/
static oid aSubagentIfXTable_oid[] =3D {1,3,6,1,2,1,31,1,1};
size_t aSubagentIfXTable_oid_len =3D =
OID_LENGTH(aSubagentIfXTable_oid);

At the run time and at the sub-agent handler registration time these =
errors are displayed
on the window where the sub-agent is running in the forground:
registering pdu failed: 263!
registering pdu failed: 263!

I assumed that there is one of these messages for each registeration =
call I have in my sub-agent.
my registration call code for ifXTable is as follow:


netsnmp_mib_handler* handler =3D netsnmp_create_handler(
"aSubagentIfXTable", &aSubagentIfXTable_handler );

if (!handler)
{
snmp_log(LOG_ERR,
"%s | agent create IfXTable MIB oid handler failed\n", =
__FUNCTION__);
return -1;
}

regInfo =3D netsnmp_handler_registration_create( "aSubagentIfXTable", =
handler,
aSubagentIfXTable_oid, aSubagentIfXTable_oid_len,
HANDLER_CAN_RWRITE);

if (!regInfo)
{
snmp_log(LOG_ERR,
"%s | agent create IfXTable MIB oid handler registration =
failed\n", __FUNCTION__);
return -1;
}
=20
retVal =3D netsnmp_register_handler(regInfo);
if ( retVal !=3D MIB_REGISTERED_OK ) {
snmp_log(LOG_ERR,
"%s | agent IfXTable handler registration failed \n", =
__FUNCTION__);
return -1;

-------------------------------------------------------------------------=
-----------

similar code immediately after this is for ifTable oid registration.

I assumed that I have to recompile the master agent with =
--with-out-mib-modules=3D"if-mib ip-mib tunnel" and =
--disable-mfd-rewrites
options to disable the if-mip and ip-mip implementation from the main =
agent. this resulted in smaller main agent and smaller libnetsnmpmibs.so =
files.

after restarting both agents only one of the "registering pdu: 263!" =
message was displayed.

In addition and when testing with snmpwalk command the ifTable request =
is not passed to my sub-agent while the ifXTable request is.


Is there anything else left for me to do to have the master (main) agent =
call my ifTable handler for all snmp requests on this mib?

thanks
Bernadette Eyre

=20

------_=_NextPart_001_01C9B17B.E3FD6B8E
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7651.59">
<TITLE>disabling the ifTable and ifXtable - registering pdu failed: =
263!</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=3D2>Hello All,<BR>
<BR>
I want to disable the ifTable and ifXtable implementation in the master =
agent<BR>
and register a private handler for the two oid in my sub-agent to handle =
the two mibs.<BR>
<BR>
the two oids are:<BR>
<BR>
/*-----------------------------------------------------------*/<BR>
static oid aSubagentIfTable_oid[] =3D {1,3,6,1,2,1,2,2};<BR>
size_t aSubagentIfTable_oid_len&nbsp;&nbsp; =3D =
OID_LENGTH(aSubagentIfTable_oid);<BR>
<BR>
/*-----------------------------------------------------------*/<BR>
static oid aSubagentIfXTable_oid[] =3D {1,3,6,1,2,1,31,1,1};<BR>
size_t aSubagentIfXTable_oid_len&nbsp;&nbsp; =3D =
OID_LENGTH(aSubagentIfXTable_oid);<BR>
<BR>
At the run time and at the sub-agent handler registration time these =
errors are displayed<BR>
on the window where the sub-agent is running in the forground:<BR>
registering pdu failed: 263!<BR>
registering pdu failed: 263!<BR>
<BR>
I assumed that there is one of these messages for each registeration =
call I have in my sub-agent.<BR>
my registration call code for ifXTable is as follow:<BR>
<BR>
<BR>
&nbsp;netsnmp_mib_handler* handler =3D netsnmp_create_handler(<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&quot;aSubagentIfXTable&quot;, &amp;aSubagentIfXTable_handler );<BR>
<BR>
&nbsp;&nbsp; if (!handler)<BR>
&nbsp;&nbsp; {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; snmp_log(LOG_ERR,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;%s | agent create IfXTable =
MIB oid handler failed\n&quot;, __FUNCTION__);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<BR>
&nbsp;&nbsp; }<BR>
<BR>
&nbsp;regInfo =3D netsnmp_handler_registration_create( =
&quot;aSubagentIfXTable&quot;, handler,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp; aSubagentIfXTable_oid, aSubagentIfXTable_oid_len,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp; HANDLER_CAN_RWRITE);<BR>
<BR>
&nbsp;&nbsp; if (!regInfo)<BR>
&nbsp;&nbsp; {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; snmp_log(LOG_ERR,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;%s | agent create IfXTable =
MIB oid handler registration failed\n&quot;, __FUNCTION__);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<BR>
&nbsp;&nbsp; }<BR>
<BR>
&nbsp;&nbsp; retVal =3D netsnmp_register_handler(regInfo);<BR>
&nbsp;&nbsp; if ( retVal !=3D MIB_REGISTERED_OK ) {<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; snmp_log(LOG_ERR,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;%s =
|&nbsp; agent IfXTable handler registration failed \n&quot;, =
__FUNCTION__);<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<BR>
<BR>
-------------------------------------------------------------------------=
-----------<BR>
<BR>
similar code immediately after this is for ifTable oid registration.<BR>
<BR>
<BR>
<BR>
I assumed that I have to recompile the master agent with =
--with-out-mib-modules=3D&quot;if-mib ip-mib tunnel&quot; and =
--disable-mfd-rewrites<BR>
options to disable the if-mip and ip-mip implementation from the main =
agent. this resulted in smaller main agent and smaller libnetsnmpmibs.so =
files.<BR>
<BR>
after restarting both agents only one of the &quot;registering pdu: =
263!&quot; message was displayed.<BR>
<BR>
In addition and when testing with snmpwalk command the ifTable request =
is not passed to my sub-agent while the ifXTable request is.<BR>
<BR>
<BR>
Is there anything else left for me to do to have the master (main) agent =
call my ifTable handler for all snmp requests on this mib?<BR>
<BR>
thanks<BR>
Bernadette Eyre<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C9B17B.E3FD6B8E--


--===============5413875551052110808==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------

--===============5413875551052110808==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snm...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

--===============5413875551052110808==--

EYRE Bernadette

unread,
Mar 30, 2009, 9:02:03 PM3/30/09
to
This is a multi-part message in MIME format.

--===============5370991558081469959==


Content-class: urn:content-classes:message
Content-Type: multipart/alternative;

boundary="----_=_NextPart_001_01C9B19C.19D07F8B"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C9B19C.19D07F8B


Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


I changed the makefile and added mibII/interfaces to the list of the =
mibs to disable.
here is the configure command:
configure --with-install-prefix=3D$(BUILT_BASE)\
--prefix=3D/ --host=3D$(CCPREFIX) --target=3D$(CCPREFIX) =
--disable-perl\
--disable-embedded-perl --disable-perl-cc-checks \
--without-perl-modules --with-endianness=3D$(ENDIAN)\
--with-out-mib-modules=3D"if-mib mibII/interfaces"\
--with-default-snmp-version=3D"3" =
--with-sys-contact=3D"contact"\
--with-sys-location=3D"location" --with-logfile=3D"path" =
\
--with-persistent-directory=3D"path"

the compilation failed during the snmpd link
./.libs/libnetsnmpagent.so: undefined reference to `vacm_standard_views'
collect2: ld returned 1 exit status
make[2]: *** [snmpd] Error 1


is mibII/interfaces option valid?

I haven't been able to disable the processing of the ifTable from the =
main agent.
if you know how please help.
thanks,
Bernadette Eyre

Hello All,

the two oids are:

-------------------------------------------------------------------------=
-----------

thanks
Bernadette Eyre

=20


------_=_NextPart_001_01C9B19C.19D07F8B


Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7651.59">

<TITLE>RE: disabling the ifTable and ifXtable - registering pdu failed: =


263!</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=3D2>I changed the makefile and added mibII/interfaces to =
the list of the mibs to disable.<BR>
here is the configure command:<BR>
configure --with-install-prefix=3D$(BUILT_BASE)\<BR>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=

nbsp;&nbsp;&nbsp; --prefix=3D/ --host=3D$(CCPREFIX) =
--target=3D$(CCPREFIX) --disable-perl\<BR>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=

nbsp;&nbsp;&nbsp; --disable-embedded-perl --disable-perl-cc-checks \<BR>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=

nbsp;&nbsp;&nbsp; --without-perl-modules =
--with-endianness=3D$(ENDIAN)\<BR>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=

nbsp;&nbsp;&nbsp; --with-out-mib-modules=3D&quot;if-mib =
mibII/interfaces&quot;\<BR>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=

nbsp;&nbsp;&nbsp; --with-default-snmp-version=3D&quot;3&quot; =
--with-sys-contact=3D&quot;contact&quot;\<BR>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=

nbsp;&nbsp;&nbsp; --with-sys-location=3D&quot;location&quot; =
--with-logfile=3D&quot;path&quot; \<BR>


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=

nbsp;&nbsp;&nbsp; --with-persistent-directory=3D&quot;path&quot;<BR>
<BR>
the compilation failed during the snmpd link<BR>
./.libs/libnetsnmpagent.so: undefined reference to =
`vacm_standard_views'<BR>
collect2: ld returned 1 exit status<BR>
make[2]: *** [snmpd] Error 1<BR>
<BR>
<BR>
is mibII/interfaces option valid?<BR>
<BR>
I haven't been able to disable the processing of the ifTable from the =
main agent.<BR>
if you know how please help.<BR>
thanks,<BR>


Bernadette Eyre<BR>
<BR>
<BR>
<BR>
<BR>
<BR>

-----Original Message-----<BR>
From: EYRE Bernadette [<A =
HREF=3D"mailto:Bernade...@alcatel-lucent.com">mailto:Bernadette.Eyre=
@alcatel-lucent.com</A>]<BR>
Sent: Mon 3/30/2009 4:10 PM<BR>
To: net-snm...@lists.sourceforge.net<BR>
Subject: disabling the ifTable and ifXtable - registering pdu failed: =
263!<BR>
<BR>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C9B19C.19D07F8B--


--===============5370991558081469959==


Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------

--===============5370991558081469959==


Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Net-snmp-coders mailing list
Net-snm...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

--===============5370991558081469959==--

Dave Shield

unread,
Mar 31, 2009, 3:30:22 AM3/31/09
to
2009/3/30 EYRE Bernadette <Bernade...@alcatel-lucent.com>:

> I want to disable the ifTable and ifXtable implementation in the master
> agent

Starting the agent using "-I-ifTable -I-ifXTable" should do that, I think.

Dave

------------------------------------------------------------------------------

0 new messages