cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
319
Views
0
Helpful
2
Replies

snmp intervlan stats

jcb
Level 1
Level 1

Hello..

I was wondering if it is possible to read the traffic stats for a "virtual" vlan interface on an cisco 3350 switch.. We got a setup like this:

interface Vlan52

ip address x.x.x.x.x 255.255.255.224

no ip redirects

no ip unreachables

no ip proxy-arp

ip accounting access-violations

!

interface Vlan55

ip address x.x.x.x 255.255.255.252

no ip redirects

no ip unreachables

no ip proxy-arp

ip accounting access-violations

And I want to get the traffic stats for output/input traffic on these interfaces, is that possible? And how do i do it:)

Thanks in advance

Jo Christian

2 Replies 2

jaregalado
Level 1
Level 1

Hi.

Yes you can do that.

First you can use the standard 'sh interface' command to get interface statistics specific to VLAN interfaces.

c3550#sh int vlan 1

Vlan1 is up, line protocol is up

Hardware is EtherSVI, address is 000c.30f1.2f80 (bia 000c.30f1.2f80)

Internet address is 10.4.0.6/24

MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,

reliability 255/255, txload 1/255, rxload 1/255

Encapsulation ARPA, loopback not set

ARP type: ARPA, ARP Timeout 04:00:00

Last input 00:00:00, output 00:00:00, output hang never

Last clearing of "show interface" counters never

Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 1

Queueing strategy: fifo

Output queue :0/40 (size/max)

5 minute input rate 0 bits/sec, 0 packets/sec

5 minute output rate 0 bits/sec, 0 packets/sec

4967 packets input, 369163 bytes, 0 no buffer

Received 0 broadcasts, 0 runts, 0 giants, 0 throttles

0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored

1153 packets output, 371732 bytes, 0 underruns

0 output errors, 0 interface resets

0 output buffer failures, 0 output buffers swapped out

c3550#

And your second option if you are using an SNMP monitoring software like MRTG, SNMPc, etc. is to get

the In/Out values polling the VLAN OIDs. In this case I polled the VLAN 1 interface of the Catalyst 3550

[root@localhost root]# snmpget -c public -v1 10.4.0.6 .1.3.6.1.2.1.2.2.1.10.28

IF-MIB::ifInOctets.28 = Counter32: 369655

[root@localhost root]# snmpget -c public -v1 10.4.0.6 .1.3.6.1.2.1.2.2.1.16.28

IF-MIB::ifOutOctets.28 = Counter32: 372883

Regards.

naah, that doesn't seem to work:(

I get the same increasement in values all the time..

Review Cisco Networking for a $25 gift card