Cisco Cisco Packet Data Gateway (PDG)
Software Management Operations
Maintaining the Local File System ▀
ASR 5500 System Administration Guide, StarOS Release 17 ▄
107
Renaming Files and Directories
Use the rename command to change the name of a file from its original name to a different name. Remember to use the
same file extension, if applicable, to ensure that the file type remains unchanged.
same file extension, if applicable, to ensure that the file type remains unchanged.
rename { /flash | /usb1 | /hd-raid } /src_filename { /flash | /usb1 | /hd-raid }
/dst_filename [-noconfirm]]
/dst_filename [-noconfirm]]
Use the following command to rename a file named iot_test.cfg to iot_accept.cfg on the /flash local device.
rename /flash/iot_test.cfg /flash/iot_accept.cfg -noconfirm
Important:
Use the rename command only within the same local device. You cannot rename a file and place it
onto another local device at the same time. To move a renamed file, you must use the copy command.
Copying Files on the ASR 5500 Chassis
These instructions assume that you are at the root prompt for the Exec mode:
[local]host_name#
To save your current configuration, enter the following command:
copy from_url to_url [-noconfirm]
To copy a configuration file called system.cfg from a directory that was called cfgfiles to a directory named configs_old
on the flash memory in the MIO/UMIO, enter the following command:
on the flash memory in the MIO/UMIO, enter the following command:
copy /flash/cfgfiles/system.cfg /flash/configs_old/system_2011.cfg
To copy a configuration file called simple_ip.cfg from a directory called 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 of administrator and a password of secure,
use the following command:
address of 192.168.34.156, on which you have an account with a username of administrator and a password of secure,
use the following command:
copy /flash/host_name_configs/simple_ip.cfg
ftp://administrator:secure@192.168.34.156/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:
config_server, enter the following command:
copy /flash/cfgfiles/init_confg.cfg tftp://config_server/init_config.cfg