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
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
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 ?