NX-OS snmp_server module trap commands failing with multiple hyphen(-) and underscore(_) issues #820
Labels
bug
This issue/PR relates to a bug.
has_pr
This issue has an associated PR.
snmp_servers
snmp_servers resource module
SUMMARY
When trying to enter snmp-server traps commands, there are instances where the commands being entered have hyphens (-), but the switches themselves show the commands to be expecting underscores (_). This is very similar to bug ID 474
ISSUE TYPE
COMPONENT NAME
nxos_snmp_server
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Confirmed underscore commands are valid on versions 9.3(10) and 9.3(13). These versions show no hyphenated commands, as shown in the ? output from the switches below
STEPS TO REPRODUCE
Using Azure DevOps as the front end and running the commands shown below in the playbook
EXPECTED RESULTS
Command to be entered without errors. This can be done manually and successfully using underscores on the switch itself:
_USLB1I02ASW04(config)# snmp-server enable traps entity ?
cefcMIBEnableStatusNotification CefcMIBEnableStatusNotification
entity_fan_status_change Entity Fan Status Change
entity_mib_change Entity MIB change
entity_module_inserted Entity Module Inserted
entity_module_removed Entity Module Removed
entity_module_status_change Entity Module Status Change
entity_power_out_change Entity Power Out Change
entity_power_status_change Entity Power Status Change
entity_sensor Entity sensor
entity_unrecognised_module Entity Unrecognised Module
USLB1I02ASW04(config)#_
ACTUAL RESULTS
Command in Ansible errors out with the output below
The text was updated successfully, but these errors were encountered: