BMC CLI Interface Overview
更新时间: 2026/07/28
在Gitcode上查看源码

Revision History

VersionDateDescription
1.02026/07/28Initial release.

Overview

BMC CLI (Command Line Interface) provides a set of commands for system management and query operations after logging into the BMC via SSH or serial console. Command details are auto-generated from rackmount/interface_config/cli. The sections below list all commands grouped by function.

Active-Standby

Command FormatCommand Function
ipmcget -d redundancyGet redundancy states
ipmcset -d failoverExecute active_standby failover

Certificate

Command FormatCommand Function
ipmcget -t certificate -d infoGet server certificate information
ipmcset -t certificate -d importimport certificate

Configuration

Command FormatCommand Function
ipmcget -t config -d exportexport configuration
ipmcget -t config -d importresultget imported bundle validation result
ipmcset -t config -d importimport configuration

CRL

Command FormatCommand Function
ipmcset -d crlimport CRL file

Manufacturing Test

Command FormatCommand Function
ipmcget -t maintenance -d boardlogGet board log
ipmcset -t maintenance -d accycleaccycle

Environment Variables

Command FormatCommand Function
ipmcget -t envvar -d hostgmacGet host GMAC address
ipmcset -t envvar -d hostgmacSet host GMAC address

FRU

Command FormatCommand Function
ipmcget -d fruinfoGet fru information
ipmcget -d healthGet health status
ipmcget -d healtheventsGet fru0 health events
ipmcget -d healtheventsGet health events
ipmcget -d powerstateGet fru0 power state
ipmcget -d powerstateGet power state
ipmcget -d shutdowntimeoutGet graceful shutdown timeout state and value
ipmcget -t fru0 -d healthGet fru0 health status
ipmcget -t fru0 -d shutdowntimeoutGet graceful shutdown timeout state and value
ipmcset -d frucontrolControl fru0
ipmcset -d frucontrolFru control
ipmcset -d powerstateSet fru0 power state
ipmcset -d powerstateSet power state
ipmcset -d selClear SEL
ipmcset -d selClear SEL
ipmcset -d shutdowntimeoutSet graceful shutdown timeout state and value
ipmcset -t fru0 -d shutdowntimeoutSet graceful shutdown timeout state and value

IPMI

Command FormatCommand Function
ipmcset -d ipmirawSend ipmi command and get response
ipmcset -t ipmb -d ipmirawSend ipmi command and get response

LLDP

Command FormatCommand Function
ipmcset -t lldp -d statusSet LLDP enable status

LAN Switch

Command FormatCommand Function
ipmcget -t lsw -d configinfoGet lsw net config state
ipmcset -t lsw -d resetReset LAN Switch

Maintenance & Diagnostics

Command FormatCommand Function
ipmcget -d blackboxGet black box data
ipmcget -d diaginfoGet diagnostic info of management subsystem
ipmcget -d operatelogPrint operation log
ipmcget -d selPrint System Event Log (SEL)
ipmcget -t maintenance -d biosprintShow BIOS print switch information
ipmcget -t maintenance -d catlogShow log of a specified type.
ipmcget -t maintenance -d dumpdfxlogDump DFX log
ipmcget -t maintenance -d ipinfoGet the maintenance IP information of dedicated port
ipmcget -t maintenance -d listcsrGet the list of csr.
ipmcget -t maintenance -d loglistGet the list of logs that can be viewed.
ipmcget -t maintenance -d poweronlockGet power on lock information
ipmcget -t maintenance -d retiresystemGet retirement status
ipmcset -t maintenance -d biosprintBIOS print set
ipmcset -t maintenance -d callredfishcallredfish
ipmcset -t maintenance -d downloadDownload files
ipmcset -t maintenance -d ethlinkSet ethernet port link status
ipmcset -t maintenance -d importcsrImport CSR
ipmcset -t maintenance -d ipaddrSet maintenance ip address
ipmcset -t maintenance -d poweronlockClear the power-on lock status.
ipmcset -t maintenance -d psualarmlatchSet the power supply alarm latch status
ipmcset -t maintenance -d resetiMEReset ARM iME
ipmcset -t maintenance -d retiresystemRetire system
ipmcset -t maintenance -d upgradebiosUpgrade bios component

Network Configuration

Command FormatCommand Function
ipmcget -d ethportGet usable eth port
ipmcget -d ipinfoGet ip information
ipmcget -d lldpinfoGet LLDP information
ipmcget -d macaddrGet mac address
ipmcset -d activeportSet EthGroup active port
ipmcset -d backupipaddrSet backup ip address
ipmcset -d gatewaySet gateway
ipmcset -d gateway6Set ipv6 gateway
ipmcset -d ipaddrSet ip address
ipmcset -d ipaddr6Set ipv6 address
ipmcset -d ipmodeSet ip mode
ipmcset -d ipmode6Set ipv6 mode
ipmcset -d ipversionSet ip version
ipmcset -d netmodeSet net mode
ipmcset -d vlanSet sideband vlan

NTP

Command FormatCommand Function
ipmcget -d ntpinfoGet NTP information
ipmcset -t ntp -d alternativeserverSet alternative NTP server address
ipmcset -t ntp -d authstatusEnable auth status
ipmcset -t ntp -d extraserverSet extra NTP server address
ipmcset -t ntp -d groupkeyImport NTP group key
ipmcset -t ntp -d modeSet NTP mode
ipmcset -t ntp -d preferredserverSet preferred NTP server address
ipmcset -t ntp -d statusSet NTP enable status

Power Management

Command FormatCommand Function
ipmcget -d psuinfoGet PSU component information
ipmcset -d psuswitchSet psu switch
ipmcset -d psuworkmodeSet PSU work mode

Precise Alarm

Command FormatCommand Function
ipmcset -t precisealarm -d mockPrecise alarm mock

Security Banner

Command FormatCommand Function
ipmcget -t securitybanner -d infoGet banner info
ipmcset -t securitybanner -d contentSet login security banner content
ipmcset -t securitybanner -d stateSet login security banner state

Security Enhancement

Command FormatCommand Function
ipmcget -t securityenhance -d inactivetimelimitGet inactive user timelimit(day)
ipmcget -t securityenhance -d masterkeyupdateintervalGet masterkeyupdateinterval information
ipmcset -t securityenhance -d inactivetimelimitSet inactive user timelimit(day)
ipmcset -t securityenhance -d masterkeyupdateintervalSet master key automatic update interval(day)
ipmcset -t securityenhance -d updatemasterkeyUpdate master key

Sensor

Command FormatCommand Function
ipmcget -t sensor -d listList all sensor information
ipmcset -t sensor -d stateSensor state
ipmcset -t sensor -d testSensor test

Service Management

Command FormatCommand Function
ipmcget -t service -d listList all service information
ipmcset -t service -d portSet service port
ipmcset -t service -d stateSet service enable state

SMBIOS

Command FormatCommand Function
ipmcget -d serialnumberGet system serial number
ipmcget -t smbios -d serialnumberPrint serialnumber of smbios

SOL

Command FormatCommand Function
ipmcget -t sol -d infoGet the information of SOL
ipmcget -t sol -d sessionGet the information of SOL session
ipmcset -t sol -d activateSet SOL activate
ipmcset -t sol -d deactivateClose SOL session
ipmcset -t sol -d timeoutSet SOL timeout period(min)

Storage Management

Command FormatCommand Function
ipmcget -t storage -d arrayinfoGet the information of disk array
ipmcget -t storage -d ctrlinfoGet the information of RAID controller
ipmcget -t storage -d ldinfoGet the information of logical drive
ipmcget -t storage -d pdinfoGet the information of physical drive
ipmcset -t storage -d addldAdd a logical drive on already existing disk array
ipmcset -t storage -d createldCreate a logical drive
ipmcset -t storage -d ctrlconfigSet RAID controller configurations
ipmcset -t storage -d deleteldDelete a logical drive
ipmcset -t storage -d ldconfigSet logical drive configurations
ipmcset -t storage -d pdconfigSet physical drive configurations

Syslog

Command FormatCommand Function
ipmcget -t syslog -d authGet syslog auth type
ipmcget -t syslog -d clientcertificateGet syslog client certificate information
ipmcget -t syslog -d identityGet syslog identity
ipmcget -t syslog -d iteminfoGet syslog dest item information
ipmcget -t syslog -d protocolGet syslog protocol
ipmcget -t syslog -d rootcertificateGet syslog root certificate information
ipmcget -t syslog -d severityGet syslog send severity
ipmcget -t syslog -d stateGet syslog enable status
ipmcset -t syslog -d addressSet syslog dest address
ipmcset -t syslog -d authSet syslog auth type
ipmcset -t syslog -d identitySet syslog identity
ipmcset -t syslog -d logtypeSet syslog dest log type
ipmcset -t syslog -d portSet syslog dest port
ipmcset -t syslog -d protocolSet syslog protocol
ipmcset -t syslog -d rootcertificateimport syslog rootcertificate
ipmcset -t syslog -d severitySet syslog severity
ipmcset -t syslog -d stateSet syslog enable state
ipmcset -t syslog -d testTest syslog dest send

System Management

Command FormatCommand Function
ipmcget -d bootdeviceGet boot device
ipmcget -d ledinfoGet led information
ipmcget -d rollbackstatusGet rollback status
ipmcget -d serialdirGet currently connected serial direction
ipmcget -d systemcomGet system com data
ipmcget -d timeGet system time
ipmcget -d versionGet openUBMC version
ipmcset -d bootdeviceSet boot device
ipmcset -d clearcmosClear CMOS
ipmcset -d printscreenPrint current screen to openUBMC
ipmcset -d resetReboot openUBMC system
ipmcset -d restoreRestore factory setting
ipmcset -d rollbackPerform a manual rollback
ipmcset -d serialdirSet serial direction
ipmcset -d timezoneSet time zone
ipmcset -d upgradeUpgrade component

Thermal Management

Command FormatCommand Function
ipmcget -d coolingdeviceinfoGet fan or pump mode and the percentage of the fan or pump speed
ipmcget -d faninfoGet fan mode and the percentage of the fan speed
ipmcset -d coolinglevelSet cooling device level
ipmcset -d coolingmodeSet cooling device mode, you can choose manual, auto or mixed
ipmcset -d fanlevelSet fanlevel
ipmcset -d fanmodeSet fan mode,you can choose manual / auto or mixed

SNMP Trap

Command FormatCommand Function
ipmcget -t trap -d modeGet SNMP trap mode
ipmcget -t trap -d severityGet trap send severity
ipmcget -t trap -d stateGet trap enable status
ipmcget -t trap -d trapiteminfoGet trapitem information
ipmcget -t trap -d userGet SNMP trap user
ipmcget -t trap -d versionGet SNMP trap version
ipmcset -t trap -d addressSet trap address
ipmcset -t trap -d communitySet SNMP trap community
ipmcset -t trap -d modeSet SNMP trap mode
ipmcset -t trap -d portSet trap port
ipmcset -t trap -d severitySet trap send severity
ipmcset -t trap -d stateSet trap enable state
ipmcset -t trap -d userSet SNMP trap user
ipmcset -t trap -d versionSet SNMP trap version

USB Management

Command FormatCommand Function
ipmcget -t usbmgmt -d infoGet USB management service information
ipmcset -t usbmgmt -d stateSet USB management service state

User Management

Command FormatCommand Function
ipmcget -d minimumpasswordageGet minimum password age
ipmcget -d notimeoutstateGet CLI session notimeout state
ipmcget -d passwordcomplexityGet password complexity check enable status
ipmcget -d sshpasswordauthenticationGet SSH password authentication status
ipmcget -d userlistList all user information
ipmcget -t user -d listList all user information
ipmcget -t user -d osadminprivilegeGet the host side administrator privilege enable status
ipmcget -t user -d passwordcomplexityGet password complexity check enable status
ipmcget -t user -d passwordpatternGet the regular expression for checking password complexity
ipmcget -t user -d passwordrulepolicyGet the password complexity check mode
ipmcget -t user -d usermgmtbyhostGet user management status on the host side
ipmcset -d adduserAdd user
ipmcset -d deluserDelete user
ipmcset -d emergencyuserSet emergencyuser
ipmcset -d minimumpasswordageSet minimum password age configuration
ipmcset -d passwordModify user password
ipmcset -d passwordcomplexitySet password complexity check enable state
ipmcset -d privilegeSet user privilege
ipmcset -d sshpasswordauthenticationSet SSH password authentication state
ipmcset -t user -d addpublickeyAdd SSH public key
ipmcset -t user -d delpublickeyDelete SSH public key
ipmcset -t user -d firstloginpolicySet user first login password reset policy
ipmcset -t user -d interfaceSet user login interface
ipmcset -t user -d lockSet user lock state
ipmcset -t user -d osadminprivilegeSet the host side administrator privilege enable status
ipmcset -t user -d passwordcomplexitySet password complexity check enable state
ipmcset -t user -d passwordpatternSet the regular expression for checking password complexity
ipmcset -t user -d passwordrulepolicySet the password complexity check mode
ipmcset -t user -d privilegeSet user privilege
ipmcset -t user -d snmpprivacypasswordSet snmp privacy password
ipmcset -t user -d stateEnable/Disable user
ipmcset -t user -d unlockSet user unlock state
ipmcset -t user -d usermgmtbyhostSet user management function on the host side
ipmcset -t user -d weakpwddicManage weak password dictionary
ipmcset -t vnc -d passwordSet VNC password

Virtual Media

Command FormatCommand Function
ipmcget -t vmm -d infoGet virtual media information
ipmcset -t vmm -d connectconnect virtual media
ipmcset -t vmm -d disconnectdisconnect virtual media

VNC

Command FormatCommand Function
ipmcget -t vnc -d infoGet VNC information
ipmcset -t vnc -d keyboardlayoutSet VNC keyboard layout
ipmcset -t vnc -d sslSet VNC ssl encryption
ipmcset -t vnc -d timeoutSet VNC timeout period(min)