•
Enable Bash. For instructions, see the Cisco Nexus 9000 Series NX-OS Programmability Guide.
•
Check the /var/nxapi/logs/error.log to see if there are any errors.
•
If NX-API is still not responding, enter the no feature nxapi and feature nxapi commands to restart
NX-API. NX-API is stateless, and it is safe to restart.
Configuration Fails
Take these actions if the user cannot execute configuration commands:
•
Make sure that the user has the correct privileges to execute the commands.
Permission Is Denied for Bash
Take these actions if users receive a "Permission Denied" message for Bash:
•
Make sure that Bash is enabled by using the show feature | grep bash command.
•
Make sure that the current user has the correct privileges to access Bash.
•
For more information on Bash, see the Cisco Nexus 9000 Series NX-OS Programmability Guide.
Output Cannot Be Retrieved from the Browser Sandbox
Take these actions if you cannot retrieve the output from the browser sandbox:
•
When the output is large or the command execution takes a long time, the browser might not be able to
handle the load and might time out. Try using the Python client to access the NX-API. For instructions,
see the Cisco Nexus 9000 Series NX-OS Programmability Guide.
The recommended browser is Mozilla Firefox.Note
CLI Command Errors Are Appearing
Take these actions if CLI command errors appear when the user runs multiple commands:
•
Check to see how multiple commands are separated. Show and configure commands must be separated
by a [space]. Bash commands must be separated by a semicolon (;).
Error Messages Are Appearing
Take these actions if error messages are appearing in the output:
•
Follow the instructions in the error message.
Cisco Nexus 9000 Series NX-OS Troubleshooting Guide, Release 7.x
82
Troubleshooting NX-API
Configuration Fails