Adding an SNMPv3 Data Source fails with "SNMP connection error" when device is configured for SHA-512 in VCF Operations for Networks
search cancel

Adding an SNMPv3 Data Source fails with "SNMP connection error" when device is configured for SHA-512 in VCF Operations for Networks

book

Article ID: 439235

calendar_today

Updated On:

Products

VCF Operations for Networks

Issue/Introduction

When attempting to add a physical network device (such as a Cisco Nexus 9k switch) as an SNMPv3 data source via the VCF Operations for Networks GUI, the connection fails.

Users will observe the following symptoms:

  • The UI displays the error message: Cisco N9K: SNMP connection error.

  • Manual SNMP polling directly from the Collector's CLI using snmpget or snmpwalk with the -a SHA-512 parameter is completely successful.

  • The collector logs show the following error signature indicating a dropped packet/empty response:

ERROR collector [class="common.snmp.SNMPHelper" ... ] Failed in testing connection to address=<IP_ADDRESS>/161 ...
java.lang.RuntimeException: error in snmp get (null resp pdu)
at com.vnera.dataproviders.core.common.snmp.SNMPHelper.get(SNMPHelper.java:316)

Environment

VCF Operations for Networks 9.x

 

Cause

This issue is caused by an SNMPv3 authentication protocol mismatch between the target device and the application capabilities.

The target physical switch is configured to require SHA-512 (part of the SHA-2 suite) for SNMP authentication. However, in the VCF Operations for Networks UI, the authentication protocol dropdown option labeled "SHA" strictly corresponds to the SHA-1 (160-bit) standard.

Because the application sends a SHA-1 hash while the device expects a SHA-512 hash, the switch drops the request as unauthenticated. The application consequently receives no response, generating the null resp pdu error.

Resolution

Currently, the VCF Operations for Networks UI does not support the extended SHA-2 suite (SHA-256/512) for SNMPv3 authentication.

To successfully integrate the data source, the physical device configuration must be aligned with the application's supported protocols:

  1. Access the configuration interface or CLI of the target network device.

  2. Modify the SNMPv3 user/group authentication protocol from SHA-512 to SHA-1.

  3. In the VCF Operations for Networks UI, ensure the Authentication Type is set to SHA.

  4. Re-enter the credentials and submit the data source.

Additional Information

  • Security Best Practice: To maintain a strong security posture while using SHA-1 for authentication, it is highly recommended to configure strong Privacy (Encryption) using AES protocols. This ensures the actual data payload remains encrypted in transit.

  • Feature Requests: If your organization has strict compliance requirements mandating SHA-512 for management traffic, please submit a feature request to Product Management to expedite support in a future release: Submit a VMware Feature Request