To enable/disable switch port, you use SNMP set to the following OID
OID: 1.3.6.1.2.1.2.2.1.7.(interface index)
Value: 1 is enable and 2 is disable.
Example:
Enable/Disable a port
snmpset -q -r:<switch IP> -c:<write community> -o:.1.3.6.1.2.1.2.2.1.7.<interface index> -val:<1 or 2> -tp:int
Disable switch port 1 of 1.2.3.4
snmpset -q -r:1.2.3.4 -c:private -o:.1.3.6.1.2.1.2.2.1.7.1 -val:2 -tp:int
Enable switch port 2 of 1.2.3.4
snmpset -q -r:1.2.3.4 -c:private -o:.1.3.6.1.2.1.2.2.1.7.2 -val:1 -tp:int
This is a standard SNMP OID. It works on almost all SNMP supported devices.
------------------------------
Michael Lo
------------------------------
Original Message:
Sent: Jun 01, 2021 12:54 PM
From: Chris Floom
Subject: Aruba 3810m SNMP Command Guide?
Maybe a silly question, but after I setup SNMP on the switch, and it's successfully connected to the client.
Is there an SNMP command guide that I can reference to find things like "a SNMP set command to disable a port on the switch?"
------------------------------
Chris Floom
------------------------------