11-02-2018 11:56 AM
Hi,
Need help in creating a template for setting up switch priority for a switch stack. See command below:
switch 1 priority 1
switch 2 priority 2
switch 3 priority 3
switch 4 priority 4
switch 5 priority 5
I created a CLI (User Defined template) using the above commands with spaces in between but when being deployed it is failing and looks like there's no space. Need a space in between because it is asking to confirm.
Thank you.
Solved! Go to Solution.
11-02-2018 01:42 PM
I was able to figure out how to do it. I tested the script I did below and it worked.
------------------------------
#INTERACTIVE
switch 1 priority 1<IQ>confirm<R>
#ENDS_INTERACTIVE
#INTERACTIVE
switch 2 priority 2<IQ>confirm<R>
#ENDS_INTERACTIVE
#INTERACTIVE
switch 3 priority 3<IQ>confirm<R>
#ENDS_INTERACTIVE
#INTERACTIVE
switch 4 priority 4<IQ>confirm<R>
#ENDS_INTERACTIVE
#INTERACTIVE
switch 5 priority 5<IQ>confirm<R>
#ENDS_INTERACTIVE
end
!
!
wr
!
!
11-02-2018 01:42 PM
I was able to figure out how to do it. I tested the script I did below and it worked.
------------------------------
#INTERACTIVE
switch 1 priority 1<IQ>confirm<R>
#ENDS_INTERACTIVE
#INTERACTIVE
switch 2 priority 2<IQ>confirm<R>
#ENDS_INTERACTIVE
#INTERACTIVE
switch 3 priority 3<IQ>confirm<R>
#ENDS_INTERACTIVE
#INTERACTIVE
switch 4 priority 4<IQ>confirm<R>
#ENDS_INTERACTIVE
#INTERACTIVE
switch 5 priority 5<IQ>confirm<R>
#ENDS_INTERACTIVE
end
!
!
wr
!
!
11-02-2018 03:02 PM
Hope you aware higher priority will be elected as master.
11-02-2018 03:08 PM
I am. That's the reason why I am changing the priorities what the previous admin did and pushing to hundreds of devices that's why I need to have a script working.
Not only who is the master, standby master but also where the uplink is connected. Changing the priority to have the less impact.
11-02-2018 03:29 PM
ok just want to heads up that...generally sw1 we do high priory in general practice so checking are you doing right direction.
11-02-2018 10:35 PM
Yes, I have this problem too
Thanks
11-03-2018 03:44 AM
what problem ?, suggest to open a new ticket with more information it easy to address each individual problem rather complicating the problem.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: