для Cisco Cisco Packet Data Gateway (PDG)

Скачать
Страница из 360
StarOS Management Operations   
▀  Maintaining the Local File System 
 
 
▄  VPC-VSM System Administration Guide, StarOS Release 19 
98 
   
[local]host_namecopy from_url to_url [ passive ] [ -noconfirm ] 
To copy the configuration file system.cfg from the directory cfgfiles to the directory configs_old on /flash, enter the 
following command: 
[local]host_namecopy /flash/cfgfiles/system.cfg 
/flash/configs_old/system_2011.cfg
 
To copy the configuration file simple_ip.cfg from the directory host_name_configs to an FTP server with an IP address 
of 192.168.34.156, on which you have an account with a username administrator and a password secure, use the 
following command: 
[local]host_namecopy /flash/host_name_configs/simple_ip.cfg 
ftp://administrator:secure@192.168.34.156/host_name_configs/ simple_ip.cfg
 
To copy a configuration file called init_config.cfg to the root directory of a TFTP server with a hostname of 
config_server, enter the following command: 
[local]host_namecopy /flash/cfgfiles/init_confg.cfg 
tftp://config_server/init_config.cfg
 
Deleting Files 
The delete command removes a designated file from its specified location on the local file system. 
Important:
  This command does not support wildcard entries; each filename must be specified in its entirety. 
 
Caution:
  Do not delete the boot.sys file. If deleted, StarOS will not reboot on command and will be rendered 
inoperable. 
[local]host_namedelete { /flash | /hd-raid }/filename [-noconfirm] 
The following command deletes the file test.cfg from the /flash directory. 
[local]host_namedelete /flash/test.cfg 
Removing Directories 
The rmdir command deletes a current directory on the specified local device. This directory can then be incorporated as 
part of the path name for any file located in the local file system. 
Important:
  The directory you want to remove (delete) must be empty before executing the rmdir command. If 
the directory is not empty, the CLI displays a “Directory not empty” message and will not execute. 
[local]host_namermdir url /dir_name 
The following command deletes the empty directory configs in the /flash directory.