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
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

Kurt_Semba
Extreme Employee
The error "session exceeded timeout: 30 secs" might indicate that the script engine expects some "regular" activity on your SSH session. So if you sleep for 45 seconds, there is no activity and the engine thinks that something is wrong and breaks processing (my interpretation ļ˜‰ ).

One idea: try to leep for 20 seconds, execute some CLI command (show system info), sleep another 25 seconds and then continue with your commands.

Hello Ryan,

I loaded the file but it did not solve the issue. Our new support contract is on the way. When it is active I will open a bunch of cases with GTAC.

Hello Ryan,

I loaded the file but it did not solve the issue. Our new support contract is on the way. When it is active I will open a bunch of cases with GTAC.

StephanH
Valued Contributor III
Hello Ryan,

links works fine.
Regards Stephan
GTM-P2G8KFN