"snmpwalk -v 2c localhost iftable" fails on hosts configured with virtual interface

"Liangliang Guo (SH/CBC)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <DDDB6B03EA991D4BA021F2B006495FB2082318@ecnbjmw513.eapac.ericsson.se>
Hello :
The command #snmpwalk -v 2c localhost iftable  does not works on  hosts
configured with virtual interface.
And I checked the source and find that the iftable MIB is implemented in
source interfaces.c 
The query goes to 
-->var_ifEntry--> getMibstat(MIB_INTERFACES, &ifstat,
sizeof(mib2_ifEntry_t),GET_EXACT, &IF_cmp, &interface) != 0)

And the function  getMibstat will get MIB-II statistics for all the
network interfaces,(even you only using snmpget to query information for
one interface). If either one of the gettings fails, it will not return
any entry of the iftable.So  on  the nodes where we got to  have virtual
interfaces in order to use Sun Cluster software, iftable is missing thus
LinkUP and LiknDown traps can not be send even we configure it through
snmpd.conf.
Maybe this is a fault for this software.
The vesion I used is 5.3.1.
So I  want to know are there any sloutions or patchs for this
problem?.Or I have to customize the code to skip checking the virtual
interface clprivnet0?Of cousre if the virtual interface can also be
monitored then it is better.

Attached is the log for snmpd using debug token kernel_sunos5 , the
clprivnet0 is  the virtual interface that existing after I installl Sun
Cluster Software 3.2.The snmpd fails to get the iftable entry for it.
2007-05-23 14:44:53 kernel_sunos5: getMibstat (6, *, 120, 1, *, *)
2007-05-23 14:44:53 kernel_sunos5: ... cache_valid 1 time 300 ttl 300
now 1179902693
2007-05-23 14:44:53 kernel_sunos5: ...... getmib (260, 22, ...)
2007-05-23 14:44:53 kernel_sunos5: ...... getmib returns 0
2007-05-23 14:44:53 kernel_sunos5: ... result 1 rc 0
2007-05-23 14:44:53 kernel_sunos5: ... getMibstat returns 0
2007-05-23 14:44:53 kernel_sunos5: ...... getif clprivnet0
2007-05-23 14:44:53 kernel_sunos5: class NULL, stat clprivnet0 not found
2007-05-23 14:44:53 kernel_sunos5: class NULL, stat clprivnet0 not found
2007-05-23 14:44:53 kernel_sunos5: class NULL, stat clprivnet0 not found
2007-05-23 14:44:53 kernel_sunos5: class NULL, stat clprivnet0 not found
2007-05-23 14:44:53 kernel_sunos5: ... result 1 rc -1
2007-05-23 14:44:53 kernel_sunos5: ... getMibstat returns 1
2007-05-23 14:44:53 mibII/interfaces: ... no mib stats



Best Regards

Leon Guo

Ericsson (China) Communication Co., Ltd
Address: No 1068 Tian Shan Xi Road  Zip Code: 200335
ECN: 887 29695
Tel: +86 21 22089695
Fax: +86 21 22088047
Email: [email protected]

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.