Wired Intelligent Edge

 View Only
Expand all | Collapse all

how to set manager password with a cli script ?

This thread has been viewed 4 times
  • 1.  how to set manager password with a cli script ?

    Posted Nov 12, 2019 05:08 AM

    Hi there

     

    We are deploying stacks of 2930M with version 16.07.00003

     

    We are encountering issue to automate deployment with HPE iMC.

     

    one of these issue is to set the "enable" password with the commande "password manager"

    the only way i can find in customer's situation is :

    password manager
    New password: *******
    Please retype new password: *******

    this command don't allow to send a hash of the password, as we can do with this command:

     

    aaa authentication local-user "admin" group "Level-15" password sha1 "<here hash of the password>"

    i'm not sure to fully understand the use of "encrypt-credentials" commands. it seams to enable th use of passwords in config file but it's not ou goal.

     

    We would like to use scripting and no clear text password.

     

    Is there a way to acomplish this ?

     

    Best regards

     

     



  • 2.  RE: how to set manager password with a cli script ?

    Posted Nov 12, 2019 05:53 PM

    Hi,

     

    if you use

    password manager user admin password plaintext mysecurepassword