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

@SH, yes I set it 3600 secs.

maybe the script executes the required "y" too fast? can you have it sleep 3 seconds between your two CLI commands (just before you execute CLI y)... just a wild guess..

StephanH
Valued Contributor III
Hello Rahman,

is this timer long enough?

cc4c3d1330454f11b7abc6254637f434_RackMultipart20181005-104303-70o4l7-image_inline.png


Regards Stephan

No it runs instantly. First command ask for "Yes/No". After I press "y" it just prints the PANOS job id and returns to console immediately.

How long does it take to execute this command when you try to do it manually? Longer than 30 seconds?
GTM-P2G8KFN