cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

XMC TCL scripting, how to wait xx minutes between CLI commands?

XMC TCL scripting, how to wait xx minutes between CLI commands?

Rahman_Duran
Contributor II
Hi,

As our Palo Alto firewall device has no scheduled update feature, I want to use XMC scripting for this purpose.

# request system software install version
# request restart system

These are the commands. So how can I tell XMC TCL engine to wait 30 minutes between these two commands?

Regards,
Rahman
23 REPLIES 23

Hello Stephan,

It seems the link in GTAC KB is protected. I can not download it.

Regards,

Rahman

StephanH
Valued Contributor III
Hello Rahman,

have a look to these article:

https://gtacknowledge.extremenetworks.com/articles/Solution/Running-an-XMC-Script-on-8-1-4-40-takes-...

Look's like your error message.

Best regards
Stephan

Regards Stephan

No luck:

EMC User: rduran
EMC User Domain: artvin.edu.tr
CLI Login: admin
ACU-PA-3050-1 10.100.2.100 10/05/2018 02:43:22 PM at 02:43:22 PM
Error: session exceeded timeout: 30 secs
ACU-PA-3050-1 #sleep 10
Error: session exceeded timeout: 30 secs
Error: session exceeded timeout: 30 secs

What I mean is, after XMC scripting engine login to device, will it show all command outputs in "Results" section of "XMC script run" page? Because when I login via putty, I see two information lines:

Using username "admin".
Using keyboard-interactive authentication.
Password:
Last login: Fri Oct 5 14:43:24 2018 from 192.168.10.199

Number of failed attempts since last successful login: 0

admin@ACU-PA-3050-1>

But I don't see this in "results" section of XMC.

My idea was to try something like this:

CLI request system software install version $version
sleep 3

CLI y
sleep 45

CLI show system info

Kurt, I will try what you suggest but, shouldn't I see the all CLI output, "Yes/no" question?
GTM-P2G8KFN