Created
May 9, 2024 02:19
-
-
Save libcrack/202c430d24bb77f8b65d8f4d2e94f6a4 to your computer and use it in GitHub Desktop.
Example commands to manage an HPE server iLO via IPMI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# devnull@libcrack.so | |
# Thu May 9 04:04:44 CEST 2024 | |
# | |
# —————————————————————————————————————————————————————————————————————————————————————————————— | |
# | |
# $ ipmitool -H 10.10.10.10 -I lanplus -U admin | |
# Password: | |
# Unable to Get Channel Cipher Suites | |
# No command provided! | |
# Commands: | |
# raw Send a RAW IPMI request and print response | |
# i2c Send an I2C Master Write-Read command and print response | |
# spd Print SPD info from remote I2C device | |
# lan Configure LAN Channels | |
# chassis Get chassis status and set power state | |
# power Shortcut to chassis power commands | |
# event Send pre-defined events to MC | |
# mc Management Controller status and global enables | |
# sdr Print Sensor Data Repository entries and readings | |
# sensor Print detailed sensor information | |
# fru Print built-in FRU and scan SDR for FRU locators | |
# gendev Read/Write Device associated with Generic Device locators sdr | |
# sel Print System Event Log (SEL) | |
# pef Configure Platform Event Filtering (PEF) | |
# sol Configure and connect IPMIv2.0 Serial-over-LAN | |
# tsol Configure and connect with Tyan IPMIv1.5 Serial-over-LAN | |
# isol Configure IPMIv1.5 Serial-over-LAN | |
# user Configure Management Controller users | |
# channel Configure Management Controller channels | |
# session Print session information | |
# dcmi Data Center Management Interface | |
# nm Node Manager Interface | |
# sunoem OEM Commands for Sun servers | |
# kontronoem OEM Commands for Kontron devices | |
# picmg Run a PICMG/ATCA extended cmd | |
# fwum Update IPMC using Kontron OEM Firmware Update Manager | |
# firewall Configure Firmware Firewall | |
# delloem OEM Commands for Dell systems | |
# exec Run list of commands from file | |
# set Set runtime variable for shell and exec | |
# hpm Update HPM components using PICMG HPM.1 file | |
# ekanalyzer run FRU-Ekeying analyzer using FRU files | |
# ime Update Intel Manageability Engine Firmware | |
# vita Run a VITA 46.11 extended cmd | |
# lan6 Configure IPv6 LAN Channels | |
# —————————————————————————————————————————————————————————————————————————————————————————————— | |
# | |
# Interesting ipmitool subcommands: | |
# sensor Print detailed sensor information | |
# sel Print System Event Log (SEL) | |
# session Print session information | |
# | |
# —————————————————————————————————————————————————————————————————————————————————————————————— | |
user='admin' | |
host='10.10.10.10' | |
echo ipmitool -H ${host} -I lanplus -U ${user} power on | |
echo ipmitool -H ${host} -I lanplus -U ${user} sensor | |
# $ ipmitool -H 10.10.10.10 -I lanplus -U admin sensor | |
# Password: | |
# Unable to Get Channel Cipher Suites | |
# UID Light | na | discrete | na | na | na | na | na | na | na | |
# Health LED | na | discrete | na | na | na | na | na | na | na | |
# 01-Inlet Ambient | na | degrees C | na | na | na | na | na | 42.000 | 46.000 | |
# 02-CPU | na | degrees C | na | na | na | na | na | 70.000 | na | |
# 03-P1 DIMM 1-2 | na | degrees C | na | na | na | na | na | 87.000 | na | |
# 04-HD Max | na | | na | na | na | na | na | 60.000 | na | |
# 05-Chipset | na | degrees C | na | na | na | na | na | 105.000 | na | |
# 06-Chipset Zone | na | degrees C | na | na | na | na | na | 68.000 | 73.000 | |
# 07-VR P1 Zone | na | degrees C | na | na | na | na | na | 88.000 | 93.000 | |
# 08-Supercap Max | na | | na | na | na | na | na | 65.000 | na | |
# 09-iLO Zone | na | degrees C | na | na | na | na | na | 72.000 | 77.000 | |
# 10-PCI 1 | na | | na | na | na | na | na | 100.000 | na | |
# 11-PCI 1 Zone | na | degrees C | na | na | na | na | na | 64.000 | 69.000 | |
# 12-Sys Exhaust | na | degrees C | na | na | na | na | na | 68.000 | 73.000 | |
# 13-LOM | na | | na | na | na | na | na | 100.000 | na | |
# Fan 1 | na | discrete | na | na | na | na | na | na | na | |
# Power Supply 1 | na | discrete | na | na | na | na | na | na | na | |
# Memory | na | discrete | na | na | na | na | na | na | na | |
echo ipmitool -H ${host} -I lanplus -U ${user} sel | |
# $ ipmitool -H 10.10.10.10 -I lanplus -U admin sel | |
# Password: | |
# Unable to Get Channel Cipher Suites | |
# SEL Information | |
# Version : 1.5 (v1.5, v2 compliant) | |
# Entries : 64 | |
# Free Space : 0 bytes | |
# Percent Used : 100% | |
# Last Add Time : 05/03/2024 15:17:42 CEST | |
# Last Del Time : 05/03/2024 15:17:42 CEST | |
# Overflow : false | |
# Supported Cmds : 'Reserve' | |
echo ipmitool -H ${host} -I lanplus -U ${user} session info active \# all | |
# $ ipmitool -H 10.10.10.10 -I lanplus -U admin session info active # all | |
# Password: | |
# Unable to Get Channel Cipher Suites | |
# session handle : 16 | |
# slot count : 16 | |
# active sessions : 1 | |
# user id : 1 | |
# privilege level : ADMINISTRATOR | |
# session type : IPMIv2/RMCP+ | |
# channel number : 0x02 | |
# console ip : 10.10.10.11 | |
# console mac : 00:00:00:00:00:00 | |
# console port : 54219 | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment