Cisco SG500X how to change port assigned VLAN via SNMP
I want to change the VLAN assigned to a port on a SG500X using SNMP. The running firmware version is 126.96.36.199 .
What I have done so far:
- definded some VLANs with the web interface - enabled SNMP and configured communitiy and password for SNMPv2c and configured engine-ID and security name for SNMPv3 - tried SNMPv2c and SNMPv3 requests (get, set, walk) fom the Windows 10 command line tool with the shell tools from snmpsoft.com - followed the instructions on this thread for vlan snmp management on a catalyst
When I send a snmpwalk request for the "ifDescr" OID (.188.8.131.52.184.108.40.206.1.2) to get the ifIndex referring to the Ports, the first shown ifIndex is 49 for gigabitethernet1/1/1. This works with SNMPv2c and SNMPv3 as well.
All gigabitethernet ports were assigned to a vlan by the web interface and is shown there correctly. When I send a snmpget request with the "vmVlan" OID with the ifIndex of any port (for example port 15 --> ifIndex63: .220.127.116.11.18.104.22.168.22.214.171.124.1.2.63 ) I just get: - with SNMPv2c: %Failed to get value of SNMP variable. Variable does not exist (noSuchName(2)) - with SNMPv3: OID=.126.96.36.199.188.8.131.52.184.108.40.206.1.2.63 Type=<Unknown> Value=
Same with snmpset and SNMPv2c, but with SNMPv3 I get: %Failed to set value to SNMP variable. Not Writable (notWritable(17))
I dont know where else to find a solution for this problem and moreover what exactly the problem is. May it because not Catalyst systems use another OID? And shouldnt I get an ifIndex starting from Zero or one from the snmpwalk request?
Re: Cisco SG500X how to change port assigned VLAN via SNMP
Thank you for your prompt reply!
In the MIB files you linked, I unfortunately found no way to connect a port/interface of the switch with an existing VLAN or rather change a VLAN of a port.
I just found an OID where the individual Indexes (mapped to the ports) return the Indexes of the assigned VLANs. It is <.iso.org.dod.internet.mgmt.mib-2.dot1dBridge.qBridgeMIB.qBridgeMIBObjects.dot1qVlan.dot1qPortVlanTable.dot1qPortVlanEntry.dot1qPvid> or as a number .220.127.116.11.18.104.22.168.22.214.171.124.1
This one is "readable and writable" so I simply tried to SNMPwrite another (existing) VLAN-Index to
.126.96.36.199.188.8.131.52.184.108.40.206.1.50 for example, which is gigabitethernet1/1/2. As type of the value I used uint (original value given from SNMPread is GAUGE32 ) The apperaring error message is: %Failed to set value to SNMP variable. General Error (genErr(5))
If I try to set the VLAN in the SNMPwrite command to the one the port actually has, the CLI shows: OK
At least something must be right I guess?!?
So further on my question persitsts. Any more ideas?
The RV340 Series supports remote access tunnel termination of the best selling and easy to use Cisco AnyConnect Secure Mobility Client.
(The RV340 Series consists of the models: RV340, RV340W, RV345, and RV345P)
The document describes the requ...
Cisco RV340 Series and Cisco Umbrella
Introduction and Feature Comparison
The Cisco RV340 series consists of the RV340, RV340W, RV345, and RV345P models. Starting with firmware release 1.0.2.x these models added the Cisco Umbrella...
Let’s Encrypt is a Certificate Authority that provides free, Domain Validation (DV) SSL certificates to the public using an automated process. Let’s Encrypt provides an easily accessible mechanism for obtaining signed certificates for web servers, ...
Installing and Activating Service on the Cisco DNAC Appliance v1.2.8
This document describes the steps that you need to follow to install and activate the Cisco Digital Network Architecture v1.2.8
Note: For additional information about how to use the Cis...
I've tried to set up the report rules on an SPA504G (7.6.2e). I've read the article about provisioning and some article from community. The conclusion is that the documentation is not up to date.
From the documentationThe possibiliti...