The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter contains the following sections:
The Cisco Nexus 1000V file system provides a single interface to all the file systems that the Cisco Nexus 1000V switch uses, including:
This section describes how to navigate the file system and includes the following topics:
The syntax for specifying a file system is <file system name>:[//server/]. The following table describes file system syntax.
File System Name |
Server |
Description |
---|---|---|
bootflash |
sup-active sup-local sup-1 module-1 |
Internal memory located on the active supervisor used for storing system images, configuration files, and other miscellaneous files. Cisco Nexus 1000V CLI defaults to the bootflash: file system |
sup-standby sup-remote sup-2 module-2 |
Internal memory located on the standby supervisor used for storing system images, configuration files, and other miscellaneous files. |
|
volatile |
— |
Volatile random-access memory (VRAM) located on a supervisor module used for temporary or pending changes. |
You can display the directory name of your current CLI location.
Before beginning this procedure, you must be logged in to the CLI in any command mode.
Command or Action | Purpose | |
---|---|---|
Step 1 | switch# pwd | Displays the present working directory. |
switch# pwd bootflash:
You can change your location in the CLI, from one directory or file system to another.
Cisco Nexus 1000V CLI defaults to the bootflash: file system.
![]() Note |
Any file saved in the volatile: file system is erased when the switch reboots. |
Before beginning this procedure, you must be logged in to the CLI in any command mode.
switch# pwd volatile: switch# cd bootflash:
switch# pwd volatile: switch# cd bootflash:mydir
switch# pwd volatile: switch# cd mystorage
Command or Action | Purpose | |
---|---|---|
Step 1 | switch# dir [directory | filename] | Displays the contents of a directory or file. |
switch# dir lost+found/ 49241 Jul 01 09:30:00 2008 diagclient_log.2613 12861 Jul 01 09:29:34 2008 diagmgr_log.2580 31 Jul 01 09:28:47 2008 dmesg 1811 Jul 01 09:28:58 2008 example_test.2633 89 Jul 01 09:28:58 2008 libdiag.2633 42136 Jul 01 16:34:34 2008 messages 65 Jul 01 09:29:00 2008 otm.log 741 Jul 01 09:29:07 2008 sal.log 87 Jul 01 09:28:50 2008 startupdebug Usage for log://sup-local 51408896 bytes used 158306304 bytes free 209715200 bytes total switch#
Before beginning this procedure, you must be logged in to the CLI in EXEC mode.
switch# copy ? bootflash: Select source filesystem core: Select source filesystem debug: Select source filesystem ftp: Select source filesystem licenses Backup license files log: Select source filesystem nvram: Select source filesystem running-config Copy running configuration to destination scp: Select source filesystem sftp: Select source filesystem startup-config Copy startup configuration to destination system: Select source filesystem tftp: Select source filesystem volatile: Select source filesystem
You can have the CLI complete a partial file name in a command.
n1000v# show file bootflash: nexus-1000v- bootflash:nexus-1000v-dplug-mzg.4.0.4.SV1.0.42.bin bootflash:nexus-1000v-mzg.4.0.4.SV1.0.42.bin bootflash:nexus-1000v-kickstart-mzg.4.0.4.SV1.0.42.bin n1000v# show file bootflash:c<Tab> -----BEGIN RSA PRIVATE KEY----- MIICXgIBAAKBgQDSq93BrlHcg3bX1jXDMY5c9+yZSST3VhuQBqogvCPDGeLecA+j ... ... n1000v#
You can copy a file, such as a configuration file, to save it or reuse it at another location. If your internal file systems are corrupted, you could potentially lose your configuration. Save and back up your configuration files periodically. Also, before installing or migrating to a new software configuration, back up the existing configuration files.
![]() Note |
Use the dir command to ensure that enough space is available in the destination file system. If enough space is not available, use the delete command to remove unneeded files. |
Before beginning this procedure, you must be of the following:
switch# copy system:running-config tftp://10.10.1.1/home/configs/switch3-run.cfg
switch# copy bootflash:system_image bootflash://sup-2/system_image
switch# copy system:running-config bootflash:my-config
switch# copy scp://user@10.1.7.2/system-image bootflash:system-image
switch# copy sftp://172.16.10.100/myscript.txt volatile:myscript.txt
switch# copy system:running-config bootflash:my-config
switch# copy bootflash:samplefile bootflash:mystorage/samplefile
switch# copy samplefile mystorage/samplefile
switch# copy tftp://10.10.1.1/home/configs/switch3-run.cfg system:running-config
Command or Action | Purpose | |
---|---|---|
Step 1 | switch# mkdir directory name | Creates a directory at the current directory level. |
switch# mkdir test
switch# mkdir bootflash:test
This command is valid only on Flash file systems.
Before beginning this procedure, be sure of the following:
Command or Action | Purpose | |
---|---|---|
Step 1 | switch# rmdir [filesystem:[//module/]]directory | Removes a directory. The directory name is case sensitive. |
switch# rmdir test
switch# rmdir bootflash:test
![]() Caution |
If a file with the same name already exists in the destination directory, that file is overwritten by the moved file. |
The move will not complete if there is not enough space in the destination directory.
Before beginning this procedure, you must be logged in to the CLI.
Command or Action | Purpose | |
---|---|---|
Step 1 | switch# move {source path and filename} {destination path and filename} | Moves the file from one directory to another in the same file system (bootflash:). |
switch# move bootflash:samplefile bootflash:mystorage/samplefile
switch# move samplefile mystorage/samplefile
You can delete files or directories on a Flash Memory device.
![]() Caution |
When deleting, if you specify a directory name instead of a file name, the entire directory and its contents are deleted. |
You must understand the following information:
Command or Action | Purpose | |
---|---|---|
Step 1 | switch# delete [bootflash: | debug: | log: | volatile:] filename or directory name | Deletes a specified file or directory. |
switch# delete bootflash:dns_config.cfg
switch# delete dns_config.cfg
Before beginning this procedure, you must be logged in to the CLI.
switch# show system internal l2fm event-history errors >errorsfile switch# dir 2687 Jul 01 18:17:20 2008 errorsfile 16384 Jun 30 05:17:51 2008 lost+found/ 4096 Jun 30 05:18:29 2008 routing-sw/ 49 Jul 01 17:09:18 2008 sample_test.txt 1322843 Jun 30 05:17:56 2008 nexus-1000v-dplug-mzg.4.0.4.SV1.0.42.bin 21629952 Jun 30 05:18:02 2008 nexus-1000v-kickstart-mzg.4.0.4.SV1.0.42.bin 39289400 Jun 30 05:18:14 2008 nexus-1000v-mzg.4.0.4.SV1.0.42.bin Usage for bootflash:// 258408448 bytes used 2939531264 bytes free 3197939712 bytes total switch# gzip bootflash:errorsfile switch# dir 1681 Jun 30 05:21:08 2008 cisco_svs_certificate.pem 703 Jul 01 18:17:20 2008 errorsfile.gz 16384 Jun 30 05:17:51 2008 lost+found/ 4096 Jun 30 05:18:29 2008 routing-sw/ 49 Jul 01 17:09:18 2008 sample_test.txt 1322843 Jun 30 05:17:56 2008 nexus-1000v-dplug-mzg.4.0.4.SV1.0.42.bin 21629952 Jun 30 05:18:02 2008 nexus-1000v-kickstart-mzg.4.0.4.SV1.0.42.bin 39289400 Jun 30 05:18:14 2008 nexus-1000v-mzg.4.0.0.S1.0.34.bin Usage for bootflash:// 258408448 bytes used 2939531264 bytes free 3197939712 bytes total switch#
You can uncompress (unzip) a specified file that is compressed using LZ77 coding.
Before beginning this procedure, you must be logged in to the CLI.
switch# gunzip bootflash:errorsfile.gz switch# dir bootflash: 2687 Jul 01 18:17:20 2008 errorsfile 16384 Jun 30 05:17:51 2008 lost+found/ 4096 Jun 30 05:18:29 2008 routing-sw/ 49 Jul 01 17:09:18 2008 sample_test.txt 1322843 Jun 30 05:17:56 2008 nexus-1000v-dplug-mzg.4.0.0.SV1.0.42.bin 21629952 Jun 30 05:18:02 2008 nexus-1000v-kickstart-mzg.4.0.4.SV1.0.42.bin 39289400 Jun 30 05:18:14 2008 nexus-1000v-mzg.4.0.0.SV1.0424.bin Usage for bootflash://sup-local 258408448 bytes used 2939531264 bytes free 3197939712 bytes total DCOS-112-R5#
switch# show running-config > volatile:switch1-run.cfg
switch# show running-config > bootflash:switch2-run.cfg
switch# show running-config > tftp://10.10.1.1/home/configs/switch3-run.cfg
switch# show interface > samplefile
Use the following commands to verify the integrity of a system or kickstart image before loading it.
Command |
Description |
---|---|
copy source path and file system:running-config |
Copies the source file to the running configuration on the switch, and configures the switch as the file is parsed line by line. |
show version image [bootflash: | modflash: |volatile:] |
Validates the specified image. bootflash:—specifies bootflash as the directory name. volatile:—Specifies volatile as the directory name. modflash:—Specifies modflash as the directory name. |
switch# copy tftp://10.10.1.1/home/configs/switch3-run.cfg system:running-config switch# show version image bootflash:isan.bin image name: nexus-1000v-mz.4.0.4.SV1.1.bin bios: version unavailable system: version 4.0(4)SV1(1) compiled: 4/2/2009 23:00:00 [04/23/2009 09:55:29]
You can recover your configuration from a previously saved version.
![]() Note |
Each time you use a copy running-config startup-config command, a binary file is created and the ASCII file is updated. A valid binary configuration file reduces the overall boot time significantly. A binary file cannot be uploaded, but its contents can be used to overwrite the existing startup configuration. The write erase command clears the binary file. |
switch# copy running-config bootflash:June03-Running
switch# copy bootflash:my-config startup-config
This section describes how to display information about files and includes the following procedures:
Before beginning this procedure, you must be logged in to the CLI.
Command or Action | Purpose | |
---|---|---|
Step 1 | switch# show file [bootflash: | debug: | volatile:] filename | Displays the contents of the specified file. |
switch# show file bootflash:sample_test.txt config t Int veth1/1 no shut end show int veth1/1 switch#
You can display the contents of a directory or file system.
Before beginning this procedure, you must be logged in to the CLI.
Command or Action | Purpose | |
---|---|---|
Step 1 | switch# pwd | Displays the present working directory. |
Step 2 | switch# dir | Displays the contents of the directory. |
switch# pwd bootflash: switch# dir Usage for volatile:// 0 bytes used 20971520 bytes free 20971520 bytes total switch#
You can display checksums for checking file integrity.
switch# show file bootflash:cisco_svs_certificate.pem cksum 266988670
switch# show file bootflash:cisco_svs_certificate.pem md5sum d3013f73aea3fda329f7ea5851ae81ff
Before beginning this procedure, you must be logged in to the CLI in EXEC mode.
switch# tail bootflash:errorsfile 5 20) Event:E_DEBUG, length:34, at 171590 usecs after Tue Jul 1 09:29:05 2008 [102] main(326): stateless restart
Feature Name |
Releases |
Feature Information |
---|---|---|
File Management |
Release 5.2(1)IC1(1.1) |
This feature was introduced. |