Skip to main content

files command

This command manages files uploaded to the CMM.

If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or files command errors for a list of error messages that are specific to the files command.

Table 1. files command.

The command table is a multi-row, four-column table where each row describes a CMM CLI command option: column one lists command function, column two provides a detailed command description, column three shows command-option syntax, and column four lists valid command targets.

FunctionWhat it doesCommandTarget (see paths in Command targets)
Display file list and free spaceDisplays a list of files and space remaining in the CMM file system.files
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Delete fileDeletes a file from the CMM file system.
Note
This command can only be used to delete files: it will not delete directories.
files -d filename

where filename is a valid, existing filename of less than 256 characters in length.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis administration
  • Chassis configuration
  • Blade administration
  • Blade configuration
  • I/O module administration
  • I/O module configuration
See Commands and user authority for additional information.
Primary CMM:
  • mm[p]
  • mm[P]
  • mm[x]
  • where x is the primary CMM bay number.
Example: To view the files and remaining space in the primary CMM file system, while the Lenovo Flex System chassis is set as the persistent command environment, at the system> prompt, type
files -T mm[p]
To delete the file tftproot/tftp_file.pkt from the primary CMM file system, while the Lenovo Flex System chassis is set as the persistent command environment, at the system> prompt, type
files -d tftproot/tftp_file.pkt -T mm[p]

The following example shows the information that is returned from these commands:

system> files -T mm[p]
12288 Thu Jan 05 13:28:23 2015 lost+found/
1024 Thu Jul 06 19:32:51 2015 tftproot/
1024 Thu Jul 06 19:34:15 2015 tftproot/test/
1024 Thu Jul 06 19:34:15 2015 tftproot/test/test2/
0 Sat Aug 19 09:22:02 2015 tftproot/tftp_file.pkt
0 Sun Oct 01 07:57:19 2015 tftproot/.Do_not_delete_this_directory
0 Tue Dec 15 11:07:19 2015 test
0 Thu Apr 13 23:45:40 2015 bob.pkt
1024 Tue Feb 02 15:29:17 2015 pubkeys/
426 Tue Feb 02 15:29:17 2015 pubkeys/ssh_key.pub
5652 Fri May 12 00:56:36 2015 asm.cfg
Total space: 73108480 bytes
Used: 24576 bytes
Available: 73083904 bytes
system> files -d tftproot/tftp_file.pkt -T mm[p]
OK
system>