Schedule a script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎01-07-2014 09:57 PM
Create Date: Nov 26 2012 9:33PM
Is there a way I can schedule a script to disable some ports in the night and re-enable them again. I want to reboot a POE device every night.
di inline-power port X
en inline-power port X
This should do it but I am trying to figure out if we can schedule the scripts without using Ridgeline? (from Arpit_Bhatt)
Is there a way I can schedule a script to disable some ports in the night and re-enable them again. I want to reboot a POE device every night.
di inline-power port X
en inline-power port X
This should do it but I am trying to figure out if we can schedule the scripts without using Ridgeline? (from Arpit_Bhatt)
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎01-07-2014 09:57 PM
Create Date: Nov 27 2012 10:51PM
That makes sense. Thanks for the information.
Any idea when you would use UPM scripts over .xsf scripts?
1) If there is no Ridgeline.
Any other scenarios?
In this case I am using Ridgeline and have a script task schedule for port enable/disable. (from Arpit_Bhatt)
That makes sense. Thanks for the information.
Any idea when you would use UPM scripts over .xsf scripts?
1) If there is no Ridgeline.
Any other scenarios?
In this case I am using Ridgeline and have a script task schedule for port enable/disable. (from Arpit_Bhatt)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
‎01-07-2014 09:57 PM
Create Date: Nov 27 2012 10:22PM
Hey Arbhatt
Yes you can do this using two UPM Profiles. UPM profiles are scripts that are dynamic. Here's how to do this for the disable power part you would do the same for enable inline power
Create upm profile power_off
disable inline power port X
.
Note that the "." has to be the by itself in the last line
Once the profile is built you create and add a timer
Create upm timer power_off_Timer
config upm timer "power_off_timer" at 11 27 2012 20 00 00 every 86400 (this timer would kick off at 8:00 pm and execute every day. Time is in seconds)
This attaches the timer to the profile
config upm timer "power_off_timer" profile "power_off"
You would do the same thing for the power on just pick a new time.
Hope that helps
P (from Paul_Russo)
Hey Arbhatt
Yes you can do this using two UPM Profiles. UPM profiles are scripts that are dynamic. Here's how to do this for the disable power part you would do the same for enable inline power
Create upm profile power_off
disable inline power port X
.
Note that the "." has to be the by itself in the last line
Once the profile is built you create and add a timer
Create upm timer power_off_Timer
config upm timer "power_off_timer" at 11 27 2012 20 00 00 every 86400 (this timer would kick off at 8:00 pm and execute every day. Time is in seconds)
This attaches the timer to the profile
config upm timer "power_off_timer" profile "power_off"
You would do the same thing for the power on just pick a new time.
Hope that helps
P (from Paul_Russo)
