noobfluid.blogg.se

Hp ilo 4 sample scripts
Hp ilo 4 sample scripts










hp ilo 4 sample scripts
  1. Hp ilo 4 sample scripts how to#
  2. Hp ilo 4 sample scripts serial number#
  3. Hp ilo 4 sample scripts install#
  4. Hp ilo 4 sample scripts serial#
  5. Hp ilo 4 sample scripts password#

Now you know how to use the commands to configure the basic stuff in your iLO controller manually. Setaccess Īutomatically configure HP iLO using bash The importance of the various privilege numbers will be displayed when ipmitool channel is called without any additional parameters: ~]# ipmitool channel

Hp ilo 4 sample scripts password#

Password for user ~]# ipmitool channel setaccess 1 3 link=on ipmi=on callin=on ~]# ipmitool user enable 3 A user named “monitor” will be created for this in the following example: ~]# ipmitool user set name 3 ~]# ipmitool user set password 3 This user can not do any changes to the server through iLO. If a user should only be used for querying sensor data, for example a user for Nagios, Zabbix or other monitoring software, a custom privilege level can be setup for that. Password for user ~]# ipmitool channel setaccess 1 2 link=on ipmi=on callin=on ~]# ipmitool user enable 2 ~]# ipmitool user set name 2 ~]# ipmitool user set password 2 so the second user you create will have ID 3, and the third, ID 4. In case your create multiple users, you have to increment the number “2” with +1 every time. Replace “admin” with the username you want.

hp ilo 4 sample scripts

This user will be able to do everything in iLO. To create a user with same rights as the “Administrator” user, use the following. By default there is only the “Administrator” user with a password located on a sticker or elsewhere physically on the server. ~]# ipmitool lan set 1 ipsrc ~]# ipmitool lan set 1 ipaddr ~]# ipmitool lan set 1 netmask ~]# ipmitool lan set 1 defgw ipaddr 192.168.1.1Ĭonfiguring users might also come in handy. Replace the IP, subnet mask and default gateway with what you need it to be. Without logging into the web interface, you can still set a static IP address to the HP iLO interface using the below commands. Remember these two commands will not reboot the OS running on the server, only iLOįor a cold reset (forcefully, in case iLO is not responding in any way including echo requests/ping) use the following:įor a warm reset (in case iLO IS responding) use the following: ipmitool mc reset warm Configure network to static ip on the HP iLO port This way your server stays online, while doing it. Nobody wants that on a production server! You can initialize a restart of ILO only by running the below command. But you don’t want to restart the entire server because your have to unplug the power to restart iLO. If you have any problems connecting to the HP ILO controller, you might need to restart it. ipmitool lan printĮxample output: Set in Progress : Set CompleteīMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled Maybe you just want to find the DHCP address of the HP iLO controller? you can do this easily, without having to scan the entire network. Get network settings configured on the HP iLO port

Hp ilo 4 sample scripts serial#

Sample output: Chassis Serial : CZAAAAAAAA This is an easy and quick way to find it, without even logging into iLO.

Hp ilo 4 sample scripts serial number#

Getting the serialnumber might be useful, in case you need to log it to a inventory database, or just need the serial number for a warranty call. Once you got those installed, you can move on and configure or fetch info from iLO through the guest Linux

Hp ilo 4 sample scripts install#

These packages can be installed through your favorite package manager, below you’ll see the defaults in Debian and CentOS/RHELĭebian: apt-get install OpenIPMI OpenIPMI-libs OpenIPMI-toolsĬentOS/RHEL: yum install OpenIPMI OpenIPMI-libs OpenIPMI-tools Needed packages: OpenIPMI OpenIPMI-libs OpenIPMI-tools The script for configuring iLO automatically will be included at the end of this post I already posted how to scan for all HP ILO devices in your subnet, but the basics in the following post on how to configure iLO from your guest Linux OS might make everything a little easier for the sysadmins out there How to configure HP iLO in Linuxįirst I will show you the useful commands and an example output for each, and then how to automate the configuration of your HP iLO interface using bash scripting If only there was some way to automate it without having to use HP’s software. I have to first find the iLO ip, then login to the web interface, create users, set static IP and what not. Installation almost runs automatically, except for iLO configuration. Someone has to keep track of all those servers and be able to configure them using iLO in case of a disaster We only use HP servers and we get more and more every week.












Hp ilo 4 sample scripts