Added Preupgrade-validation script with switch_ssd_diag_test_check - CSCws27722 #309
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Script output on error scenario:
fab3-apic1# python aci-preupgrade-validation-Asraf-script.py -d switch_ssd_diag_test_check
==== 2025-12-23T09-28-08+0000, Script Version v4.0.1 ====
!!!! Check https://github.com/datacenter/ACI-Pre-Upgrade-Validation-Script for Latest Release !!!!
To use a non-default Login Domain, enter apic#DOMAIN\USERNAME
Enter username for APIC login : admin
Enter password for corresponding User :
Gathering Node Information...
Current APIC Version...6.1(4.60)
Lowest Switch Version...4.2(3j)
Gathering APIC Versions from Firmware Repository...
What is the Target Version? : 1
You have chosen version "6.0(9e)"
Collecting VPC Node IDs...
Progress: |████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 checks completed
=== Check Result (failed only) ===
[Check 1/1] Switch SSD Diagnostic Test Validation... Errors occurred while checking switches ERROR !!
Node Name Error Code Total Failures Fault Code
FAB3-S1 SSD Diag Test results are not available N/A N/A
Recommended Action: Review the errors and retry the check if necessary
Reference Document: https://datacenter.github.io/ACI-Pre-Upgrade-Validation-Script/validations/#switch_ssd_diag_test_check
=== Summary Result ===
PASS : 0
FAIL - OUTAGE WARNING!! : 0
FAIL - UPGRADE FAILURE!! : 0
MANUAL CHECK REQUIRED : 0
POST UPGRADE CHECK REQUIRED : 0
N/A : 0
ERROR !! : 1
TOTAL : 1
==== Script Version v4.0.1 FIN ====
fab3-apic1#
Script output on pass scenario:
COLO-C220M4-APIC01# python aci-preupgrade-validation-script.py -d switch_ssd_diag_test_check
==== 2025-12-23T04-29-46-0500, Script Version v4.0.1 ====
!!!! Check https://github.com/datacenter/ACI-Pre-Upgrade-Validation-Script for Latest Release !!!!
To use a non-default Login Domain, enter apic#DOMAIN\USERNAME
Enter username for APIC login : admin
Enter password for corresponding User :
Gathering Node Information...
Current APIC Version...5.3(2f)
Lowest Switch Version...5.3(2f)
Gathering APIC Versions from Firmware Repository...
No Firmware Detected! Please Upload APIC Firmware and re-run the script.
Collecting VPC Node IDs...301, 302, 303, 304, ... (and 4 more)
Progress: |████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 checks completed
=== Check Result (failed only) ===
=== Summary Result ===
PASS : 1
FAIL - OUTAGE WARNING!! : 0
FAIL - UPGRADE FAILURE!! : 0
MANUAL CHECK REQUIRED : 0
POST UPGRADE CHECK REQUIRED : 0
N/A : 0
ERROR !! : 0
TOTAL : 1
==== Script Version v4.0.1 FIN ====
COLO-C220M4-APIC01#