
B-58
MAX Administration Guide
Diagnostic Parameters and Commands
Using diagnostics-related DO commands for the MAX 6000 unit’s PCMCIA card
where:
•
path1
is the path to and name of the file or directory you want to move.
•
path2
is the path to and name of the destination. When moving a file, you must include
the destination filename.
Example: :
Rm
Description: Deletes a file or an empty directory.
Permission level: Requires Diagnostic mode permissions.
Usage:
rm
path
where
path
is the path to and name of the directory or file you want to remove.
Example: Examples are:
TLoadCode
Description: Uses Trivial File Transfer Protocol (TFTP) to load software from a TFTP server
into the MAX 6000 unit’s flash memory or onto a PCMCIA card. The TFTP host can be
accessed from the Ethernet interface or across the WAN.
You must reset the unit to load the new software.
The unit might experience performance degradation during the file transfer.
When you use the
tloadcode
command, the current configuration of the MAX unit is saved
to flash memory. Manual reconfiguration, required when loading software through the serial
connection, is unnecessary when using
tloadcode
for a TFTP transfer.
When you execute the command, a sequence of dots appears on the screen, indicating the
progress of the transfer. Each dot represents the transfer of approximately 512 bytes.
Note:
If the transfer is interrupted or the checksum of the uploaded file is incorrect, the new
code does not load when the MAX 6000 unit is rebooted. The unit reloads its previous version
of code. Also, if the new code is uploaded at boot time, the unit automatically performs an
> mv test.txt dump/test.txt
Moves the
test.txt
file to the
dump
direc-
tory.
> mv testdir dump
Renames the
testdir
directory to
dump
.
> mv graphics manual/graphics
Moves the directory
graphics
to make it a
subdirectory of the directory
manual
.
> rm dump/test.txt
Removes the file
test.txt
from the directory
dump
.
> rm dump
Removes the directory
dump
. The directory must be
empty.