How to add admin user in HP server ILO version 3/4/5 via CentOS

How to add admin user in HP server ILO version 3/4/5 via CentOS

How to add admin user in HP server ILO version 3/4/5 via CentOS


:: Firstly you need to access server using root login credentials, then first you have to check the system is up to date or not.


# yum install update



:: After successfully installing of update check using below command HP ILO linux package install in system or not.


# rpm -qf /sbin/hponcfg 



:: As required packages are not installed in the system, then need to install required packages.















:: HP official website for package installation : 

https://support.hpe.com/hpesc/public/swd/detail?swItemId=MTX_640d4499d8c64ee79f546d439f#tab3




Note : Kindly read the  below point before installing the rpm package and execute the installation work.




:: If you install the wrong package and execute the further command, it’s may lead to ILO service  interruption .

:: As I have to install a package on linux version 7 then I downloaded the package from the website below.


https://repology.org/project/hponcfg/information

:: Download the latest version of ILO linux hponcfg rpm package


:: We have downloaded the latest version of hponcfg rpm on the server using below command.


# rpm -Uvh https://downloads.linux.hpe.com/SDR/repo/spp/RHEL/7/x86_64/current/hponcfg-5.6.0-0.x86_64.rpm




:: Check hponcfg latest version install or not using below command


# rpm -qf /sbin/hponcfg

hponcfg-5.6.0-0.x86_64













:: Now move to cd /var/tmp & use below command to executable file


[root@localhost tmp]# vi add_user.xml

[root@localhost tmp]# cat add_user.xml


<!-- Add user with minimal privileges to test default setting of

assigned privileges to 'N' -->

<RIBCL version="1.2">

<LOGIN USER_LOGIN="superuser" PASSWORD="Micro@test1">

<USER_INFO MODE="write">

<ADD_USER USER_NAME="superuser" USER_LOGIN="superuser"

PASSWORD="Micro@test1">

<RESET_SERVER_PRIV value="Y" />

<ADMIN_PRIV value="Y" />

</ADD_USER>

</USER_INFO>

</LOGIN>

</RIBCL>




:: Now we all are set to deploy a new admin user in the server ILO profile to do the work.


[root@localhost tmp]# hponcfg -f add_user.xml -l log.txt




:: Our Script is successful, now we are able to use the new user ID password to access the server ILO web interface.


:: Now it turns to check that actually our script is working or not via login into server ILO


:: We are getting the overview page below after login, after that we need to go and check into the Administration column to verify the new user added or not..

 








:: In the Administration tab you need to select User Administration



:: It will take some time upto 2 min to load the Local User page under User Administration tab, so don’t worry.



:: Here we can see a new user is added with just 2 permissions, now we have to edit it and give the whole permission to make them like Administrator.



:: Now in User Permissions, click on all needed permissions to grant a new user to access the ILO.


:: You can see that new user (superuser) have all permissions to access the ILO




Thank You...


    • Related Articles

    • ​How to reset ILO Password using CentOS

      How to reset ILO Password using CentOS :: Firstly you need to access server using root login credentials, then first you have to check the system is up to date or not. # yum install update :: After successfully installing of update check using below ...