Temporary Files Are Disappearing; Chunks Of The Command Output Are Not Being Delivered - Cisco Nexus 9000 Series Troubleshooting Manual

Nx-os release 7.x
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Troubleshooting NX-API
• If the Bash commands do not go through, make sure that Bash is enabled by using the show feature |
• Make sure that the user has the correct privileges to execute the command.
• Follow the instructions in

Temporary Files Are Disappearing

For every request, a temporary file is created in /volatile to store the command output that is sent back to the
client. If the chunk parameter on the request is 0, the file is deleted right before the command output is sent
back to the client. If the request does have chunk = 1, the file is retained so that the chunks can be extracted
from it and sent to the client. That file will be cleaned up on a periodic basis. Currently that cleanup is set to
occur once every 100 requests. Files are cleaned up if they are not accessed within 60 seconds of being created
or are not modified or their status is not updated within 600 seconds.

Chunks of the Command Output Are Not Being Delivered

For requests where chunk = 1, if the sid is set to the same value, you will get the same chunk of the command
output. This functionality allows for situations where a client requests a specific chunk and does not receive
it in a timely manner because it is dropped or blocked somewhere in the network. The clients can request the
same chunk again, and they will receive the correct data as long as the temporary file has not been cleaned
up (as described in
grep bash command. For more information on Bash, see the Cisco Nexus 9000 Series NX-OS
Programmability Guide.
NX-API Is Not Responding, on page
Temporary Files Are Disappearing, on page
83).
Cisco Nexus 9000 Series NX-OS Troubleshooting Guide, Release 7.x

Temporary Files Are Disappearing

81.
83

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents