cancel
Showing results for 
Search instead for 
Did you mean: 

XIQ-SE: archive of EXOS switch with other VR-default config doesn't work

XIQ-SE: archive of EXOS switch with other VR-default config doesn't work

Rien_van_Maurik
New Contributor

Hello

For a Customer we upgrade XMC to XIQ-SE.

Sins that moment the archive of the Switches with there management IP adres connected to a other VR than vr-default,  doesn't work.

In XMC it did work ( years ago we make a copy of the exsting archive script, change the VR notification to the correct one and connect it to the XMC "Archive inventory settings")

SO after discovering we see that the XIQ--SE uses the default archive script instead of the correct one. so I changed that to the correct one.

But still the archive doesn't work

The archive script in exos switch who are using the VR-default as Management router is working

The XIQSE version we use is: 21.11.11.37

the EXOS version is: 22.7.1.2 patch1-15

The archive script chosen in XIQ-SE is:  ( in "network/site/device/<switch>"  [rightclick] "Archives/inventory settings/MIB and scripts override method/device Family definition Filename") ExtremeExos-TFTP (VR-ADX-MGMT)

Here the Full "ExtremeExos-TFTP (VR-ADX-MGMT)" script

-- Use these scripts to manage Extreme XOS devices
name="ExtremeXOS - TFTP (VR-ADX-MGMT)"
desc="Extreme SSH/TFTP Scripts using VR-ADX-MGMT interface"
protocol=TFTP
--
separator=UNIX_FILE_SEPARATOR
advanced_script_support=true
-- Recheck script output for success even if there was an error.
perform_success_test_always=true
--
-----BEGIN SCRIPT "Configuration Upload"-----
save configuration primary
Y

@receive 5
save configuration as-script nms
@key y
@key %0d
@RECEIVEUNTIL 30 ".*done!.*"
@receive 5
%EXTR_DYNAMIC_COMMANDS%
@receive 5
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration Upload"-----
Uploading.*done!
-----END SUCCESS-----
-----BEGIN FAILURE MAPPINGS "Configuration Upload"-----
Error: timeout=The device was unable to contact the TFTP server. Check that the TFTP server is running and connectivity is okay.
Network is unreachable=The device was unable to backup the configuration. Check that the correct VR is being used.
.*to switch... failed=Backup of the configuration failed. Verify that the TFTP server is running and connectivity is okay.
-----END FAILURE MAPPINGS-----
--
-----BEGIN SCRIPT "Configuration Download"-----
save configuration primary
Y
%EXTR_DYNAMIC_COMMANDS%
@receive 10
use configuration primary
reboot
y
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration Download"-----
Downloading.*(to switch|on.*MSM|on.*MM|on.*Node).+ done!
The selected configuration.*
-----END SUCCESS-----
-----BEGIN FAILURE MAPPINGS "Configuration Download"-----
Error: timeout=The device was unable to contact the TFTP server. Check that the TFTP server is running and connectivity is okay.
Network is unreachable=The device was unable to download the configuration. Check that the correct VR is being used.
Downloading.*to switch... failed=Restore of the configuration failed. Verify that the TFTP server is running and connectivity is okay.
-----END FAILURE MAPPINGS-----
--
-----BEGIN SCRIPT "Configuration ZTP Download"-----
%EXTR_DYNAMIC_COMMANDS%
@receive 10
use configuration primary
reboot
n
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration ZTP Download"-----
Downloading.*(to switch|on.*MSM|on.*MM|on.*Node).+ done!
The selected configuration.*
-----END SUCCESS-----
-----BEGIN FAILURE MAPPINGS "Configuration ZTP Download"-----
Error: timeout=The device was unable to contact the TFTP server. Check that the TFTP server is running and connectivity is okay.
Network is unreachable=The device was unable to download the configuration. Check that the correct VR is being used.
Downloading.*to switch... failed=Restore of the configuration failed. Verify that the TFTP server is running and connectivity is okay.
-----END FAILURE MAPPINGS-----
--
-----BEGIN SCRIPT "Configuration SSH Enable"-----
enable ssh2
y
@receive 70
save config
y
@receive 10
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration SSH Download"-----
Configuration saved
The selected configuration.*
-----END SUCCESS-----
-----BEGIN FAILURE MAPPINGS "Configuration SSH Download"-----
-----END FAILURE MAPPINGS-----
--
-----BEGIN SCRIPT "Firmware Download"-----
%SET_IMAGE_PARTITION_BEFORE_INSTALL%

@# Remove any debug files from internal-memory before upgrade
rm /usr/local/tmp/*
@key y
@key %0d
@receive 5

download image %TFTP_IP% %RELATIVE_TARGET_FILE_PATH% vr "%VR_VAR%"
@key y
@COMMANDDONE 30
@key %0d
@COMMANDDONE 2
%SET_IMAGE_PARTITION_AFTER_INSTALL%
exit
@# Answer to Save Configuration?
@key y
-----END SCRIPT-----
-----BEGIN SUCCESS "Firmware Download"-----
Image installed successfully|Extracting api|Extracting apps
-----END SUCCESS-----
-----BEGIN FAILURE MAPPINGS "Firmware Download"-----
Downloading to Switchexit=The device was unable to contact the tftp server. Verify the TFTP server is running and connectivity is okay.
tftp: sendto: Network is unreachable=The device was unable to download the image. Check that the correct VR is being used.
tftp: server error: (2) cannot access file=The device cannot access the image file. Please check the permissions of the file.
is not an Extreme Networks image=The file selected to be downloaded to the device is NOT an Extreme Netowrks image. Please select an appropriate image file.
Error: File could not be unwrapped=The image file selected is corrupt and cannot be downloaded.
Error: File is not properly formatted=The image file selected is not properly formatted.
Error: Illegal filename=The image filename is illegal. Verify that the correct image file is being used.
Error: Failed to install image - version mismatch between XOS and xmod=The selected partition does not have the same firmware version as the .xmod image file.
Error: Failed to install image - Package exists, please uninstall existing package first=Package exists, please uninstall existing package first
active partitions must be the same across the stack=All devices in the stack must be using the same active partition. Correct and repeat firmware download.
-----END FAILURE MAPPINGS-----
--
-----BEGIN SCRIPT "BootPROM Download"-----
download bootrom %TFTP_IP% %RELATIVE_TARGET_FILE_PATH% vr "%VR_VAR%"
@key y
@COMMANDDONE 30
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "BootPROM Download"-----
Bootrom installed successfully
-----END SUCCESS-----
-----BEGIN FAILURE MAPPINGS "BootPROM Download"-----
-----END FAILURE MAPPINGS-----
--
-----BEGIN SCRIPT "Reset"-----
reboot
y
-----END SCRIPT-----
-----BEGIN SCRIPT "Timed Reset"-----
disable clipaging
reboot time %TIMED_RESET_ABSOLUTE_TIME%
y
show switch
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Timed Reset"-----
^Next Reboot:(?!.*None scheduled)
-----END SUCCESS-----
-----BEGIN FAILURE MAPPINGS "Timed Reset"-----
Error: Scheduled reboot time is in the past=Scheduled reboot time must be in the future.
-----END FAILURE MAPPINGS-----
--
-----BEGIN SCRIPT "Timed Reset Abort"-----
disable clipaging
reboot cancel
show switch
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Timed Reset Abort"-----
Next Reboot:\s*None scheduled
-----END SUCCESS-----
-----BEGIN USER-DEFINED VARIABLES -----
VR_VAR.Default=VR-ADX-MGMT
PUT_FILE_CMD.Default=tftp %TFTP_IP% -v "%VR_VAR%" -p -l %LOCAL_FILE_NAME% -r %REMOTE_FILE_NAME%
GET_FILE_CMD.Default=tftp %TFTP_IP% -v "%VR_VAR%" -g -l %LOCAL_FILE_NAME% -r %REMOTE_FILE_NAME%
RESTORE_PRIMARY_CMD.Default=tftp get %TFTP_IP% vr "%VR_VAR%" %RELATIVE_TARGET_FILE_PATH% primary.cfg force-overwrite
-----END USER-DEFINED VARIABLES -----

Is this a know behaver? and how can I solve this problem?

Kind regards

Rien

2 REPLIES 2

Rien_van_Maurik
New Contributor

Hello Ryan

Thank you for your replay and your lab testing

I will open a Gtac case for this

Kind regards

Rien

Ryan_Yacobucci
Extreme Employee
Hello,

I would recommend creating a GTAC ticket for this. I did some testing in the lab and I also ran into issues using a VR other than default.

Thanks
-Ryan
GTM-P2G8KFN