Tested with AOS-CX 10.12

- there is a AOS-CX 10.12 SNMP/MIB Guide - a good documentation
- in earlier versions (not sure which exact versions!) of AOS-CX it was not possible to write SNMP - just read operations were implemented

#create a snmpv3 user:
snmpv3 user mySNMPv3user auth sha auth-pass plaintext myauthpassword01 priv des priv-pass plaintext myprivpassword01 access-level rw

#read test
snmpwalk -v3 -l authPriv -u mySNMPv3user -a SHA -A "myauthpassword01" -x DES -X "myprivpassword01 " 192.168.2.55 .1.3.6.1.2.1.105.1.1.1.3

#write test - enable power of ethernet (PoE) on port 1:
snmpset -v3 -l authPriv -u mySNMPv3user -a SHA -A "myauthpassword01" -x DES -X "myprivpassword01 " 192.168.2.55 SNMPv2-SMI::mib-2.105.1.1.1.3.1.1 i 1

#write test - disable power of ethernet (PoE) on port 1:
snmpset -v3 -l authPriv -u mySNMPv3user -a SHA -A "myauthpassword01" -x DES -X "myprivpassword01" 192.168.2.55 SNMPv2-SMI::mib-2.105.1.1.1.3.1.1 i 2


#see poe Admin status on all ports
snmpbulkwalk -v3 -l authPriv -u mySNMPv3user -a SHA -A "myauthpassword01" -x DES -X "myprivpassword01" 192.168.2.55 .1.3.6.1.2.1.105.1.1.1.3

computer2know :: thank you for your visit :: have a nice day :: © 2024