02-28-2014 08:55 AM - edited 03-01-2019 11:33 AM
Hello,
I'm trying to assemble a light monitoring solution / Proof of Concept using snmp for our Lab infrastructure.
In this lab we have FI 6248, Nexus 5548, some Netapp & EMC equipment, ...
I get all the snmp basic informations I need from all the equipment except from the FI 6248
We are running the following kernel on both Fabric Interconnect : 5.2(3)N2(2.21c)
The UCS manager version is 2.2(1c)
I configured a "public" snmp trap community using CLI (
>scope monitoring
>enable snmp
>set snmp community public
>commit-buffer
Then using a CentOS machine on the same vlan/ip range, I'm trying to receive the traps but can seem to receive anything.
[root@gouyasse etc]# snmpgetnext -d -v 1 -c public ucsfic sysUpTime
Sending 42 bytes to UDP: [xx.xx.xx.xx]:161->[0.0.0.0]
...
Timeout: No Response from ucsfic
the same happens when using v2c
I also tried the same on a UCS PE but with no luck either.
What am I doing wrong ?
Thanks in advance
PS : here is an extract of the nxos running config on the ucs regarding snmp
snmp-server enable traps callhome event-notify
snmp-server enable traps callhome smtp-send-fail
snmp-server enable traps cfs state-change-notif
snmp-server enable traps cfs merge-failure
snmp-server enable traps fcdomain dmNewPrincipalSwitchNotify
snmp-server enable traps fcdomain dmDomainIdNotAssignedNotify
snmp-server enable traps fcdomain dmFabricChangeNotify
snmp-server enable traps port-security access-secure-mac-violation
snmp-server enable traps port-security trunk-secure-mac-violation
snmp-server enable traps aaa server-state-change
snmp-server enable traps vsan vsanStatusChange
snmp-server enable traps vsan vsanPortMembershipChange
snmp-server enable traps upgrade UpgradeOpNotifyOnCompletion
snmp-server enable traps upgrade UpgradeJobStatusNotify
snmp-server enable traps feature-control FeatureOpStatusChange
snmp-server enable traps sysmgr cseFailSwCoreNotifyExtended
snmp-server enable traps config ccmCLIRunningConfigChanged
snmp-server enable traps snmp authentication
snmp-server enable traps link cisco-xcvr-mon-status-chg
snmp-server enable traps vtp notifs
snmp-server enable traps vtp vlancreate
snmp-server enable traps vtp vlandelete
snmp-server enable traps bridge newroot
snmp-server enable traps bridge topologychange
snmp-server enable traps stpx inconsistency
snmp-server enable traps stpx root-inconsistency
snmp-server enable traps stpx loop-inconsistency
snmp-server enable traps poe portonoff
snmp-server enable traps poe pwrusageon
snmp-server enable traps poe pwrusageoff
snmp-server enable traps poe police
snmp-server enable traps flexlink ifStatusChange
snmp-server context mgmt vrf management
snmp-server community public group network-operator
snmp-server host <management adress> traps version 1 public udp-port 161
02-28-2014 11:10 AM
Why are you using CLI and not GUI to setup snmp ?
I miss in your cli commands the IP address of the snmp trap server ?
03-03-2014 12:50 AM
I also tried to use the GUI but with no luck either.
the last line of the first message contains the ip adress of the trap server.
03-03-2014 01:59 AM
Could it be a firewall problem ?
03-03-2014 02:33 AM
Don't think so.
There should not be any active firewall in this infra but to be sure I'm currently installing a Windows machine where I'll put a Wireshark to check if I see any SNMP packets going through
I'll keep you posted.
03-03-2014 05:23 AM
Hi Eric
Can you please clarify: do you try to receive UCS snmp traps on your CentOS box and/or do snmp polls from your CentOS server.
In the latter case, you need to download and install the UCS Mib:
http://www.cisco.com/en/US/docs/unified_computing/ucs/sw/mib/b-series/b_UCS_MIBRef.pdf
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide