You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In one of our customers environment, their security team needs to allow individually each command issued to Cisco NXOS.
We are using cisco.nxos.nxos_command to issue command.
However, we find that Ansible will issue "show version" command to the switch before the actually commands specified in our Ansible nxos_command playbook.
The security team of the customer is challenging us why extra commands are executed.
Also in the customer's environment, the show version and show inventory commands will cause a command timeout error when execute the playbook and so none of the commands could be issued on the switch.
Only the specified commands in the playbook are executed in the switch.
ACTUAL RESULTS
Before the specified commands in the playbook are executed, "show version" command is executed in the switch.
Module failure returned with message:
"command timeout triggered, timeout value is 30 secs.\nSee the timeout setting options in the Network Debug and Troubleshooting Guide."
We have tried changing ansible_network_cli_ssh_type to paramiko, the message becomes:
"timeout value 30 seconds reached while trying to send command b'show version'"
Meanwhile if we manually SSH directly to the switch and execute the commands (without "show version" or "show inventory") in the playbook, the commands are executable successfully without error.
The text was updated successfully, but these errors were encountered:
SUMMARY
In one of our customers environment, their security team needs to allow individually each command issued to Cisco NXOS.
We are using cisco.nxos.nxos_command to issue command.
However, we find that Ansible will issue "show version" command to the switch before the actually commands specified in our Ansible nxos_command playbook.
The security team of the customer is challenging us why extra commands are executed.
Also in the customer's environment, the show version and show inventory commands will cause a command timeout error when execute the playbook and so none of the commands could be issued on the switch.
ISSUE TYPE
COMPONENT NAME
nxos_command
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Red Hat 8.8
Cisco Nexus 9K 10.1.2
STEPS TO REPRODUCE
We have developed a frontend for the customer to manage the switches.
In the backend we will manipulate the switches.
For example in the frontend, the customer can disable port-security of an interface:
EXPECTED RESULTS
Only the specified commands in the playbook are executed in the switch.
ACTUAL RESULTS
Before the specified commands in the playbook are executed, "show version" command is executed in the switch.
Module failure returned with message:
"command timeout triggered, timeout value is 30 secs.\nSee the timeout setting options in the Network Debug and Troubleshooting Guide."
We have tried changing ansible_network_cli_ssh_type to paramiko, the message becomes:
"timeout value 30 seconds reached while trying to send command b'show version'"
Meanwhile if we manually SSH directly to the switch and execute the commands (without "show version" or "show inventory") in the playbook, the commands are executable successfully without error.
The text was updated successfully, but these errors were encountered: