12-09-2009 11:00 AM - edited 03-06-2019 08:53 AM
Correct me if Im wrong, but whenever one enables a certain technology or protocol on a Cisco device, the option exists to monitor the behavior through SNMP.
The example I am concerned with in particular is MQC QoS.
I have read in many documents that Cisco has an SNMP MIB for MQC QoS, but how does one go about enabling that MIB so that an NMS station can leverage it to monitor....
I would think that one would have to enable the traps under the "snmp-server" set of congiurations, but no matter what version of code I use to check, there is never an option for enabling MQC QoS traps, even though the technology is configurable on the device.
Example:
3#conf t
Enter configuration commands, one per line. End with CNTL/Z.
3(config)#snmp-server enable traps ?
alarms Enable SNMP alarms traps
atm Enable SNMP atm traps
bgp Enable BGP traps
bridge Enable SNMP STP Bridge MIB traps
bulkstat Enable Data-Collection-MIB Collection notifications
c6kxbar Enable SNMP CISCO-CAT6K-CROSSBAR-MIB traps
call-home Enable SNMP CISCO-CALLHOME-MIB traps
casa Enable SNMP casa traps
cef Enable SNMP CEF traps
chassis Enable SNMP chassis traps
config Enable SNMP config traps
config-copy Enable SNMP config-copy traps
config-ctid Enable SNMP config-ctid traps
cpu Allow cpu related traps
csg Enable SNMP CSG traps
dhcp Enable SNMP dhcp traps
dot1x Enable SNMP dot1x traps
ds1 Enable SNMP DS1 traps
eigrp Enable SNMP EIGRP traps
entity Enable SNMP entity traps
envmon Enable SNMP environmental monitor traps
ether-oam Enable SNMP ethernet oam traps
ethernet Enable SNMP Ethernet traps
event-manager Enable SNMP Embedded Event Manager traps
flash Enable SNMP FLASH notifications
flex-links Enable SNMP FLEX Links traps
frame-relay Enable SNMP frame-relay traps
fru-ctrl Enable SNMP entity FRU control traps
hsrp Enable SNMP HSRP traps
ipmulticast Enable SNMP ipmulticast traps
ipsec Enable IPsec traps
isakmp Enable ISAKMP traps traps
isis Enable IS-IS traps
l2tun Enable SNMP L2 tunnel protocol traps
mac-notification Enable SNMP MAC Notification traps
memory Enable SNMP Memory traps
module Enable SNMP module traps
mpls Enable SNMP MPLS traps
msdp Enable SNMP MSDP traps
mvpn Enable Multicast Virtual Private Networks traps
ospf Enable OSPF traps
pim Enable SNMP PIM traps
port-security Enable SNMP port security traps
pppoe Enable SNMP pppoe traps
pw Enable SNMP PW traps
rep Enable SNMP Resilient Ethernet Protocol Traps
resource-policy Enable CISCO-ERM-MIB notifications
rf Enable all SNMP traps defined in CISCO-RF-MIB
rsvp Enable RSVP flow change traps
rtr Enable SNMP Response Time Reporter traps
slb Enable SNMP SLB traps
snmp Enable SNMP traps
sonet Enable SNMP SONET traps
stpx Enable SNMP STPX MIB traps
syslog Enable SNMP syslog traps
transceiver Enable SNMP transceiver traps
tty Enable TCP connection traps
vlan-mac-limit Enable SNMP L2 Control VLAN MAC Limit notifications
vlancreate Enable SNMP VLAN created traps
vlandelete Enable SNMP VLAN deleted traps
vtp Enable SNMP VTP traps
<cr>
3(config)#snmp-server enable traps
Thanks
12-09-2009 11:56 AM
Hello Victor,
it is just enough to check if the IOS image supports the required MIB and to load the required MIB(s) on the NMS server that is called compiling the MIB.
the second to allow the NMS to perform the appropriate SNMP gets.
we can use the SNMP MIB navigator tool
http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en
view and download MIBs
searching mibs containing QoS in the name
CISCO-CLASS-BASED-QOS-MIB
select View MIB dependencies and download MIB
you see an ordered list of MIBs that need to be in the NMS system
I think that to build an event based approach you should use EEM and to build the expressions equivalent to the tresholds on the QoS mib variables.
For a polling approach all is needed is to compile the MIBs. I tested this some years ago.
So it depends from what you want to achieve, but not all MIB variables have a voice in the snmp traps commands because traps are a different approach where it is the device that sends a message to NMS when something happens (also in RMON it is so)
Hope to help
Giuseppe
12-09-2009 12:00 PM
OK, I have seen the link to download the MIB and I have downloaded it. Its a text file that opens with Notepad...
What do you do with that file? Download the MIB and install it? Where?
12-09-2009 12:38 PM
Hello Victor,
the MIB file has to be "installed" (actually the term is compiled) on an SNMP MIB browser that can be a standalone program or a tool part of NMS software.
an example of MIB browser software is:
http://www.ndt-inc.com/SNMP/MIBrowser.html
I used older versions of the following that is a professional product
http://www.snmp.co.uk/snmpc/snmpcent.htm
there are some free SWs.
Recently I tried hillsoft mib browser
Hope to help
Giuseppe
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: