[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-1534899 ] 5.3: Error messages when using VLAN
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2006-08-09 7:44:33
Message-ID: E1GAijx-0005mT-7G () sc8-sf-web3 ! sourceforge ! net
[Download RAW message or body]

Bugs item #1534899, was opened at 2006-08-04 19:41
Message generated for change (Comment added) made by nobody
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1534899&group_id=12694

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: agent
Group: linux
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: 5.3: Error messages when using VLAN interface

Initial Comment:
net-snmp-5.3-4.2 Fedora Core 5 RPM

Kernel downloaded from kernel.org:
Linux hostname 2.6.17.7-p1smp #1 SMP Thu Aug 3 13:47:30
PDT 2006 i686 i686 i386 GNU/Linux

When a vlan interface is up, the following two
messages appear in /var/log/messages every 30 seconds:

Aug  4 19:29:18 hostname snmpd[2060]: error on
subcontainer 'ia_addr' insert (-1)
Aug  4 19:29:18 hostname snmpd[2060]: error on
subcontainer '' insert (-1)


If I down the interface (#/sbin/ifconfig eth0.12 down),
the messages go away. If I bring the interface back
up, the messages reappear.

The vlan is NOT the same subnet as the main
interface. (Just a hunch this could be helpful).

eth0      inet addr:192.168.11.10  Bcast:192.168.11.255
 Mask:255.255.255.0

eth0.12   inet addr:192.168.12.30  Bcast:192.168.12.255
 Mask:255.255.255.0


eth0 is in my VLAN11, eth0.12 is VLAN12. It's connected
to a Cisco switch in TRUNK mode.

--- To set up a vlan interface --
modprobe 8021q
vconfig add eth0 12
ifconfig eth0.12 192.168.12.30 netmask 255.255.255.0 up

(Ok... I cheat and just use ifcfg-vlan12, but the 
above commands should work...)
---------------------------------

Contact: mike at pictage dot com



------ tail of strace for those interested -------
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 10
ioctl(10, SIOCGIFCONF, {128, {{"lo", {AF_INET,
inet_addr("127.0.0.1")}}, {"eth0", {AF_INET,
inet_addr("192.168.11.10")}}, {"eth1", {AF_INET,
inet_addr("75.24.254.129")}}, {"eth0.12", {AF_INET,
inet_addr("192.168.12.30")}}}}) = 0
ioctl(10, SIOCGIFCONF, {128, {{"lo", {AF_INET,
inet_addr("127.0.0.1")}}, {"eth0", {AF_INET,
inet_addr("192.168.11.10")}}, {"eth1", {AF_INET,
inet_addr("75.24.254.129")}}, {"eth0.12", {AF_INET,
inet_addr("192.168.12.30")}}}}) = 0
ioctl(10, SIOCGIFINDEX, {ifr_name="lo", ifr_index=1}) = 0
ioctl(10, SIOCGIFNETMASK, {ifr_name="lo",
ifr_netmask={AF_INET, inet_addr("255.0.0.0")}}) = 0
ioctl(10, SIOCGIFFLAGS, {ifr_name="lo",
ifr_flags=IFF_UP|IFF_LOOPBACK|IFF_RUNNING}) = 0
ioctl(10, SIOCGIFINDEX, {ifr_name="eth0", ifr_index=2}) = 0
ioctl(10, SIOCGIFNETMASK, {ifr_name="eth0",
ifr_netmask={AF_INET, inet_addr("255.255.255.0")}}) = 0
ioctl(10, SIOCGIFFLAGS, {ifr_name="eth0",
ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_MULTICAST})
= 0
ioctl(10, SIOCGIFINDEX, {ifr_name="eth1", ifr_index=3}) = 0
ioctl(10, SIOCGIFNETMASK, {ifr_name="eth1",
ifr_netmask={AF_INET, inet_addr("255.255.255.192")}}) = 0
ioctl(10, SIOCGIFFLAGS, {ifr_name="eth1",
ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_MULTICAST})
= 0
ioctl(10, SIOCGIFINDEX, {ifr_name="eth0.12",
ifr_index=4}) = 0
ioctl(10, SIOCGIFNETMASK, {ifr_name="eth0.12",
ifr_netmask={AF_INET, inet_addr("255.255.255.0")}}) = 0
ioctl(10, SIOCGIFFLAGS, {ifr_name="eth0.12",
ifr_flags=IFF_UP|IFF_BROADCAST|IFF_RUNNING|IFF_MULTICAST})
= 0
close(10)                               = 0
open("/proc/net/if_inet6", O_RDONLY|O_LARGEFILE) = 10
fstat64(10, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb70dc000
read(10, "00000000000000000000000000000001"..., 1024) = 216
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 11
ioctl(11, SIOCGIFINDEX, {ifr_name="lo", ifr_index=1}) = 0
close(11)                               = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 11
ioctl(11, SIOCGIFINDEX, {ifr_name="eth1", ifr_index=3}) = 0
close(11)                               = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 11
ioctl(11, SIOCGIFINDEX, {ifr_name="eth0.12",
ifr_index=4}) = 0
close(11)                               = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 11
ioctl(11, SIOCGIFINDEX, {ifr_name="eth0", ifr_index=2}) = 0
close(11)                               = 0
write(3, "error on subcontainer \'ia_addr\' "..., 44) = 44
time(NULL)                              = 1154744778
stat64("/etc/localtime", {st_mode=S_IFREG|0644,
st_size=1017, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644,
st_size=1017, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644,
st_size=1017, ...}) = 0
send(8, "<27>Aug  4 19:26:18 snmpd[2060]:"..., 77,
MSG_NOSIGNAL) = 77
read(10, "", 1024)                      = 0
close(10)                               = 0
munmap(0xb70dc000, 4096)                = 0
write(3, "error on subcontainer \'\' insert "..., 37) = 37
time(NULL)                              = 1154744778
stat64("/etc/localtime", {st_mode=S_IFREG|0644,
st_size=1017, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644,
st_size=1017, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644,
st_size=1017, ...}) = 0
send(8, "<27>Aug  4 19:26:18 snmpd[2060]:"..., 70,
MSG_NOSIGNAL) = 70
gettimeofday({1154744778, 160534}, NULL) = 0
gettimeofday({1154744778, 160583}, NULL) = 0
gettimeofday({1154744778, 160646}, NULL) = 0
gettimeofday({1154744778, 160704}, NULL) = 0
gettimeofday({1154744778, 160769}, NULL) = 0
select(10, [4 7 9], [], [], {0, 148970}) = 0 (Timeout)
gettimeofday({1154744778, 313530}, NULL) = 0
gettimeofday({1154744778, 313677}, NULL) = 0
gettimeofday({1154744778, 313792}, NULL) = 0
open("/proc/stat", O_RDONLY|O_LARGEFILE) = 10
read(10, "cpu  512 0 582 693540 902 12 67 "..., 768) = 656
close(10)                               = 0
open("/proc/vmstat", O_RDONLY|O_LARGEFILE) = 10
read(10, "nr_dirty 5\nnr_writeback 0\nnr_uns"..., 768)
= 703
close(10)                               = 0
gettimeofday({1154744778, 314660}, NULL) = 0
gettimeofday({1154744778, 314760}, NULL) = 0
gettimeofday({1154744778, 314858}, NULL) = 0
select(10, [4 7 9], [], [], {4, 999032}


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

Comment By: Nobody/Anonymous (nobody)
Date: 2006-08-09 00:44

Message:
Logged In: NO 

axel@straschil.com: Can confirm this on FC5, 2 VLans on one
Interface, snmpd bound to localhost, main IP and two virtual
IP's in one VLan, etherything works fine, only irritated by
the log messages:

Aug  9 09:43:13 infosrv2 snmpd[24755]: error on subcontainer
'ia_addr' insert (-1)
Aug  9 09:43:13 infosrv2 snmpd[24755]: error on subcontainer
'' insert (-1)
Aug  9 09:43:13 infosrv2 snmpd[24755]: error on subcontainer
'' insert (-1)
Aug  9 09:43:43 infosrv2 snmpd[24755]: error on subcontainer
'ia_addr' insert (-1)
Aug  9 09:43:43 infosrv2 snmpd[24755]: error on subcontainer
'ia_addr' insert (-1)
Aug  9 09:43:43 infosrv2 snmpd[24755]: error on subcontainer
'' insert (-1)

...

AXEL.

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

Comment By: Thomas Anders (tanders)
Date: 2006-08-04 19:48

Message:
Logged In: YES 
user_id=848638

1) Is anything not working or are your really just
complaining about the verboseness (possibly misleading error
messages, agreed) of the agent?
2) Can you try latest 5.3.1 and tell us whether you see the
same issue there?

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1534899&group_id=12694

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic