XMC TCL scripting, how to wait xx minutes between CLI commands?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-03-2018 09:07 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-05-2018 09:07 AM
Hello Stephan,
It seems the link in GTAC KB is protected. I can not download it.
Regards,
Rahman
It seems the link in GTAC KB is protected. I can not download it.
Regards,
Rahman
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-05-2018 09:07 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-05-2018 09:07 AM
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.
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-05-2018 09:07 AM
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
CLI request system software install version $version
sleep 3
CLI y
sleep 45
CLI show system info
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎10-05-2018 09:07 AM
Kurt, I will try what you suggest but, shouldn't I see the all CLI output, "Yes/no" question?
