Quantcast
Channel: THWACK: Message List - Network Configuration Manager
Viewing all articles
Browse latest Browse all 8827

Script to Change user+pass in Cisco Switch applies, but doesn't work.

$
0
0

Hello All.

 

Running into an odd issue here.

 

Trying to apply the below script to a 3750X cisco switch.  It executes and applies fine, but I am unable to get access to the switch using the created user and pass.

 

Any ideas on what I am doing wrong?

 

Thanks in advance.

 

-Allan

------------------------------------------------------------------------

 

script ChangeEnablePasswordCiscoIOS (

                                           NCM.Nodes @ContextNode,

                                           string @EnablePassword,

                                           string @AdminUsername  )

{

  CLI

  {

    configure terminal

    enable secret 0 @EnablePassword

    username @AdminUsername privilege 15 password 0 @EnablePassword

    no username admin

    exit

  }

}


Viewing all articles
Browse latest Browse all 8827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>