[c-nsp] using snmp views effectively

Peter Krupl peter.krupl at ventelo.dk
Mon Sep 18 03:57:48 EDT 2006


Hi Group,

I guess nobody has a working example, as i is just to cumbersome to
handle. If someone from cisco is reading, then please, please, please
add a vrf snmp view feature, with basic IF-MIB support based upon the 
vrf membership of the interface.

I have a small example below, nothing I use for production
just something i made as an example.

It gives basic system information, and IF-MIB if index 8 & 10.
Th catch here is it is only possible based on ifindex, som you might
try: snmp-server ifindex persist


-----------------------Cut---------------------------------
snmp-server view vlan-if-only system.1.* included
snmp-server view vlan-if-only system.2.* included
snmp-server view vlan-if-only sysUpTime.* included
snmp-server view vlan-if-only system.4.* included
snmp-server view vlan-if-only system.5.* included
snmp-server view vlan-if-only system.6.* included
snmp-server view vlan-if-only ifEntry.*.8 included
snmp-server view vlan-if-only ifEntry.*.10 included

snmp-server community limited view vlan-if-only RO

-----------------------Cut---------------------------------

The result:
-----------------------Cut---------------------------------
%snmpwalk -v2c -c limited gw 
SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software, C1700 Software (C1700-ADVSECURITYK9-M), Version 12.4(5b), RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2006 by Cisco Systems, Inc.
Compiled Wed 19-Apr-06 07:16 by ssearch
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.538
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (620130731) 71 days, 18:35:07.31
SNMPv2-MIB::sysContact.0 = STRING: 
SNMPv2-MIB::sysName.0 = STRING: henet.henet.dk
SNMPv2-MIB::sysLocation.0 = STRING: 
IF-MIB::ifIndex.8 = INTEGER: 8
IF-MIB::ifIndex.10 = INTEGER: 10
IF-MIB::ifDescr.8 = STRING: Vlan1
IF-MIB::ifDescr.10 = STRING: Vlan2
IF-MIB::ifType.8 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.10 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.8 = INTEGER: 1500
IF-MIB::ifMtu.10 = INTEGER: 1500
IF-MIB::ifSpeed.8 = Gauge32: 100000000
IF-MIB::ifSpeed.10 = Gauge32: 100000000
IF-MIB::ifPhysAddress.8 = STRING: 0:f:23:7f:6a:27
IF-MIB::ifPhysAddress.10 = STRING: 0:f:23:7f:6a:27
IF-MIB::ifAdminStatus.8 = INTEGER: up(1)
IF-MIB::ifAdminStatus.10 = INTEGER: up(1)
IF-MIB::ifOperStatus.8 = INTEGER: up(1)
IF-MIB::ifOperStatus.10 = INTEGER: up(1)
IF-MIB::ifLastChange.8 = Timeticks: (3346) 0:00:33.46
IF-MIB::ifLastChange.10 = Timeticks: (3347) 0:00:33.47
IF-MIB::ifInOctets.8 = Counter32: 3958901172
IF-MIB::ifInOctets.10 = Counter32: 427587075
IF-MIB::ifInUcastPkts.8 = Counter32: 51530523
IF-MIB::ifInUcastPkts.10 = Counter32: 2377824
IF-MIB::ifInNUcastPkts.8 = Counter32: 102887
IF-MIB::ifInNUcastPkts.10 = Counter32: 38726
IF-MIB::ifInDiscards.8 = Counter32: 0
IF-MIB::ifInDiscards.10 = Counter32: 0
IF-MIB::ifInErrors.8 = Counter32: 0
IF-MIB::ifInErrors.10 = Counter32: 0
IF-MIB::ifInUnknownProtos.8 = Counter32: 19825
IF-MIB::ifInUnknownProtos.10 = Counter32: 509
IF-MIB::ifOutOctets.8 = Counter32: 943353264
IF-MIB::ifOutOctets.10 = Counter32: 2534090171
IF-MIB::ifOutUcastPkts.8 = Counter32: 56821920
IF-MIB::ifOutUcastPkts.10 = Counter32: 3911274
IF-MIB::ifOutNUcastPkts.8 = Counter32: 0
IF-MIB::ifOutNUcastPkts.10 = Counter32: 0
IF-MIB::ifOutDiscards.8 = Counter32: 0
IF-MIB::ifOutDiscards.10 = Counter32: 2
IF-MIB::ifOutErrors.8 = Counter32: 0
IF-MIB::ifOutErrors.10 = Counter32: 0
IF-MIB::ifOutQLen.8 = Gauge32: 0
IF-MIB::ifOutQLen.10 = Gauge32: 0
IF-MIB::ifSpecific.8 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.10 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.10 = No more variables left in this MIB View (It is past the end of the MIB tree)
-----------------------Cut---------------------------------
Med venlig hilsen/Kind regards

 

Peter Åris Krüpl
Netværksspecialist
Ventelo Webpartner
Direkte:  35 25 47 54

 


-----Original Message-----
From: cisco-nsp-bounces at puck.nether.net [mailto:cisco-nsp-bounces at puck.nether.net] On Behalf Of Phil Mayers
Sent: 17. september 2006 17:55
To: cisco-nsp
Subject: Re: [c-nsp] using snmp views effectively

Ray Burkholder wrote:
> 
> Something nebulous that has been floating in mind is something like a
> pattern matching tool that can allow daily cycles but knows when something
> deviates from the norm.  I've heard mention of such a thing, but cannot
> recollect where to start a search.
> 
> 

Newer versions of rrdtool have support for "Aberrant behavior detection
with holt-winters forecasting" of data in the RRD. See the website.
_______________________________________________
cisco-nsp mailing list  cisco-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/



More information about the cisco-nsp mailing list