10-29-2020 07:40 AM
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
10-29-2020 08:41 AM
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