xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
485
download cfg_fromRCP
NOTE:
If a user specifies the relative file path, the path search strategy will depend on the
server system. For some systems, the current user working directory will be searched first,
followed by the environment paths.
config_id
- Specifies the configuration file ID. There is no need to support this argument when
only one CFG file is supported. If not specified, it refers to the boot_up configuration file.
rcp: <string 128>
- Syntax: rcp: username@ipaddr/directory/filename
Example for FULL path: [email protected]/home/user_name/desxxxx.had
Example for relative path: [email protected]./desxxxx.had
NOTE:
No SPACE in the whole <string>.
Restrictions
Only Administrator level users can issue this command.
Example usage:
To download a configuration file from an RCP server:
DGS-3450:admin# download cfg_fromRCP username rcp_user 172.18.212.106 src_file
/home/DGS-XXXX.cfg
Command: download cfg_fromRCP username rcp_user 172.18.212.106 src_file /home/DGS-
XXXX.cfg
Connecting to server.................…. Done.
Download configuration................. Done.
DGS-3450:admin#
To download a configuration using an RCP string:
DGS-3450:admin# download cfg_fromRCP rcp: [email protected]/home/DGS-XXXX.cfg
config_id 1
Command: download cfg_fromRCP rcp: [email protected]/home/DGS-XXXX.cfg config_id 1
Connecting to server................... Done.
Download configuration................. Done.
DGS-3450:admin#
upload cfg_toRCP
Purpose
Upload a configuration file from the device to an RCP server.
Syntax
upload cfg_toRCP [{username <username 15>} {<ipaddr>} {dest_file} <path_filename
64> | rcp: <string 128>] { config_id <int 1-2>} {[include | exclude | begin] <filter_string
80> {<filter_string 80> {<filter_string 80>}} {[include | exclude | begin] <filter_string 80>
{<filter_string 80> {<filter_string 80>}} {[include | exclude |
begin] <filter_string 80> {<filter_string 80> {<filter_string 80>}}}}}
Description
This command is used to upload a configuration file from the device to an RCP server.
If the remote filename is not specified, the default file name will be modelname-image-id.
Parameters
username
- The remote user name on the RCP Server.
ipaddr
- The IP address of the RCP server.
path_filename
- The pathname specifies the pathname on the RCP server or local RCP
client.
NOTE:
If a user specifies the relative file path, the path search strategy will depend on the
server system. For some systems, the current user working directory will be searched first,
followed by the environment paths.