CX Simple Steps to Configure SNMP
Prior condition or prerequisite:
Let's Start:
Step1: Make sure you have reachability to snmp server from your CX switch as below, I am using mgmt vrf, you can use default or any other vrf which has reachability to snmp-server.
AOS-CX# sh running-config interface mgmt
interface mgmt
no shutdown
ip static 10.6.8.13/24
default-gateway 10.6.8.1
AOS-CX# ping 10.80.2.187 vrf mgmt
PING 10.80.2.187 (10.80.2.187) 100(128) bytes of data.
108 bytes from 10.80.2.187: icmp_seq=1 ttl=126 time=0.369 ms
108 bytes from 10.80.2.187: icmp_seq=2 ttl=126 time=0.565 ms
108 bytes from 10.80.2.187: icmp_seq=3 ttl=126 time=0.478 ms
108 bytes from 10.80.2.187: icmp_seq=4 ttl=126 time=0.580 ms
108 bytes from 10.80.2.187: icmp_seq=5 ttl=126 time=0.523 ms
--- 10.80.2.187 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4086ms
rtt min/avg/max/mdev = 0.369/0.503/0.580/0.075 ms
Step2: Let's enable or configure SNMP on AOS-CX switches as below:
AOS-CX# sh running-config | in snmp
AOS-CX#
AOS-CX# conf t
AOS-CX(config)# snmp-server
agent-port Configure UDP port to reach SNMP Master Agent
community The name of the community string (Default:
public)
historical-counters-monitor Monitor historical interface counters
host Configure SNMP trap or inform
system-contact Configure system contact
system-description Configure system description
system-location Configure system location
trap-source Configure the IP address of the source interface
for sending SNMP traps
vrf Specify VRF to run SNMP on
<cr>
AOS-CX(config)# snmp-server vrf mgmt
AOS-CX(config)# snmp-server host
A.B.C.D IPv4 address of SNMP notification host
X:X::X:X IPv6 address of SNMP notification host
AOS-CX(config)# snmp-server host 10.80.2.187
inform Configure SNMP inform notifications
trap Configure SNMP trap notifications
AOS-CX(config)# snmp-server host 10.80.2.187 trap
version Configure version
AOS-CX(config)# snmp-server host 10.80.2.187 trap version
v1 Configure version 1 trap
v2c Configure version 2c trap
v3 Configure version 3 trap
AOS-CX(config)# snmp-server host 10.80.2.187 trap version v2c
community Configure community name
port Configure UDP port
vrf Configure VRF
<cr>
AOS-CX(config)# snmp-server host 10.80.2.187 trap version v2c community
WORD Name of the community, max up to 32 characters (Default: public)
AOS-CX(config)# snmp-server host 10.80.2.187 trap version v2c community public
port Configure UDP port
vrf Configure VRF
<cr>
AOS-CX(config)# snmp-server host 10.80.2.187 trap version v2c community public vrf mgmt
port Configure UDP port
<cr>
AOS-CX(config)# snmp-server host 10.80.2.187 trap version v2c community public vrf mgmt
AOS-CX(config)#
AOS-CX(config)# end
AOS-CX#
Step3: Let's verify SNMP configuration on AOS-CX:
AOS-CX# sh snmp
agent-port SNMP agent-port
community Configured community names
system SNMP system MIB configurations
trap trap configuration
vrf SNMP enabled VRF
AOS-CX# sh snmp vrf
SNMP enabled VRF
----------------------------
mgmt
AOS-CX# sh snmp agent-port
SNMP agent port : 161
AOS-CX# sh snmp community
---------------------
SNMP communities
---------------------
public
AOS-CX# sh snmp trap
---------------------------------------------------------------------------------------------
Host Port Type Version Community-Name/User-Name vrf
--------------------------------------------------------------------------------------------
10.80.2.187 162 trap v2c public mgmt
AOS-CX# sh snmp system
<cr>
AOS-CX# sh snmp system
SNMP system information
----------------------------
System description : ML.10.05.0001BH
AOS-CX#
AOS-CX# sh running-config | in snmp
snmp-server vrf mgmt
snmp-server host 10.80.2.187 trap version v2c vrf mgmt
AOS-CX#
AOS-CX# sh system
Hostname : BLDG02-F1
System Description : ML.10.05.0001BH
System Contact :
System Location :
Vendor : Aruba
Product Name : JL728A 6200F 48G CL4 4SFP+740W Swch
Chassis Serial Nbr : SG0ZKW800Y
Base MAC Address : 104f58-f719c0
ArubaOS-CX Version : ML.10.05.0001BH
Time Zone : UTC
Up Time : 6 days, 22 hours, 51 minutes
CPU Util (%) : 9
Memory Usage (%) : 19
AOS-CX#
That's all, simple steps to configure snmp on CX.
Let's see it on MIB Browser with snmp walk:

Thank you,
Yash