cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1868
Views
0
Helpful
4
Replies

Using Prime template to modify local usernames to device

bberry
Level 1
Level 1

Has any one used Prime and a template to delete or modify local user names on a Cisco device? We have a user that has left the company and need to remove their local login from our 200+ devices in prime. It seems some of our devices simply can take the no username {user} wihout issue and some seem to need a "confirmation" as part of the delete. I currently have a two line template running with the no username command followed by a "y: on the second line to see if that will work across the board. It seems I am having more failures that success but will need to go look as specific samples to see why. Just wondering if there was something better. 

 

Thanks...

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

You need to look the template , are you looking to remove the users and adding new users ?

 

i will do small script out of the Box, not to use Prime (personally)

 

you can look the template :

 

https://www.cisco.com/c/en/us/td/docs/net_mgmt/prime/infrastructure/3-8/user/guide/bk_CiscoPrimeInfrastructure_3_8_0_UserGuide/create_templates_to_automate_device_configuration_changes.html#concept_4F23FBC68BEE409DB8FB646B82B1FCD5

 

 

BB

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

How to Ask The Cisco Community for Help

At the moment I am looking to remove users. I have no problems creating and deploying a template I am just trying to figure what needs to be in there for the deployment to succeed. I am seeing the following in the job log and do have y as the second line of the template thinking that would be the input for the question. Do I need something more or different?



Error : Connnection timed out while executing the command Current output : no username fred
This operation will remove all username related configurations with same name.Do you want to continue? [confirm]
Current expects : (Wynne_Sale.{0,30}|Wynne_Sales)([^)]+)#s*z
Wynne_Sales#s*z
[y/n]
ACCEPT? (yes/[no]):


bberry
Level 1
Level 1

Circling back to see if anyone has s solution as this has come up again. The older versions of IOS can be addressed with the template as they do not ask for verification but not so with the new versions. Just trying to not have to walk the network and manually clean up so many. 

Hello,

I cannot test this, so I do not know if this works, but check the last post from 'ilyas mohammed' in the thread linked below:

https://community.cisco.com/t5/network-management/problem-when-using-a-template-for-deleting-users-with-cisco/td-p/3343584

Review Cisco Networking for a $25 gift card