xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
486
upload cfg_toRCP
If a user only specifies the path_filename parameter, only the current device configuration will
be uploaded.
config_id
- Specifies the configuration file ID. There is no need to support this argument when
only one configuration 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: user_name@10.1.1.1/home/user_name/desxxxx.had
Example for relative path: user_name@10.1.1.1./desxxxx.had
NOTE:
No SPACES are allowed in the whole <string>.
filter_string
- A filter string is enclosed by the “symbol. Therefore, the filter string itself cannot
contain the “character. The filter string is case sensitive.
Restrictions
Only Administrator level users can issue this command.
Example usage:
To upload the configuration from a single-config device to an RCP server:
DGS-3450:admin# upload cfg_toRCP username rcp_user 172.18.212.104 dest_file /home/DGS-
XXXX.cfg
Command: upload cfg_toRCP username rcp_user 172.18.212.104 dest_file /home/DGS-XXXX.cfg
Connecting to server....................... Done.
Upload Configuration....................... Done.
DGS-3450:admin#
To upload the configuration from a multi-config device to an RCP server using an RCP string:
DGS-3450:admin# upload cfg_toRCP rcp: rcp_user@172.18.212.104/home/DGS-XXXX.cfg config_id
1
Command: upload cfg_toRCP rcp: rcp_user@172.18.212.104/home/DGS-XXXX.cfg config_id 1
Connecting to server..................... Done.
Upload configuration..................... Done.
DGS-3450:admin#
upload log_toRCP
Purpose
Upload a log file from the device to an RCP server.
Syntax
upload log_toRCP [{username <username 15>} {<ipaddr>} {dest_file} <path_filename
64> |rcp: <string 128>]
Description
This command is used to upload a system log file from the device to an RCP server.
If a destination file is not specified the file name will be modelname-slog.
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.