cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1409
Views
0
Helpful
6
Replies

Cisco Prime Infrastructure - CLI Templates

superego
Level 1
Level 1

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.

 

1 Accepted Solution

Accepted Solutions

superego
Level 1
Level 1

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

!
!

View solution in original post

6 Replies 6

superego
Level 1
Level 1

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

!
!

balaji.bandi
Hall of Fame
Hall of Fame

Hope you aware higher priority will be elected as master.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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.

ok just want to heads up that...generally sw1 we do high priory in general practice so checking are you doing right direction.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

boimdijogja
Level 1
Level 1

Yes, I have this problem too

Thanks

what problem ?, suggest to open a new ticket with more information it easy to address each individual problem rather complicating the problem.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Getting Started

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: