Connectrix B-Series: Cannot get a SNMP output for certain OIDs when Virtual Fabrics (VF) are implemented
Summary: Cannot get a SNMP output for certain OIDs when Virtual Fabrics (VF) are implemented
Symptoms
When running snmpwalk to query the OID "1.3.6.1.4.1.1588.2.1.1.1.6.2", the switch returns nothing.
The command being used is "snmpwalk -r:<switch IP address> -os:1.3.6.1.4.1.1588.2.1.1.1.6.2".
Cause
According to Fabric OS Admin Guide:
When SNMPv3 request arrives with a particular user name, it executes in the home Virtual Fabric. From the SNMP manager, all SNMPv3 requests must have a home Virtual Fabric that is specified in the contextName field. When the home Virtual Fabric is specified, it will be converted to the corresponding switch ID and the home Virtual Fabric will be set. If the user does not have permission for the specified home Virtual Fabric, this request fails with an error code of noAccess.
The contextName field should have the format VF:xxx , where xxx is the actual VF_ID, for example VF:1 . If the contextName field is empty, then the home Virtual Fabric of the local Fabric OS user with the same name is used.
There are no ports included in the home Virtual Fabric of the user, so the switch did not return the expected output.
Resolution
To solve the issue, users have to use snmp v3 to specify the VF ID to get the port related OIDs, such as swFCPortTable 1.3.6.1.4.1.1588.2.1.1.1.6.2.x
1. Checking the snmpv3 configuration.DS5100B_A:FID128:admin> snmpconfig --show snmpv3
2. Change one user to admin and leave the Auth Protocol as 'noAuth' and Priv Protocol as 'noPriv'.
DS5100B_A:FID128:admin> snmpconfig --set snmpv3
3. Specify the VF ID when using SnmpWalk.
SnmpWalk.exe -v:3 -sn:admin -cn:VF:<VF ID> -r:<switch IP address> -os: 1.3.6.1.4.1.1588.2.1.1.1.6.1 -op:1.3.6.1.4.1.1588.2.1.1.1.6.2.1.2
Or 'get all' by:
SnmpWalk.exe -v:3 -sn:admin -cn:VF:<VF ID> -r:<switch IP address> >filename.txt