Difference between revisions of "SAN Switch upgrade with sftp"

From Notes_Wiki
 
 
Line 1: Line 1:
[[Main Page|Home]] > [[Switch configuration notes]] > [[SAN Switch upgrade with sftp]]
[[Main Page|Home]] > [[Switch configuration notes]] > [[SAN Switch upgrade with sftp]]
= SFTP Configuration on Ubuntu Machine =
== Install and Configure SFTP ==
<syntaxhighlight lang="bash">
sudo apt update
sudo apt install -y openssh-server
sudo groupadd sftpusers
sudo useradd -m -g sftpusers -s /usr/sbin/nologin fosfw
sudo passwd fosfw
sudo mkdir -p /sftp/firmware
sudo chown root:root /sftp
sudo chmod 755 /sftp
sudo chown fosfw:sftpusers /sftp/firmware
sudo chmod 755 /sftp/firmware
</syntaxhighlight>
Copy the firmware file to the directory:
<syntaxhighlight lang="bash">
/sftp/firmware
</syntaxhighlight>
== Update SSH Configuration ==
Edit the file **/etc/ssh/sshd_config** and add the following:
<syntaxhighlight lang="text">
Match Group sftpusers
    ChrootDirectory /sftp
    ForceCommand internal-sftp
    X11Forwarding no
    AllowTcpForwarding no
</syntaxhighlight>
Restart the SSH service:
<syntaxhighlight lang="bash">
sudo systemctl restart ssh
</syntaxhighlight>
= SAN Switch Firmware Upgrade =
From the SAN switch CLI, run:
<syntaxhighlight lang="bash">
firmwaredownload -s
</syntaxhighlight>
You will be prompted for SFTP server details:
* IP address: 192.168.50.212 (Ubuntu server IP address) 
* Username: fosfw (SFTP username) 
* File path: /firmware/9.2.1_w/ (path to the firmware file) 
* Protocol: 2 (SFTP) 
* Password: 123456 (SFTP user password) 
Proceed with the default selections for the license agreement and other prompts.
Each firmware download takes approximately 20–30 minutes per switch.
After the download completes, reboot the switch to apply the update.

Latest revision as of 11:55, 19 August 2025

Home > Switch configuration notes > SAN Switch upgrade with sftp


SFTP Configuration on Ubuntu Machine

Install and Configure SFTP

sudo apt update
sudo apt install -y openssh-server
sudo groupadd sftpusers
sudo useradd -m -g sftpusers -s /usr/sbin/nologin fosfw
sudo passwd fosfw
sudo mkdir -p /sftp/firmware
sudo chown root:root /sftp
sudo chmod 755 /sftp
sudo chown fosfw:sftpusers /sftp/firmware
sudo chmod 755 /sftp/firmware

Copy the firmware file to the directory:

/sftp/firmware

Update SSH Configuration

Edit the file **/etc/ssh/sshd_config** and add the following:

Match Group sftpusers
    ChrootDirectory /sftp
    ForceCommand internal-sftp
    X11Forwarding no
    AllowTcpForwarding no

Restart the SSH service:

sudo systemctl restart ssh

SAN Switch Firmware Upgrade

From the SAN switch CLI, run:

firmwaredownload -s

You will be prompted for SFTP server details:

  • IP address: 192.168.50.212 (Ubuntu server IP address)
  • Username: fosfw (SFTP username)
  • File path: /firmware/9.2.1_w/ (path to the firmware file)
  • Protocol: 2 (SFTP)
  • Password: 123456 (SFTP user password)

Proceed with the default selections for the license agreement and other prompts.

Each firmware download takes approximately 20–30 minutes per switch.

After the download completes, reboot the switch to apply the update.