cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1396
Views
0
Helpful
1
Replies

Nexus 7009 NX-OS 8.2(5) file not deleted in /nxos/tmp using bash rm command

Hi,

I have a Nexus 7009 running NX-Os 8.2(5); I need to delete the file named tacacs_crypt_service_2 in /nxos/tmp

In order to do so, i used rm command in bash shell; after deleting file, directory remains full

Thats my command history

sh system internal flash
Mount-on                  1K-blocks      Used   Available   Use% Filesystem
/proc                             0         0           0      0 proc
/sys                              0         0           0      0 none
/isan                       2097152   1037320     1059832     50 none
/var                          51200       456       50744      1 none
/nxos/tmp                    102400    102400           0    100 none
/var/volatile/log             51200      5824       45376     12 none
/var/home                      5120         0        5120      0 none

 

sh system internal dir /nxos/tmp
./        1440
../          60
target_image.sro            0
install_failed.txt            0
......
tacacs_crypt_service_2 101158912
radius_debug.log#02#          170
radius_crypt_service_2            0

 

run bash
bash-4.3$ cd /nxos/tmp
bash-4.3$ ls -al tacacs_crypt_service_2
-rw-rw-rw- 1 svc-isan isan 101158912 Feb 22 11:18 tacacs_crypt_service_2
bash-4.3$ rm tacacs_crypt_service_2
bash-4.3$ ls -al tacacs_crypt_service_2
ls: cannot access tacacs_crypt_service_2: No such file or directory
bash-4.3$ exit
exit

 

n7k9-lfi-admin# sh system internal flash
Mount-on                  1K-blocks      Used   Available   Use% Filesystem
/proc                             0         0           0      0 proc
/sys                              0         0           0      0 none
/isan                       2097152   1037320     1059832     50 none
/var                          51200       456       50744      1 none
/nxos/tmp                    102400    102400           0    100 none        ???????
/var/volatile/log             51200      5824       45376     12 none

 

sh system internal dir /nxos/tmp/tacacs_crypt_service_2
opendir: No such file or directory
n7k9-lfi-admin# run bash
bash-4.3$ cd /nxos/tmp
bash-4.3$ ls tacacs_crypt_service_2
ls: cannot access tacacs_crypt_service_2: No such file or directory
bash-4.3$ ls -al tacacs_crypt_service_2
ls: cannot access tacacs_crypt_service_2: No such file or directory
bash-4.3$ exit
exit

 

1 Reply 1

davidgoude1
Level 4
Level 4

I know this is old, but just had to deal with this for an upgrade.  The syntax for deleting a file from that directory is:
filesys delete /nxos/tmp/<filename>