CloudVision Portal Upgrade¶
Arista Account
This lab requires valid credentials on arista.com to download CVP software upgrades. Without an entitled account you will not be able to complete this lab.
This lab assumes you have completed the previous lab, CloudVision Initial Configuration.
Preparing for the Lab¶
-
Retrieve your api access token from arista.com.
-
Click here to browse to your profile page on Arista.com
- Log in if you haven't already.
-
Record the api access token for your user account.
-
-
From the ATD Lab overview page, click Programmability IDE to launch the VSCode instance.
-
In the VSCode window, select the upper left menu icon, then select Terminal, then New Terminal.
Lab Tasks¶
-
From the VSCode terminal, ssh to the CVP server at 192.168.0.5 as
root
using the password you set during the initial installation.Command
Enter
yes
to accept the key.Expected Result
-
Check CVP server version with cvpi command.
Command
Expected Output
-
Exit SSH session from CVP back to VSCode.
Where am I?
You should now be back to the terminal session on the ATD jumphost in the VSCode window. Notice the prompt changes back to ➜ project from the previous step as you exit the SSH session.
-
Clone example scripts repo, and examine the script help option.
Note
This repo will provide a handy script to download the CVP upgrade file locally to the ATD jump host. This script can also be used outside the ATD lab to download the upgrade file directly to the CVP server.
-
Change directory to labfiles and clone the necessary repo.
Command
Command
Expected Output
➜ labfiles git clone https://github.com/Hugh-Adams/Example_Scripts.git Cloning into 'Example_Scripts'... remote: Enumerating objects: 573, done. remote: Counting objects: 100% (23/23), done. remote: Compressing objects: 100% (17/17), done. remote: Total 573 (delta 6), reused 17 (delta 6), pack-reused 550 (from 1) Receiving objects: 100% (573/573), 1.37 MiB | 8.12 MiB/s, done. Resolving deltas: 100% (259/259), done. ➜ labfiles
-
Navigate to the directory where the script resides.
Command
-
Check the directory contents with the ls command.
Command
Expected Output
-
-
Invoke the CVPgetUpgradeV2.py script with the
--help
flag. Notice the--token
and--upgrade
argument options.Command
Expected Output
➜ Get_UpgradeFile_CVP git:(main) python3 CVPgetUpgradeV2.py --help usage: CVPgetUpgradeV2.py [-h] --upgrade UPGRADE --token TOKEN [--proxyType PROXYTYPE] [--proxyAddr PROXYADDR] [--test] [--nofile] options: -h, --help show this help message and exit --upgrade UPGRADE CloudVision Upgrade File Name i.e. cvp-upgrade-2020.2.3.tgz --token TOKEN User API access token found at https://www.arista.com/en/users/profile --proxyType PROXYTYPE Type of proxy http or https --proxyAddr PROXYADDR IP address or URL of proxy server --test --nofile ➜ Get_UpgradeFile_CVP git:(main)
-
-
Download the CVP Upgrade file using api access token retrieved earlier.
Command
Expected Output
➜ Get_UpgradeFile_CVP git:(main) python3 CVPgetUpgradeV2.py --token <your token here> --upgrade cvp-upgrade-2024.1.2.tgz <Response [200]>
-
Verify the download.
Command
Expected Output
Note
The download will be written to the
/tmp/upgrade
directory. The script does not output download progress, and will take some time to complete with thecode. Please be patient.
-
-
Transfer the upgrade file to the CVP server.
-
Create
/tmp/upgrade
directory on CVP server.Command
-
Transfer the CVP upgrade file to the CVP Server.
Command
Expected Output
-
-
Start the CVP upgrade process.
-
SSH to cvp the server.
Command
-
Navigate to
/tmp/upgrade
.Command
Verify the upgrade file is there.
Command
Expected Output
-
Change user to cvpadmin, choose upgrade (u).
Command
Expected Output
[root@cvp upgrade]# su cvpadmin CVP Installation Menu ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── [q]uit [p]rint [s]inglenode [m]ultinode [r]eplace [u]pgrade >u Validating /tmp/upgrade/cvp-upgrade-2024.1.2.tgz ...rest of output omitted...
-
When prompted about unsupported EOS or TerminAttr versions, select y.
-
-
Check CVP server version number to verify upgrade is successful and complete.
Success
Lab Complete!