EtherNation ExtremeNetworks

Signup   |  Login
 
EtherNation ForumsEtherNation ForumsDiscussionsDiscussionsWidget Garage Widget Garage Commit Script for those who may need to rollback Commit Script for those who may need to rollback
Previous Previous
 
Next Next
New Post
 7/29/2010 7:27 AM
 

Script Name
*****************************
commit

Files
*****************************
commit.xsf

Infrastructure Requirements
*******************************
ExtremeXOS 12.4+

Description
*****************************
This script executes a backout command in the event
your commit command fails or you were to lose your
telnet/ssh session.

Example
****************************
---You must enclose the next two commands in double quotes---

Enter Backout Command e.g. "disable port 1:1"
"disable port 25"

Enter Commit Command e.g. "enable port 1:1" [THIS WILL EXECUTE]
"enable port 25"

enable port 25 has been executed
A delay of 10000 miliseconds has been started
A delay of 10000 miliseconds has been stopped
Do you want to commit? y/N e.g. "y"
n
disable port 25 has been executed because a commit of y was not set

Notes
*******************************
- A delay variable is used to allow the commit command to finish. Set
this delay preference in miliseconds
- The idletimeout variable is used in the event the commit command terminates
your session. Set this idletimeout variable preference in seconds
- This script dynamically creates a failsafe upm profile. This profile is used
only in the event you were to lose your session with the switch
- The failsafe upm profile is only triggered from failsafe log filter. This
log filter is unique to your session IP address.

Change Log and Credits
******************************
Credits: jpadilla@extremenetworks.com
Any issues please report the bug in the ExtremeXOS Forum.
http://www.ethernation.net

Change Log:
1.0 - 2010, July 21st
* First Revision

Be Extreme,
The Extreme Extensibility Team

 Login to download attachment
New Post
 7/29/2010 7:36 AM
 

To run this script type the following at the command prompt:

Slot-1 Stack.1 # load script commit

Previous Previous
 
Next Next
EtherNation ForumsEtherNation ForumsDiscussionsDiscussionsWidget Garage Widget Garage Commit Script for those who may need to rollback Commit Script for those who may need to rollback