Copying The Syslog File Through Scp; Sending The Syslog File To An E-Mail Recipient - Acopia Adaptive Resource Switch Cli Maintenance Manual

Table of Contents

Advertisement

Troubleshooting Tools
Accessing the Syslog
bstnA6k(cfg)# exit
bstnA6k# copy logs syslog scp://juser@rh1.wwmed.com:arx_syslog
Password: jpasswd
bstnA6k# ...
6-26

Copying the Syslog File through SCP

For secure sites, you can upload with the Secure Copy (SCP) protocol. The URL has a
different syntax for SCP transfers:
copy logs syslog-file scp://username@server:file [accept-host-key]
where
syslog-file identifies the syslog file to copy,
username@ is a valid username at the remote host,
server identifies the SCP server with an IP address or FQDN (for example,
"172.16.100.18" or "deb1.mynet.com"), and
file is the chosen file name at the remote server. Lead with a slash
(scp-server:/file) if the file path is absolute. Without the slash, the path is
presumed to start in the home directory for username.
accept-host-key (optional) tells the CLI to accept an unknown host key if
offered by the SCP server. The host key authenticates the server; if the key is
unknown, it is possible that an attacker has taken the server's hostname
and/or IP address. Note that any SCP server is "unknown" if the switch has
not had an SCP exchange with it since the switch's last reboot.
The CLI prompts for the username's password. Enter a password that is valid at the
remote site.
For example, the following command exits from cfg mode to priv-exec mode, then
sends the "syslog" file to juser's home directory on rh1.wwmed.com:

Sending the Syslog File to an E-Mail Recipient

You can alternatively send the syslog file as an E-mail attachment. Before you use
E-mail, you must configure the Simple Mail Transfer Protocol (SMTP) on the switch,
starting with the
command in cfg mode: see the chapter on E-mail and SMTP in
smtp
the
CLI Reference
Guide.
CLI Maintenance Guide

Advertisement

Table of Contents
loading

Table of Contents