Displaying File Checksums; Listing The Files In A Directory; Creating A Directory; Deleting An Existing Directory - Cisco AP776A - Nexus Converged Network Switch 5020 Configuration Manual

Cisco mds 9000 family cli configuration guide - release 4.x (ol-18084-01, february 2009)
Hide thumbs Also See for AP776A - Nexus Converged Network Switch 5020:
Table of Contents

Advertisement

Chapter 2
Before You Begin
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m

Displaying File Checksums

The show file file md5sum command provides the MD5 checksum of the file. MD5 is an electronic
fingerprint for the file. MD5 is the latest implementation of the Internet standards described in RFC 1321
and is useful for data security as well as integrity.
The show file file cksum command provides the checksum of the file. The checksum values compute a
cyclic redundancy check (CRC) for each named file. Use this command to verify that the files are not
corrupted—compare the checksum output for the received file against the checksum output for the
original file.
This example provides the output of the show file command when a file is specified.
switch# show file bootflash://sup-1/ultimate_file.tar cksum
2569913991
switch# show file bootflash://sup-1/ultimate_file.tar md5sum
52479aae2dce1fd849b6f4916d750392

Listing the Files in a Directory

The dir command displays the contents of the current directory or the specified directory. The syntax
for this command is dir directory or dir filename.
This example shows how to list the files on the default volatile: file system.
switch# dir

Creating a Directory

The mkdir command creates a directory at the current directory level or at a specified directory level.
The syntax for this command is mkdir directory name.
This example creates a directory called test in the slot0 directory:
switch# mkdir slot0:test
This example creates a directory called test at the current directory level:
switch# mkdir test
If the current directory is

Deleting an Existing Directory

The rmdir command deletes an existing directory at the current directory level or at a specified directory
level. The directory must be empty to be deleted.
The syntax for this command is rmdir directory name.
This example deletes the directory called test in the slot0 directory:
OL-18084-01, Cisco MDS NX-OS Release 4.x
Usage for volatile: filesystem
0 bytes total used
20971520 bytes free
20971520 bytes available
slot0:mydir
, this command creates a directory called
Cisco MDS 9000 Family CLI Configuration Guide
Using Switch File Systems
.
slot0:mydir/test
2-29

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents