cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
16106
Views
15
Helpful
6
Replies

shell password Cisco prime Infrastructure

oraz
Cisco Employee
Cisco Employee

Hi,

After logging in as admin to PI, we can switch to shell and then we are requested to give password.

Can we change this password? How?

Thanks,

Ori

6 Replies 6

agapitca19
Level 1
Level 1

Hi,

Try this command

user admin password plain [password]

HTH.

***Please rate and mark the comment correct if you found it helpful. Thanks***

Hi,

I tried this command under ncs (admin), under shell and under root... in all 3 this command doesnt exist...

Thanks,

Ori

Hi,

ssh to PI server and try it again.

PRIME1/admin(config)# user admin password plain ?
<WORD> Password (Max Size - 40)

renjithg
Cisco Employee
Cisco Employee

Hi Oraz,

shell and admin are interface to two section. admin used to login to ade where you can perform limited prime cli commands like backup, restore, stop/start ncs, ha activation etc.

shell is used to login to linux kernel to diagnose and troubleshoot application issues.

shell command introdcue in PI 3.1 code.

PI31/admin# shell
Enter shell access password :
Starting bash shell ...

ade #exit

admin#PI31/admin# shell disable
Enter shell access password :


shell access is disabled
To enable shell:


PI31/admin# shell

Shell access password is not set
Configure password for shell access

Password :
Password Again :

Shell access password is set
Run the command again to enter shell

if you forget shell password, then need to use Linux root recoevery method to recover the shell password.

Please find the following procedure to recover the root shell password:

1- Boot off of a CentOS/RedHat 5 or 6 install CD or DVD.

Use any of the following ISO images:

CentOS-5.10-x86_64-bin-DVD-1of2.iso
CentOS-5.11-x86_64-bin-DVD-1of2.iso
CentOS-6.6-x86_64-bin-DVD1.iso

2- Once booted, type "linux rescue" on prompt and hit ENTER key

3- Chose default options for language/keyboard and don't choose network option

4- You will see a message as below:
The rescue environment will now attempt to find your Linux installation and mount it under the directory /mnt/sysimage. You can then make any changes required to your system. If you want to proceed with this step choose 'Continue'. You can also choose to mount your file systems read-only instead of read-write by choosing 'Read-only'. If for some reason this process fails you can choose 'Skip' and this step will be skipped and you will go directly to a command shell.

Choose "Continue" in this screen

5- Once an existing installation is found, it will be mounted to "/mnt/sysimage" location and you will be dropped to command prompt.

6- Change root to the PI install location by using following command:

# chroot /mnt/sysimage

7- Move /storeddata/rootpatchpw

#mv /storedconfig/rootpatchpw /root/


8- Now type "exit" and hit ENTER key

9- Type "reboot" and boot into PI

Please rate my answer which encourage for more activation :)

Thanks for update.

 

It is helpful.

I found a way around it without disabling shell. all you need to do is change the password after you successfully login to shell. 

 

admin#PI31/admin# shell 
Enter shell access password :

(Enter previous password)

 

ade # passwd

 

Changing password for user admin.
Changing password for admin.

(current) password:

(New) password: {set up a password you will always remember}