cancel
Showing results for 
Search instead for 
Did you mean: 

Third party device Update with XMC

Third party device Update with XMC

StephanH
Valued Contributor III

Hello,

can I have more than one success regex in a third party device update script?

Here is a example script from the docu.

--- Use these scripts to manage Cisco devices
name="Cisco Systems - TFTP"
desc="Cisco Systems SSH/TFTP Scripts"
separator=Windows_File_Separator
timed_reset_delay_format="HH:mm:ss:SS"
-----BEGIN SCRIPT "Configuration Upload"-----
enable
%ENABLEPSWD%
copy running-config tftp:
%TFTP_IP%
%RELATIVE_TARGET_FILE_PATH%
@receive 20
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration Upload"-----
bytes copied
-----END SUCCESS-----

 

XMC looks for the regex “bytes copied” (in blue) to decide if the process was successful. Can I have a additional line with another regex?

Like:

-----BEGIN SUCCESS "Configuration Upload"-----
bytes copied

image installed
-----END SUCCESS-----

 

What happens if I have two lines is XMC looking for line one AND line two. Or is XMC looking for  line one OR line two?

 

 

Regards

Stephan

 

 

Regards Stephan
1 REPLY 1

Miguel-Angel_RO
Valued Contributor II

Stephan,

 

Here a sample from the “VDX - SCP” (I dont’t use it) :

-----BEGIN FAILURE MAPPINGS "Reset"-----

.*[Ee]rror.*|.*[Ii]nvalid.*|.*[Ff]ail.*

-----END FAILURE MAPPINGS-----

Can you try with the pipe?

Mig

GTM-P2G8KFN