We have a Cisco nexus switch on which our network team has created a user and have allowed SNMP v3 access. I am able to access this using Snmpwalk and I can fetch all the data.
Below are the details I had received.
username :- snmpuser1 Password :- XXXXXXXXXX SNMP version 3.
snmp-server user snmpuser1 network-operator auth md5 XXXXXXXXXX priv aes-128 XXXXXXXXXX
Basis on that I ran below given snmpwalk command :
Eg:
snmpwalk -v3 -l authPriv -u snmpuser1 -a MD5 -A "XXXXXXXXXX" -x AES -X "XXXXXXXXXX" 192.168.1.1
Here, I am able to fetch all the details and output is of thousands of lines.
Now, I want to setup snmptrapd or equivalent such that whenever any change is there on the switch then it should send a trap to my Linux server (CentOS 7) with details of all the changes
I have tried couple of things but somehow it is not working at all and I am not able to see anything in snmptrapd. Not sure where I am going wrong, It's not a firewall issue or port blocking.
Have added below mentioned lines in snmptrapd.conf as below on my Linux server:
createUser -e 0x8000000001020304 snmpuser1 MD5 XXXXXXXXXX AES authuser log snmpuser1
and then if I run below command then nothing is showing up.
"sudo snmptrapd -f -C -c snmptrapd.conf -Le"
If I run above command with -d then I can see that firewall is sending some udp packets.
Kindly suggest what changes can be done or if anything else should be used to receive the traps.
Thanks in advance! :-)