User`s guide
432
REN Rename File
The ren command is used to rename files in the filing system. The format is:
ren <oldfilename> <newfilename>
SCAN/SCANR Scan File System
The scan command performs a diagnostic check on the file system and reports any errors
that are found. For example:
scan
Please wait...
direct ....ok
sbios ....ok
mirror ....ok
image ....ok, data ok
sregs.dat ....ok
x3prof ....ok
CAcert.cer ....ok
The scanning process may take several seconds so you should not enter any other
commands until the results are listed.
The
scanr command works in a similar fashion, except that it will return ERROR if any file
is in error. This is useful when used with scripts that can look for the ERROR failure result.
TYPE Display Text File
The type command is used to display the contents of a text file. The format is:
type <filename>
For example:
type config.da0
[CFG]
config last_saved "12:04:45, 31 Jan 2011"
config last_saved_changes "1"
config last_saved_user "ASY 0"
eth 0 descr "LAN 0"
eth 0 IPaddr "10.1.51.3"
eth 0 mask "255.255.0.0"
eth 0 bridge ON
eth 1 descr "LAN 1"
eth 2 descr "LAN 2"
eth 3 descr "LAN 3"
eth 4 descr "ATM PVC 0"
XMODEM File Transfer
The xmodem command is used to initiate an XMODEM file upload from the port at which the
command is entered. The format is:
xmodem <filename>
where <filename> is the name under which the file will be saved when the upload is
complete.