Saturday, January 11, 2020

How to recover the root password from maintenance mode in aix?

How to recover the root password from maintenance mode in aix?



On the NIM server
=================

lsnim -1 <target_lpar_name>    (If the machine not defined, then defined it using smitty nim)
lsnim -1 <target_lpar_name>    (check “Cstate= ready for a NIM operation”)
smitty nim_mac_op           (Select Client/Spot and enable a machine to boot in maintenance mode)
lsnlm -1 <target_lpar_name>    (Check cstate - maintenance boot has been enabled)
cat /etc/bootptab

On the HMC
===========

chsysstate -m <frame_name> -r ipar -n <targe-t_lpar_name> —o shutdown --immed
chsysstate -r ipar -m <frame_name> -o on -f Normal -b sms -n <target_lpar_name>

vtmenu
select the target lpar to get into the console

2. Setup Remote IPI. (Initial Program load)
Choose the proper Interpartition Logical LAN
1. 1Pv4 Address Format
1. BOOTP
1. IP Parameters

Fill it up the below 
1. Client IP Address/Server IP Address/Gateway IP Address/Subnet Mask

Once done ESC key — return to previous screen
3. Ping Test
1. Execute Ping Test

once ping test successful, Press any key to continue
Press M = return to Main Menu
5. Select Boot Options
1. Select Install/Boot Device
6. Network
1. Bootp

Now select Interpartition logical LAN
2. Normal Mode Boot
1 Yes

You will see Elapsed time since release of system processors and welcome to aix board
Type a 1 and press Enter to use this terminal as the system console. (>>> Choice [1): enter)

>>> I Access a Root Volume Group ( >>> Choice [1): Enter)
0 Continue
Now select the root volume group disk (Now you could see the volume group info)
1) Accss this Volume Group and start a sheji

now you will get the promt (#)

passwd root
changing password for “root”
root's New password:
Re-enter roots new password: -
# sync;sync;sync;reboot