1 simple question about network statistics for vnics: We noticed that the statistics for vnics (used by Virtualbox guests) are not there. When the nics are plumped in the host OS, we do see them showing up, but all all records are 0. Can someone tell me how to get the correct network info via snmp on the Vbox Host?? Thanks in advance. IF-MIB::ifDescr.1 = STRING: lo0 IF-MIB::ifDescr.2 = STRING: ibd0 IF-MIB::ifDescr.3 = STRING: ibd1 IF-MIB::ifDescr.4 = STRING: nge0 IF-MIB::ifDescr.5 = STRING: nge1 IF-MIB::ifDescr.6 = STRING: vboxnet0 IF-MIB::ifDescr.7 = STRING: m121_vnic1 IF-MIB::ifDescr.8 = STRING: m121_vnic2 IF-MIB::ifDescr.9 = STRING: m115_vnic1 IF-MIB::ifDescr.10 = STRING: m115_vnic2 IF-MIB::ifDescr.11 = STRING: m119_vnic1 IF-MIB::ifDescr.12 = STRING: m119_vnic2 IF-MIB::ifInOctets.1 = Counter32: 0 IF-MIB::ifInOctets.2 = Counter32: 3436035 IF-MIB::ifInOctets.3 = Counter32: 45735 IF-MIB::ifInOctets.4 = Counter32: 1749172 IF-MIB::ifInOctets.5 = Counter32: 1997541 IF-MIB::ifInOctets.6 = Counter32: 0 IF-MIB::ifInOctets.7 = Counter32: 0 IF-MIB::ifInOctets.8 = Counter32: 0 IF-MIB::ifInOctets.9 = Counter32: 0 IF-MIB::ifInOctets.10 = Counter32: 0 IF-MIB::ifInOctets.11 = Counter32: 0 IF-MIB::ifInOctets.12 = Counter32: 0 IF-MIB::ifOutOctets.1 = Counter32: 0 IF-MIB::ifOutOctets.2 = Counter32: 4572954 IF-MIB::ifOutOctets.3 = Counter32: 38202 IF-MIB::ifOutOctets.4 = Counter32: 1174436 IF-MIB::ifOutOctets.5 = Counter32: 378432 IF-MIB::ifOutOctets.6 = Counter32: 17061 IF-MIB::ifOutOctets.7 = Counter32: 0 IF-MIB::ifOutOctets.8 = Counter32: 0 IF-MIB::ifOutOctets.9 = Counter32: 0 IF-MIB::ifOutOctets.10 = Counter32: 0 IF-MIB::ifOutOctets.11 = Counter32: 0 IF-MIB::ifOutOctets.12 = Counter32: 0 -- This message posted from opensolaris.org
Kristof, the statistics incremented by the IP layer inside the Virtualbox guests are visible inside those guests only and not in the host. The total bytes IN/OUT/Dropped per vnic stats are updated and visible in the host. Kais On 06/19/09 07:30, kristof wrote:> 1 simple question about network statistics for vnics: > > We noticed that the statistics for vnics (used by Virtualbox guests) are not there. When the nics are plumped in the host OS, we do see them showing up, but all all records are 0. > > Can someone tell me how to get the correct network info via snmp on the Vbox Host?? > > Thanks in advance. > > IF-MIB::ifDescr.1 = STRING: lo0 > IF-MIB::ifDescr.2 = STRING: ibd0 > IF-MIB::ifDescr.3 = STRING: ibd1 > IF-MIB::ifDescr.4 = STRING: nge0 > IF-MIB::ifDescr.5 = STRING: nge1 > IF-MIB::ifDescr.6 = STRING: vboxnet0 > IF-MIB::ifDescr.7 = STRING: m121_vnic1 > IF-MIB::ifDescr.8 = STRING: m121_vnic2 > IF-MIB::ifDescr.9 = STRING: m115_vnic1 > IF-MIB::ifDescr.10 = STRING: m115_vnic2 > IF-MIB::ifDescr.11 = STRING: m119_vnic1 > IF-MIB::ifDescr.12 = STRING: m119_vnic2 > > > IF-MIB::ifInOctets.1 = Counter32: 0 > IF-MIB::ifInOctets.2 = Counter32: 3436035 > IF-MIB::ifInOctets.3 = Counter32: 45735 > IF-MIB::ifInOctets.4 = Counter32: 1749172 > IF-MIB::ifInOctets.5 = Counter32: 1997541 > IF-MIB::ifInOctets.6 = Counter32: 0 > IF-MIB::ifInOctets.7 = Counter32: 0 > IF-MIB::ifInOctets.8 = Counter32: 0 > IF-MIB::ifInOctets.9 = Counter32: 0 > IF-MIB::ifInOctets.10 = Counter32: 0 > IF-MIB::ifInOctets.11 = Counter32: 0 > IF-MIB::ifInOctets.12 = Counter32: 0 > > IF-MIB::ifOutOctets.1 = Counter32: 0 > IF-MIB::ifOutOctets.2 = Counter32: 4572954 > IF-MIB::ifOutOctets.3 = Counter32: 38202 > IF-MIB::ifOutOctets.4 = Counter32: 1174436 > IF-MIB::ifOutOctets.5 = Counter32: 378432 > IF-MIB::ifOutOctets.6 = Counter32: 17061 > IF-MIB::ifOutOctets.7 = Counter32: 0 > IF-MIB::ifOutOctets.8 = Counter32: 0 > IF-MIB::ifOutOctets.9 = Counter32: 0 > IF-MIB::ifOutOctets.10 = Counter32: 0 > IF-MIB::ifOutOctets.11 = Counter32: 0 > IF-MIB::ifOutOctets.12 = Counter32: 0 >
You said: The total bytes IN/OUT/Dropped per vnic stats are updated and visible in the host. Where can I find those numbers? via snmp? or via dladm? Should I enable: svc:/system/extended-accounting:net K -- This message posted from opensolaris.org
On 06/22/09 23:13, kristof wrote:> You said: The total bytes IN/OUT/Dropped per vnic stats are updated and visible in > the host. > > Where can I find those numbers? via snmp? or via dladm? >via dladm, eg // Culumative since boot time -bash-3.2# dladm show-link -s LINK IPACKETS RBYTES IERRORS OPACKETS OBYTES OERRORS e1000g0 384995 58289298 0 102872 39031460 0 e1000g1 0 0 0 0 0 0 e1000g5 0 0 0 0 0 0 e1000g3 0 0 0 0 0 0 e1000g2 0 0 0 0 0 0 e1000g4 0 0 0 0 0 0 st1 0 0 0 0 0 0 vnic1 0 0 0 0 0 0 vnic2 0 0 0 0 0 0 // Periodic, every 3 sec interval -bash-3.2# dladm show-link -s -i 3 LINK IPACKETS RBYTES IERRORS OPACKETS OBYTES OERRORS e1000g0 385061 58294601 0 102894 39034466 0 e1000g0 3 192 0 1 250 0 e1000g0 17 5496 0 16 1790 0 // For an individual link -bash-3.2# dladm show-link -s -i 3 vnic1 LINK IPACKETS RBYTES IERRORS OPACKETS OBYTES OERRORS vnic1 0 0 0 0 0 0 vnic1 0 0 0 0 0 0 The extended accounting is useful to collect a historic view. More details on this in the "Gathering Usage Statistics for VNICs and Flows" section of http://www.opensolaris.org/os/project/crossbow/Docs/vnicadmin.pdf Kais> Should I enable: svc:/system/extended-accounting:net > > K >