Differences between revisions 3 and 4
Revision 3 as of 2017-01-11 17:00:47
Size: 1261
Editor: localhost
Comment:
Revision 4 as of 2023-05-16 05:46:16
Size: 3035
Editor: merlyn
Comment:
Deletions are marked like this. Additions are marked like this.
Line 45: Line 45:

= setting BMC ip address =
ipmitool lan print

ipmitool lan set 1 ipaddr 10.82.91.118

ipmitool lan set 1 netmask 255.255.255.0

ipmitool lan set 1 defgw ipaddr 10.82.91.254

ipmitool lan print
{{{
root@pve-01:~# ipmitool lan print
Set in Progress : Set Complete
Auth Type Support : NONE MD5 PASSWORD
Auth Type Enable : Callback : MD5 PASSWORD
                        : User : MD5 PASSWORD
                        : Operator : MD5 PASSWORD
                        : Admin : MD5 PASSWORD
                        : OEM :
IP Address Source : Static Address
IP Address : 10.82.91.117
Subnet Mask : 255.255.255.0
MAC Address : b4:7a:f1:aa:2d:d0
SNMP Community String :
BMC ARP Control : ARP Responses Enabled, Gratuitous ARP Disabled
Default Gateway IP : 10.82.91.1
802.1q VLAN ID : Disabled
802.1q VLAN Priority : 0
RMCP+ Cipher Suites : 0,1,2,3
Cipher Suite Priv Max : XuuaXXXXXXXXXXX
                        : X=Cipher Suite Unused
                        : c=CALLBACK
                        : u=USER
                        : o=OPERATOR
                        : a=ADMIN
                        : O=OEM
Bad Password Threshold : Not Available

root@pve-01:~# ipmitool lan set 1 ipaddr 10.82.91.118
Setting LAN IP Address to 10.82.91.118

root@pve-01:~# ipmitool lan print | grep 'IP Address'
IP Address Source : Static Address
IP Address : 10.82.91.118

root@pve-01:~# ipmitool lan set 1 netmask 255.255.0.0
Setting LAN Subnet Mask to 255.255.0.0

root@pve-01:~# ipmitool lan set 1 defgw ipaddr 10.82.91.254
Setting LAN Default Gateway IP to 10.82.91.254

}}}

ipmitool how to

ipmitool help
man ipmitool

# To check firmware version
ipmitool mc info
# To reset the management controller
ipmitool mc reset [ warm | cold ]

# Show field-replaceable-unit details
ipmitool fru print

# Show sensor output
ipmitool sdr list
ipmitool sdr type list
ipmitool sdr type Temperature
ipmitool sdr type Fan
ipmitool sdr type 'Power Supply'

# Chassis commands
ipmitool chassis status
ipmitool chassis identify [<interval>]   # turn on front panel identify light (default 15s)
ipmitool [chassis] power soft            # initiate a soft-shutdown via acpi
ipmitool [chassis] power cycle           # issue a hard power off, wait 1s, power on
ipmitool [chassis] power off             # issue a hard power off
ipmitool [chassis] power on              # issue a hard power on
ipmitool [chassis] power reset           # issue a hard reset

# Modify boot device for next reboot
ipmitool chassis bootdev pxe
ipmitool chassis bootdev cdrom
ipmitool chassis bootdev bios

# Logging
ipmitool sel info
ipmitool sel list
ipmitool sel elist                       # extended list (see manpage)

http://www.openfusion.net/linux/ipmi_on_centos

setting BMC ip address

ipmitool lan print

ipmitool lan set 1 ipaddr 10.82.91.118

ipmitool lan set 1 netmask 255.255.255.0

ipmitool lan set 1 defgw ipaddr 10.82.91.254

ipmitool lan print

root@pve-01:~# ipmitool lan print
Set in Progress         : Set Complete
Auth Type Support       : NONE MD5 PASSWORD 
Auth Type Enable        : Callback : MD5 PASSWORD 
                        : User     : MD5 PASSWORD 
                        : Operator : MD5 PASSWORD 
                        : Admin    : MD5 PASSWORD 
                        : OEM      : 
IP Address Source       : Static Address
IP Address              : 10.82.91.117
Subnet Mask             : 255.255.255.0
MAC Address             : b4:7a:f1:aa:2d:d0
SNMP Community String   : 
BMC ARP Control         : ARP Responses Enabled, Gratuitous ARP Disabled
Default Gateway IP      : 10.82.91.1
802.1q VLAN ID          : Disabled
802.1q VLAN Priority    : 0
RMCP+ Cipher Suites     : 0,1,2,3
Cipher Suite Priv Max   : XuuaXXXXXXXXXXX
                        :     X=Cipher Suite Unused
                        :     c=CALLBACK
                        :     u=USER
                        :     o=OPERATOR
                        :     a=ADMIN
                        :     O=OEM
Bad Password Threshold  : Not Available

root@pve-01:~# ipmitool lan set 1 ipaddr 10.82.91.118
Setting LAN IP Address to 10.82.91.118

root@pve-01:~# ipmitool lan print | grep 'IP Address'
IP Address Source       : Static Address
IP Address              : 10.82.91.118

root@pve-01:~# ipmitool lan set 1 netmask 255.255.0.0
Setting LAN Subnet Mask to 255.255.0.0

root@pve-01:~# ipmitool lan set 1 defgw ipaddr 10.82.91.254
Setting LAN Default Gateway IP to 10.82.91.254

désert/Linux/IPMI (last edited 2023-05-16 06:11:03 by merlyn)