Using SFTP from an External SSH2 Client
The SFTP protocol is supported for transferring configuration, and
policy files to the switch from the SFTP client. You must have administrator-level access to
the switch. The switch can be specified by its switch name or IP address.
ExtremeXOS requires that SFTP transfer to the switch
files named as follows:
- *.cfg—ExtremeXOS configuration files
- *.pol—ExtremeXOS policy files
- *.xos—ExtremeXOS core image file
- *.xmod—ExtremeXOS modular package file
- *.ssh—Public key files
In the following
examples, you are using a Linux system to move files to and from
the switch at 192.168.0.120, using the switch administrator account
admin. You are logged into your Linux system as account user.
-
To transfer the primary configuration file from the switch
to your current Linux directory using SCP2, use the following command:
user@linux-server]# sftp admin@192.168.0.120
password: <Enter password>
sftp> put primary.cfg
-
To copy the policy filename test.pol from your Linux
system to the switch, use the following command:
user@linux-server]# sftp admin@192.168.0.120
password: <Enter password>
sftp> put test.pol
-
To copy the image file image.xos from
your Linux system to the switch, use the following command:
user@linux-server]# sftp admin@192.168.0.120
password: <Enter password>
sftp> put image.xos
-
To load the public key id_rsa.pub from your Linux system
to the switch, use the following command:
user@linux-server]# sftp admin@192.168.0.120
password: <Enter password>
sftp> put id_rsa.pub id_rsa.ssh
For image file transfers, only one image file at
a time can be available for installation. If you need to install an additonal image
(xmod):
-
Transfer image.xos into the
switch using scp/sftp
-
Install the image.xos image using
the "install image" command
-
Transfer the xmod into the switch using scp/sftp
-
Install the xmod modular package file using install image fname {partition} [ active | inactive] {reboot} command.
-
For image file transfers using SFTP or SCP (with the
switch acting as the server), once the image is copied to the switch,
validation of image is done by the switch, as indicated by the following log
message:
<Info:AAA.LogSsh> Validating Image file, this could
take approximately 30 seconds..image.xos
You must receive the following log message before
you can proceed with the installation of the image:
<Info:AAA.LogSsh> Image file successfully
validated
In stacking switches, you must receive the
following log message from all slots before proceeding with the installation.
For example, in a four-switch stack, the installation
can be proceed only after the following log messages are received:
04/19/2007 17:41:09.71 <Info:AAA.LogSsh> Slot-1: Sent file "image.xos" info to backup
04/19/2007 17:41:09.71 <Info:AAA.LogSsh> Slot-1: Sent file "image.xos" info to standby slot 3
04/19/2007 17:41:09.71 <Info:AAA.LogSsh> Slot-1: Sent file "image.xos" info to standby slot 4