SJ-20230907115354-012-ZTE Server BMC CLI Interface Description (BMC V4) R1.1
SJ-20230907115354-012-ZTE Server BMC CLI Interface Description (BMC V4) R1.1
Version: R1.1
ZTE CORPORATION
ZTE Plaza, Keji Road South, Hi-Tech Industrial Park,
Nanshan District, Shenzhen, P.R.China
Postcode: 518057
Tel: +86-755-26771900
URL: https://support.zte.com.cn
E-mail: [email protected]
LEGAL INFORMATION
Copyright 2025 ZTE CORPORATION.
The contents of this document are protected by copyright laws and international treaties. Any reproduction or
distribution of this document or any portion of this document, in any form by any means, without the prior written
consent of ZTE CORPORATION is prohibited. Additionally, the contents of this document are protected by
All company, brand and product names are trade or service marks, or registered trade or service marks, of ZTE
This document is provided as is, and all express, implied, or statutory warranties, representations or conditions are
disclaimed, including without limitation any implied warranty of merchantability, fitness for a particular purpose,
title or non-infringement. ZTE CORPORATION and its licensors shall not be liable for damages resulting from the
ZTE CORPORATION or its licensors may have current or pending intellectual property rights or applications
covering the subject matter of this document. Except as expressly provided in any written license between ZTE
CORPORATION and its licensee, the user of this document shall not acquire any license to the subject matter
herein.
ZTE CORPORATION reserves the right to upgrade or make technical change to this product without further notice.
Users may visit the ZTE technical support website https://support.zte.com.cn to inquire for related information.
delivered together with this product of ZTE, the embedded software must be used as only a component of this
product. If this product is discarded, the licenses for the embedded software must be void either and must not be
transferred. ZTE will provide technical support for the embedded software of this product.
Revision History
I
2.4.13 Query Temperature Sensor Information............................................................. 52
2.5 AccountService-Related Commands................................................................................. 54
2.5.1 Set BMC Redfish Account Service.......................................................................54
2.5.2 Query BMC Redfish Account Service Information................................................55
2.5.3 Query BMC User Information............................................................................... 56
2.5.4 Set BMC User Information................................................................................... 59
2.5.5 Create BMC User................................................................................................. 60
2.5.6 Delete BMC User................................................................................................. 62
2.5.7 Query AD Configuration....................................................................................... 63
2.5.8 Set Active Directory.............................................................................................. 65
2.5.9 Query LDAP Configuration................................................................................... 68
2.5.10 Set LDAP............................................................................................................ 71
2.6 UpdateService-Related Commands.................................................................................. 73
2.6.1 Query Upgradeable Firmware Information........................................................... 73
Glossary....................................................................................................................77
II
About This Manual
Purpose
This manual describes how to use the CLI tool and common commands of the BMC.
Intended Audience
Chapter Summary
Conventions
Symbol Description
III
IV
Chapter 1
Introduction to the CLI
Tool
Tool Overview
The CLI tool provides a Command Line Interface (CLI) operation mode without the UI. You can
use commands to manage servers, including querying and configuring the system resources
and management resources of servers, upgrading firmware, and collecting assets.
Usage Guidelines
The CLI tool can execute commands only after the tool is connected in SSH mode to the BMC
of the server to be managed.
An IPMI command executes an ipmitool command and returns the execution result.
Syntax
ipmi IPMICOMMAND
Parameters
Usage Guidelines
Examples
Returned result: The execution result is the same as that returned after the ipmitool sensor
list command is executed.
Output Descriptions
None.
Syntax
getdns
Parameters
None.
Usage Guidelines
Examples
----------------------------------------------------------------------
Command: getdns Result: Success
----------------------------------------------------------------------
Host Name : testname
DNS Enabled : True
DNS DhcpEnabled : False
DNS Server : [10.10.10.21,10.10.10.23,null]
Domain Name : 102.zte.com.cn
----------------------------------------------------------------------
Output Descriptions
Syntax
getntp
Parameters
None.
Usage Guidelines
Examples
---------------------------------------------------------
Command: getntp Result: Success
---------------------------------------------------------
ServiceEnabled : False
NtpAddressOrigin : static
PrimaryNtpServer : 1.2.3.4
SecondaryNtpServer : 2.3.4.5
TertiarydaryNtpServer :
MinSyncPeriod(s) : 60
MaxSyncPeriod(s) : 65535
CurrentSyncPeriod(s) : 60
--------------------------------------------------------
Output Descriptions
Syntax
getsel
Parameters
None.
Usage Guidelines
Examples
---------------------------------------------------------
Command: getsel Result: Success
---------------------------------------------------------
[selcollect]
Id : 305
Name : #9
Severity : Critical
EventTimestamp : 2024-04-02T13:13:53+08:00
EntryType : SEL
EntryCode : Asserted
SensorNumber : 9
SensorType : Power Supply
Message : Predictive Failure
Id : 306
Name : #9
Severity : Critical
EventTimestamp : 2024-04-02T13:13:53+08:00
EntryType : SEL
EntryCode : Asserted
SensorNumber : 9
SensorType : Power Supply
Message : Power Supply input lost (AC/DC)
--------------------------------------------------------
Output Descriptions
Syntax
getsnmp
Parameters
None.
Usage Guidelines
Examples
---------------------------------------------------------
Command: getsnmp Result: Success
---------------------------------------------------------
Id : SnmpService
Name : SnmpService
ReadOnlyCommunity : null
ReadWriteCommunity : null
ComplexPwdEnable : True
SnmpServiceEnable : True
SnmpServicePort : 161
[SnmpTrapNotification]
[TrapServer]
MemberId : 1
TrapServerAddress : 1.2.3.4
TrapServerEnable : True
TrapServerPort : 162
SnmpTrapCommunity : zte_public
SnmpTrapEnable : True
AlarmSeverity : Normal
TrapHostIdentify : BoardSN
TrapV3User : null
TrapVersion : V2C
TrapServerCount : 0
SnmpV3AuthUserCount : 3
[SnmpV3AuthUser]
snmpV3AuthProtocol : SHA
snmpV3PrivProtocol : AES
UserName : Administrator
snmpV3AuthProtocol : SHA
snmpV3PrivProtocol : AES
UserName : Administrator666
snmpV3AuthProtocol : SHA
snmpV3PrivProtocol : AES
UserName : test5
--------------------------------------------------------
Output Descriptions
ReadOnlyCommunity SNMP read-only community (set to null by default for security purposes).
ReadWriteCommunity SNMP read-write community (set to null by default for security purposes).
SnmpServiceEnable Whether the SNMP function is enabled. This parameter is unavailable for G4
series servers.
TrapServerEnable Whether the trap server is enabled. This parameter is unavailable for G4 series
servers.
TrapHostIdentify Trap host ID. This parameter is unavailable for G4 series servers.
Syntax
getservice
Parameters
None.
Usage Guidelines
Examples
---------------------------------------------------------
Command: getservice Result: Success
---------------------------------------------------------
[HTTPS]
Port : 443
ProtocolEnabled : True
Timeout : 30
[IPMI]
Port : 623
ProtocolEnabled : True
[KVMIP]
Port : 7578
ProtocolEnabled : True
Timeout : 30
[SNMP]
Port : 161
ProtocolEnabled : True
[SSH]
Port : 22
ProtocolEnabled : True
[VMedia]
ProtocolEnabled : False
[VMedia-CD]
Instance : 1
Port : 5120
ProtocolEnabled : True
[VMedia-HD]
Instance : 1
Port : 5123
ProtocolEnabled : True
[VNC]
ProtocolEnabled : True
Port : 5900
SecurePort : 5901
[SSDP]
ProtocolEnabled : True
Port : 59001
NotifyMulticastIntervalSeconds : 10
NotifyIPv6Scope : Site
NotifyEnabled : True
--------------------------------------------------------
Output Descriptions
Syntax
getsyslog
Parameters
None.
Usage Guidelines
Examples
---------------------------------------------------------
Command: getsyslog Result: Success
---------------------------------------------------------
Id : SyslogService
Name : SyslogService
ServiceEnabled : True
ServerIdentitySource : BoardSN
TransmissionProtocol : UDP
[SyslogServers]
Address : 192.168.0.147
Enabled : False
LogType : ['SecurityLog', 'OperationLog', 'EventLog']
Port : 544
MemberId : 0
Address :
Enabled : False
LogType : []
Port : 514
MemberId : 1
Address :
Enabled : False
LogType : []
Port : 514
MemberId : 2
Address :
Enabled : False
LogType : []
Port : 514
MemberId : 3
--------------------------------------------------------
Output Descriptions
Syntax
Parameters
SYSLOGSERVERADDRESS IP address of the syslog server. Valid IPv4 and IPv6 addresses
This parameter is optional. (with the first section not being
zero) and valid domain names are
supported.
SYSLOGSERVERLOGTYPE Type of logs recorded by the The supported log types are
syslog server. This parameter is OperationLog, SecurityLog, and
optional. EventLog. You can specify multiple
log types, which are separated
by a comma (,), for example,
OperationLog,EventLog.
Usage Guidelines
Examples
Run the setsyslog -SE True -SIS HostName -TP UDP -SSID 0 -SSE True -SSA 10.10.10.10 -
SSP 514 -SSLT OperationLog,SecurityLog,EventLog command.
Returned result:
---------------------------------------------------------
Command: setsyslog Result: Success
---------------------------------------------------------
Set Syslog configuration successfully.
---------------------------------------------------------
Output Descriptions
None.
Syntax
getassettag
Parameters
None.
Usage Guidelines
Examples
----------------------------------------------------------------------
Command: getassettag Result: Success
----------------------------------------------------------------------
AssetTag : Z012345678900123
----------------------------------------------------------------------
Output Descriptions
Syntax
Parameters
ASSETTAG Asset tag name, required. String of 2–63 characters. Allowed characters
include lowercase letters (a – z), uppercase
letters (A – Z), digits (0 – 9), hyphens (-),
underscores (_), spaces (), At signs (@), and
colons (:). Letters are case-sensitive. The name
cannot start with a hyphen (-), underscore (_),
space ( ), or colon (:).
Usage Guidelines
Examples
----------------------------------------------------------------------
Command: setassettag Result: Success
----------------------------------------------------------------------
Set assettag information successfully.
----------------------------------------------------------------------
Output Descriptions
None.
Syntax
getproduct
Parameters
None.
Usage Guidelines
Examples
---------------------------------------------------------
Command: getproduct Result: Success
---------------------------------------------------------
ProductName : 12345678901234567890
Manufacturer : ZTE
SerialNumber : 88
UUID : 30e72400-0000-1000-0000-000000000000
PowerState : On
Health : OK
DeviceOwnerID : lx
DeviceSlotID : 0
TotalPowerWatts : 128
--------------------------------------------------------
Output Descriptions
Syntax
Parameters
Usage Guidelines
Examples
Example 1
----------------------------------------------------------------------
Command: getcpu Result: Success
----------------------------------------------------------------------
Name : Processors Collection
CPUCount : 1
[CPUs]
Id : 0
Name : Intel Processor 0
Slot : 0
SerialNumber : 57F26AC68929C290
Model : Intel(R) Xeon(R) Silver 4214 CPU @2.20GHz
InstructionSet : x86-64
ProcessorArchitecture : x86
Example 2
Run the getcpu -S 0 command to query the information about the CPU in the specified slot.
Returned result:
----------------------------------------------------------------------
Command: getcpu Result: Success
----------------------------------------------------------------------
Id : 0
Name : Intel Processor 0
Slot : 0
SerialNumber : 57F26AC68929C290
Model : Intel(R) Xeon(R) Silver 4214 CPU @2.20GHz
InstructionSet : x86-64
ProcessorArchitecture : x86
Manufacturer : Intel(R) Corporation
TotalCores : 12
TotalThreads : 24
MaxFrequency(MHz) : 3200
Frequency(MHz) : 2200
L1Cache(KB) : 768
L2Cache(KB) : 12288
L3Cache(KB) : 16896
[Status]
Health : OK
State : Enabled
----------------------------------------------------------------------
Output Descriptions
Id CPU ID.
Syntax
Parameters
Usage Guidelines
Examples
Example 1
----------------------------------------------------------------------
Command: getmemory Result: Success
----------------------------------------------------------------------
Name : Memory Collection
MemoryCount : 2
[Memorys]
Id : CPU0_B0
Name : CPU0_B0
DeviceLocator : CPU0_B0
[MemoryLocation]
Slot : 0
Channel : 0
Controller : 3
Socket : 0
SerialNumber : 802C0622473CC5868C
MemoryDeviceType : DDR5
BaseModuleType : RDIMM
Manufacturer : Micron
Capacity(MB) : 32768
ECCType : Multi-bit ECC
OperatingSpeed(Mhz) : 4800
PartNumber : MTC20F2085S1RC48BA1
[Status]
Health : OK
State : Enabled
Id : CPU0_D0
Name : CPU0_D0
DeviceLocator : CPU0_D0
[MemoryLocation]
Slot : 1
Channel : 0
Controller : 7
Socket : 0
SerialNumber : 802C0622483CE6814E
MemoryDeviceType : DDR5
BaseModuleType : RDIMM
Manufacturer : Micron
Capacity(MB) : 32768
ECCType : Multi-bit ECC
OperatingSpeed(Mhz) : 4800
PartNumber : MTC20F2085S1RC48BA1
[Status]
Health : OK
State : Enabled
----------------------------------------------------------------------
Example 2
To query information about the memory module in the specified slot, run the getmemory-D
CPU0_B0 command.
Returned result:
----------------------------------------------------------------------
Command: getmemory Result: Success
----------------------------------------------------------------------
Id : CPU0_B0
Name : CPU0_B0
DeviceLocator : CPU0_B0
[MemoryLocation]
Slot : 0
Channel : 0
Controller : 3
Socket : 0
SerialNumber : 802C0622473CC5868C
MemoryDeviceType : DDR5
BaseModuleType : RDIMM
Manufacturer : Micron
Capacity(MB) : 32768
ECCType : Multi-bit ECC
OperatingSpeed(Mhz) : 4800
PartNumber : MTC20F2085S1RC48BA1
[Status]
Health : OK
State : Enabled
----------------------------------------------------------------------
Output Descriptions
Socket Slot number of the CPU that the memory module belongs to.
Syntax
gethealth
Parameters
None.
Usage Guidelines
Examples
----------------------------------------------------------------------
Command: gethealth Result: Success
----------------------------------------------------------------------
System : Critical
----------------------------------------------------------------------
Output Descriptions
Syntax
gethostname
Parameters
None.
Usage Guidelines
Examples
----------------------------------------------------------------------
Command: gethostname Result: Success
----------------------------------------------------------------------
HostName : iSAC-20221022
----------------------------------------------------------------------
Output Descriptions
Syntax
Parameters
Usage Guidelines
Examples
----------------------------------------------------------------------
Output Descriptions
None.
Syntax
Parameters
Usage Guidelines
Examples
Example 1
---------------------------------------------------------
Command: getnic Result: Success
---------------------------------------------------------
Name : Network Adapters Collection
NetworkAdaptersCount : 1
[NetworkAdapters]
Id : mainboardPCIeCard9
CardName : mainboardPCIeCard9
SerialNumber : 750087700021
[Status]
Health : OK
State : Enabled
CardManufacturer : ZTE
CardModel : 2*25GE
CardType : fiber
ChipManufacturer : Mellanox
ChipModel : ConnectX-4 Lx
FirmwarePackageVersion : 14.32.1010
DriverVersion : null
DeviceLocator : mainboardPCIeCard9
SlotNumber : 9
CurrentTmp : 45
FpgaStatus : N/A
HistoryMaxTemperature : N/A
NetworkTechnology : ['Ethernet']
RootBDF : 0007:00:00.0
NicMemory : N/A
[NetworkPorts]
Id : 1
Name : 1
LinkStatus : Down
MAC Address : ['30:b9:30:0c:64:f6']
PhysicalPortNumber : 1
BDF : 0007:01:00.0
PortType : OpticalPort
CurrentSpeed : null
PortMaxSpeed : 25000Mb/s
SupportSpeed : ['1000Mb/s', '10000Mb/s', '25000Mb/s']
[LldpService]
ServiceEnabled : True
LldpEnabled : True
WorkMode : TxRx
FirmwarePackageVersion : 14.32.1010
DriverVersion : null
Id : 2
Name : 2
LinkStatus : Down
MAC Address : ['30:b9:30:0c:64:f7']
PhysicalPortNumber : 2
BDF : 0007:01:00.1
PortType : OpticalPort
CurrentSpeed : null
PortMaxSpeed : 25000Mb/s
SupportSpeed : ['1000Mb/s', '10000Mb/s', '25000Mb/s']
[LldpService]
ServiceEnabled : True
LldpEnabled : True
WorkMode : TxRx
FirmwarePackageVersion : 14.32.1010
DriverVersion : null
--------------------------------------------------------
Example 2
Run the getnic --slot 9 command to query information about the NIC in the specified slot.
Returned result:
---------------------------------------------------------
Command: getnic Result: Success
---------------------------------------------------------
Id : mainboardPCIeCard9
CardName : mainboardPCIeCard9
SerialNumber : 750087700021
[Status]
Health : OK
State : Enabled
CardManufacturer : ZTE
CardModel : 2*25GE
CardType : fiber
ChipManufacturer : Mellanox
ChipModel : ConnectX-4 Lx
FirmwarePackageVersion : 14.32.1010
DriverVersion : null
DeviceLocator : mainboardPCIeCard9
SlotNumber : 9
CurrentTmp : 45
FpgaStatus : N/A
HistoryMaxTemperature : N/A
NetworkTechnology : ['Ethernet']
RootBDF : 0007:00:00.0
NicMemory : N/A
[NetworkPorts]
Id : 1
Name : 1
LinkStatus : Down
MAC Address : ['30:b9:30:0c:64:f6']
PhysicalPortNumber : 1
BDF : 0007:01:00.0
PortType : OpticalPort
CurrentSpeed : null
PortMaxSpeed : 25000Mb/s
SupportSpeed : ['1000Mb/s', '10000Mb/s', '25000Mb/s']
[LldpService]
ServiceEnabled : True
LldpEnabled : True
WorkMode : TxRx
FirmwarePackageVersion : 14.32.1010
DriverVersion : null
Id : 2
Name : 2
LinkStatus : Down
MAC Address : ['30:b9:30:0c:64:f7']
PhysicalPortNumber : 2
BDF : 0007:01:00.1
PortType : OpticalPort
CurrentSpeed : null
PortMaxSpeed : 25000Mb/s
SupportSpeed : ['1000Mb/s', '10000Mb/s', '25000Mb/s']
[LldpService]
ServiceEnabled : True
LldpEnabled : True
WorkMode : TxRx
FirmwarePackageVersion : 14.32.1010
DriverVersion : null
--------------------------------------------------------
Example 3
Run the getnic --slot 9 --id 1 command to query the information about the port of the specified
NIC.
Returned result:
---------------------------------------------------------
Command: getnic Result: Success
---------------------------------------------------------
Id : 1
Name : 1
LinkStatus : Down
MAC Address : ['30:b9:30:0c:64:f6']
PhysicalPortNumber : 1
BDF : 0007:01:00.0
PortType : OpticalPort
CurrentSpeed : null
PortMaxSpeed : 25000Mb/s
SupportSpeed : ['1000Mb/s', '10000Mb/s', '25000Mb/s']
[LldpService]
ServiceEnabled : True
LldpEnabled : True
WorkMode : TxRx
FirmwarePackageVersion : 14.32.1010
DriverVersion : null
--------------------------------------------------------
Output Descriptions
Id NIC ID.
NicMemory Memory information set of the NIC (N/A displayed for non-FPGA
cards).
CapacityGb Memory capacity of the NIC (displayed only for FPGA cards).
Model Memory model of the NIC (displayed only for FPGA cards).
Status Memory status of the NIC (displayed only for FPGA cards).
Values:
0: normal
1: abnormal
Id Port ID.
Syntax
Parameters
Usage Guidelines
Examples
Example 1
To query the information about all FC cards, run the getfc command.
Returned result:
---------------------------------------------------------
Command: getfc Result: Success
---------------------------------------------------------
Name : FC Cards Collection
FCCardsCount : 1
[FCCards]
Id : mainboardFCCard5
CardName : mainboardFCCard5
SerialNumber : null
[Status]
Health : OK
State : Enabled
CardManufacturer : Emulex
CardModel : 2*32GE
CardType : fiber
ChipManufacturer : Emulex
ChipModel : Lancer G6
FirmwarePackageVersion : null
DriverVersion : null
DeviceLocator : mainboardFCCard5
SlotNumber : 5
CurrentTmp : null
FpgaStatus : N/A
HistoryMaxTemperature : None
NetworkTechnology : ['FC']
RootBDF : 0007:80:00.0
NicMemory : N/A
[NetworkPorts]
Id : 1
Name : 1
LinkStatus : null
MAC Address : [null, null]
PhysicalPortNumber : 1
BDF : 0007:81:00.0
PortType : OpticalPort
CurrentSpeed : null
PortMaxSpeed : 32000Mb/s
SupportSpeed : ['8000Mb/s', '16000Mb/s', '32000Mb/s']
[LldpService]
ServiceEnabled : False
LldpEnabled : False
WorkMode : null
FirmwarePackageVersion : null
DriverVersion : null
Id : 2
Name : 2
LinkStatus : null
MAC Address : [null, null]
PhysicalPortNumber : 2
BDF : 0007:81:00.0
PortType : OpticalPort
CurrentSpeed : null
PortMaxSpeed : 32000Mb/s
SupportSpeed : ['8000Mb/s', '16000Mb/s', '32000Mb/s']
[LldpService]
ServiceEnabled : False
LldpEnabled : False
WorkMode : null
FirmwarePackageVersion : null
DriverVersion : null
--------------------------------------------------------
Example 2
To query the information about the FC card in the specified slot, run the getfc--slot 5
command.
Returned result:
---------------------------------------------------------
Command: getfc Result: Success
---------------------------------------------------------
Id : mainboardFCCard5
CardName : mainboardFCCard5
SerialNumber : null
[Status]
Health : OK
State : Enabled
CardManufacturer : Emulex
CardModel : 2*32GE
CardType : fiber
ChipManufacturer : Emulex
ChipModel : Lancer G6
FirmwarePackageVersion : null
DriverVersion : null
DeviceLocator : mainboardPCIeCard5
SlotNumber : 5
CurrentTmp : null
FpgaStatus : N/A
HistoryMaxTemperature : N/A
NetworkTechnology : ['FC']
RootBDF : 0007:80:00.0
NicMemory : N/A
[NetworkPorts]
Id : 1
Name : 1
LinkStatus : null
MAC Address : [null, null]
PhysicalPortNumber : 1
BDF : 0007:81:00.0
PortType : OpticalPort
CurrentSpeed : null
PortMaxSpeed : 32000Mb/s
SupportSpeed : ['8000Mb/s', '16000Mb/s', '32000Mb/s']
[LldpService]
ServiceEnabled : False
LldpEnabled : False
WorkMode : null
FirmwarePackageVersion : null
DriverVersion : null
Id : 2
Name : 2
LinkStatus : null
MAC Address : [null, null]
PhysicalPortNumber : 2
BDF : 0007:81:00.0
PortType : OpticalPort
CurrentSpeed : null
PortMaxSpeed : 32000Mb/s
SupportSpeed : ['8000Mb/s', '16000Mb/s', '32000Mb/s']
[LldpService]
ServiceEnabled : False
LldpEnabled : False
WorkMode : null
FirmwarePackageVersion : null
DriverVersion : null
--------------------------------------------------------
Output Descriptions
FCCards FC cards.
Id ID of the FC card.
NicMemory Memory information set of the FC card (N/A displayed for non-FPGA
cards).
CapacityGb Memory capacity of the FC card (displayed only for FPGA cards).
Model Memory model of the FC card (displayed only for FPGA cards).
Status Memory status of the FC card (displayed only for FPGA cards). Values:
0: normal
1: abnormal
Id Port ID.
ServiceEnabled Whether the specified network port supports LLDP information query.
Values:
True: LLDP query is supported.
False: LLDP query is not supported.
If this option is set to False, only the default values of LldpEnabled and
WorkMode are displayed, providing no meaningful information.
Syntax
Parameters
Usage Guidelines
Examples
Example 1
---------------------------------------------------------
Command: getpdisk Result: Success
---------------------------------------------------------
Name : Drivers Collection
DrivesCount : 2
[Drives]
Id : HDDPlaneDisk0
Name : Disk0
SlotNumber : 0
[DriveLocation]
Info : Disk0
InfoFormat : DeviceName
Capacity(Bytes) : 2147483647
CapableSpeed(Gbs) : 6
SerialNumber : S6KKNC0TB16293
Model : SAMSUNG MZ7L31T9HBLT-00B7C
MediaType : SSD
Manufacturer : SAMSUNG
Protocol : SATA
Revision : JXTC304Q
FailurePredicted : False
HotspareType : null
PartNumber : null
PredictedMediaLifeLeftPercent : 99
[Status]
Health : OK
State : Enabled
Id : HDDPlaneDisk1
Name : Disk1
SlotNumber : 1
[DriveLocation]
Info : Disk1
InfoFormat : DeviceName
Capacity(Bytes) : 2147483647
CapableSpeed(Gbs) : 6
SerialNumber : S6KKNC0TB22589
Model : SAMSUNG MZ7L31T9HBLT-00B7C
MediaType : SSD
Manufacturer : SAMSUNG
Protocol : SATA
Revision : JXTC304Q
FailurePredicted : False
HotspareType : null
PartNumber : null
PredictedMediaLifeLeftPercent : 99
[Status]
Health : OK
State : Enabled
--------------------------------------------------------
Example 2
Run the getpdisk-S 0 command to query information about the hard disk in the specified slot.
Returned result:
---------------------------------------------------------
Command: getpdisk Result: Success
---------------------------------------------------------
Id : HDDPlaneDisk0
Name : Disk0
SlotNumber : 0
[DriveLocation]
Info : Disk0
InfoFormat : DeviceName
Capacity(Bytes) : 2147483647
CapableSpeed(Gbs) : 6
SerialNumber : S6KKNC0TB16293
Model : SAMSUNG MZ7L31T9HBLT-00B7C
MediaType : SSD
Manufacturer : SAMSUNG
Protocol : SATA
Revision : JXTC304Q
FailurePredicted : False
HotspareType : null
PartNumber : null
PredictedMediaLifeLeftPercent : 99
[Status]
Health : OK
State : Enabled
--------------------------------------------------------
Output Descriptions
Syntax
getpsu
Parameters
None.
Usage Guidelines
Examples
---------------------------------------------------------
Command: getpsu Result: Success
---------------------------------------------------------
Name : Power
[PowerControl]
MemberId : 1
Name : Chassis Power Control
PowerConsumedWatts : 0
[PowerLimit]
LimitInWatts : null
PowerLimitEnable : False
LimitException : NoAction
PowerSuppliesCount : 2
[PowerSupplies]
MemberId : 1
Name : PSU1
SlotNumber : 1
SerialNumber : 22N094014197
Manufacturer : Great Wall
Model : CRPS1200D
PowerCapacityWatts : 1200
PowerSupplyType : null
LineInputVoltage : 0
FirmwareVersion : DC:1.03 PFC:1.01
[Status]
Health : Warning
State : Enabled
MemberId : 2
Name : PSU2
SlotNumber : 2
SerialNumber : 22L080006492
Manufacturer : Great Wall
Model : CRPS1200D
PowerCapacityWatts : 1200
PowerSupplyType : AC
LineInputVoltage : 229
FirmwareVersion : DC:1.01 PFC:1.00
[Status]
Health : OK
State : Enabled
--------------------------------------------------------
Output Descriptions
Syntax
getpower
Parameters
None.
Usage Guidelines
Examples
---------------------------------------------------------
Command: getpower Result: Success
---------------------------------------------------------
PowerConsumedWatts : 227
CurrentCPUPowerWatts : 42
CurrentFanPowerWatts : 24
CurrentMemoryPowerWatts : 6
CurrentHDDPowerWatts : 28
--------------------------------------------------------
Output Descriptions
Syntax
getfanmode
Parameters
None.
Usage Guidelines
Examples
----------------------------------------------------
Command: getfanmode Result: Success
----------------------------------------------------
FanSpeedAdjustmentMode : Manual
FanSmartCoolingMode : N/A
FanSpeedRatio : 40
----------------------------------------------------
Output Descriptions
Syntax
Parameters
Usage Guidelines
If -FAM is set to Automatic, -FSM is required. Otherwise, the input is considered invalid,
and -FSR becomes invalid.
If -FAM is set to Manual, -FSR is required. Otherwise, the input is considered invalid, and -
FSM becomes invalid.
Examples
----------------------------------------------------------------------
Command: setfanmode Result: Success
----------------------------------------------------------------------
Set fan mode successfully.
----------------------------------------------------------------------
Output Descriptions
None.
Syntax
getpowerrestorepolicy
Parameters
None.
Usage Guidelines
Examples
---------------------------------------------------------
Command: getpowerrestorepolicy Result: Success
---------------------------------------------------------
PowerRestorePolicy : RestorePreviousState
---------------------------------------------------------
Output Descriptions
Syntax
Parameters
Usage Guidelines
Examples
----------------------------------------------------------------------
Command: setpowerrestorepolicy Result: Success
----------------------------------------------------------------------
Set power restore policy successfully.
----------------------------------------------------------------------
Output Descriptions
None.
Syntax
getpowerredun
Parameters
None.
Usage Guidelines
Examples
--------------------------------------------------------
Command: getpowerredun Result: Success
--------------------------------------------------------
RedundancyMode : Sharing
ActivePSUs : ['1','2']
--------------------------------------------------------
Output Descriptions
Syntax
getsysboot
Parameters
None.
Usage Guidelines
Examples
----------------------------------------------------------------------
Command: getsysboot Result: Success
----------------------------------------------------------------------
SystemBootMode : Hdd
SystemBootModeOptions : ['None', 'Pxe', 'Cd', 'Floppy', 'Hdd', 'BiosSetup',
'RemotelyHdd']
SystemBootEffectiveMode : Continuous
BootEffectiveModeOptions : ['Once', 'Continuous']
----------------------------------------------------------------------
Output Descriptions
Syntax
getfan
Parameters
None.
Usage Guidelines
Examples
----------------------------------------------------------------------
Command: getfan Result: Success
----------------------------------------------------------------------
Name : Fans Collection
FansCount : 1
[Fans]
Id : 1
Name : FAN_SPEED_01
SlotNumber : 1
SpeedRatio : 40
SerialNumber : 20150305
Reading : 6000
MinReadingRange : 1000
MaxReadingRange : 16500
ReadingUnits : RPM
LowerThresholdNonCritical : null
LowerThresholdCritical : 1000
LowerThresholdFatal : null
UpperThresholdNonCritical : null
UpperThresholdCritical : 16500
UpperThresholdFatal : null
[Status]
Health : OK
State : Enabled
----------------------------------------------------------------------
Output Descriptions
ReadingUnits Unit of the fan rotation speed reading for the fan sensor.
Syntax
gettemp
Parameters
None.
Usage Guidelines
Examples
----------------------------------------------------------------------
Command: gettemp Result: Success
----------------------------------------------------------------------
Name : Temperature Sensors Collection
TemperatureSensorsCount : 1
[TemperatureSensors]
Name : INPUT_TEMP
SensorNumber : 15
MinReadingTemperature : -128
MaxReadingTemperature : 127
ReadingCelsius : 29
PhysicalContext : Intake
LowerThresholdNonCritical : null
LowerThresholdCritical : null
LowerThresholdFatal : null
UpperThresholdNonCritical : 40
UpperThresholdCritical : 45
UpperThresholdFatal : 52
[Status]
Health : OK
State : Enabled
----------------------------------------------------------------------
Output Descriptions
Syntax
Parameters
ACCOUNTLOCKOUTTIME Time to wait before a user is locked due Range: 60–1800 seconds. The
to a login failure is automatically unlocked. value must be a multiple of 60.
Optional.
Usage Guidelines
Examples
----------------------------------------------------------------------
Command: setaccountservice Result: Success
----------------------------------------------------------------------
Set account service successfully.
----------------------------------------------------------------------
Output Descriptions
None.
This command queries information about the BMC Redfish account service.
Syntax
getaccountservice
Parameters
None.
Usage Guidelines
Examples
---------------------------------------------------------
Command: getaccountservice Result: Success
---------------------------------------------------------
AccountAuthenticationFailureTimes : 3
AccountLockoutTime(s) : 600
MaxPasswordLength(bytes) : 20
MinPasswordLength(bytes) : 8
OSUserManagementEnabled : True
---------------------------------------------------------
Output Descriptions
Syntax
Parameters
Usage Guidelines
Examples
Example 1
To query information about all BMC users, run the getuser command.
Returned result:
---------------------------------------------------------
Command: getuser Result: Success
---------------------------------------------------------
AccountsCount : 3
[Accounts]
Id : 1
UserName : anonymous
Enabled : False
Role : Administrator
Locked : False
Id : 2
UserName : Administrator
Enabled : True
Role : Administrator
Locked : False
Id : 3
UserName : test1
Enabled : True
Role : Administrator
Locked : False
--------------------------------------------------------
Example 2
To query information about a BMC user by specifying an ID, run the getuser -I 2 command.
Returned result:
---------------------------------------------------------
Command: getuser Result: Success
---------------------------------------------------------
Id : 2
UserName : Administrator
Enabled : True
Role : Administrator
Locked : False
--------------------------------------------------------
Example 3
To query information about a BMC user by specifying a username, run the getuser -UN
Administrator command.
Returned result:
---------------------------------------------------------
Command: getuser Result: Success
---------------------------------------------------------
Id : 2
UserName : Administrator
Enabled : True
Role : Administrator
Locked : False
--------------------------------------------------------
Output Descriptions
Syntax
Parameters
Usage Guidelines
Examples
Run the setuser -I 8 -UN test8 -UP Abc12345! -UR User -UE True -SA SHA -SP DES
command.
Returned result:
----------------------------------------------------------------------
Command: setuser Result: Success
----------------------------------------------------------------------
Set bmc user account successfully.
----------------------------------------------------------------------
Output Descriptions
None.
Syntax
adduser -UN USERNAME -UP USERPASSWORD -UR USERROLE [-UE USERENABLE] [-I
USERID]
Parameters
USERNAME Name of the new user, required. The name is a string of 1–16
characters. Allowed characters
include lowercase letters (a – z),
uppercase letters (A – Z), digits (0
– 9), hyphens (-), underscores (_),
and At signs (@). Letters are case-
sensitive.
USERENABLE Whether to enable the new user. True: enables the user.
This parameter is optional. ( False: disables the user.
Default: False.)
Usage Guidelines
Examples
Run the adduser -UN zteroot60 -UP ztePublic1! -UR Administrator -UE True command.
Returned result:
----------------------------------------------------------------------
Command: adduser Result: Success
----------------------------------------------------------------------
Add bmc user account successfully.
----------------------------------------------------------------------
Output Descriptions
None.
Syntax
Parameters
Usage Guidelines
Examples
Example 1
Run the deluser -I 10 command to delete a BMC user by specifying the ID.
Returned result:
----------------------------------------------------------------------
Command: deluser Result: Success
----------------------------------------------------------------------
Delete bmc user account successfully.
----------------------------------------------------------------------
Example 2
Run the deluser-UN A9-oper command to delete a BMC user by specifying the username.
Returned result:
----------------------------------------------------------------------
Command: deluser Result: Success
----------------------------------------------------------------------
Delete bmc user account successfully.
----------------------------------------------------------------------
Output Descriptions
None.
Syntax
Parameters
Usage Guidelines
Examples
Example 1
--------------------------------------------------------------
Command: getad Result: Success
--------------------------------------------------------------
Name : Activedirectory
ADAuthenticationEnable : True
UserName : test
Password : null
UserDomain : mydomain.com
ADSSLEnable : True
DomainControllerServerAddress1 : 10.10.10.21
DomainControllerServerAddress2 : 10.10.10.22
DomainControllerServerAddress3 : 10.10.10.23
[ADRoleGroups]
GroupDomain : role1.com
GroupLoginInterface : ['KVM', 'VMedia']
GroupName : group1
GroupRole : Administrator
MemberId : 0
GroupDomain : role2.com
GroupLoginInterface : ['KVM', 'VMedia']
GroupName : group2
GroupRole : Operator
MemberId : 1
GroupDomain : role3.com
GroupLoginInterface : []
GroupName : group3
GroupRole : User
MemberId : 2
GroupDomain : role4.com
GroupLoginInterface : ['KVM', 'VMedia']
GroupName : group4
GroupRole : Administrator
MemberId : 3
GroupDomain : role5.com
GroupLoginInterface : ['KVM', 'VMedia']
GroupName : group5
GroupRole : Operator
MemberId : 4
--------------------------------------------------------------
Example 2
To query the AD configuration by specifying a role group ID, run the getad-RI 0 command.
Returned result:
--------------------------------------------------------------
Command: getad Result: Success
--------------------------------------------------------------
GroupDomain : role1.com
GroupLoginInterface : ['KVM', 'VMedia']
GroupName : group1
GroupRole : Administrator
MemberId : 0
--------------------------------------------------------------
Output Descriptions
Syntax
Parameters
Usage Guidelines
The role group name specified in -GN and the domain name specified in -GD must not
already exist. Using an existing role group or domain name may prevent the AD role group
from being configured correctly.
The -UN and -UP options must be configured together if required.
Examples
Run the setad -AE True -UN ztead1 -UP ztePublic1! -UD ad1.zte.com -DCS1 10.10.20.21 -
DCS2 10.10.20.22 -DCS3 10.10.20.23 -RI 3 -GN role3 -GD role3.zte.com -GP Administrator
command.
Returned result:
----------------------------------------------------------------------
Command: setad Result: Success
----------------------------------------------------------------------
Set Active directory configuration successfully.
----------------------------------------------------------------------
Output Descriptions
None.
Syntax
Parameters
Usage Guidelines
Examples
Example 1
---------------------------------------------------------
Command: getldap Result: Success
---------------------------------------------------------
Name : LDAP
LDAPAuthenticationEnable : True
BindDN : cn=manager
Password : null
CommonNameType : FQDN
EncryptionType : NoEncryption
Port : 389
SearchBase : ou=login
ServerAddress : www.testldap.com
UserLoginAttribute : cn
[LDAPRoleGroups]
GroupDomain : cn=login
GroupLoginInterface : ['KVM', 'VMedia']
GroupName : ldap1
GroupRole : Administrator
MemberId : 0
GroupDomain : cn=domain
GroupLoginInterface : ['KVM', 'VMedia']
GroupName : ldap2
GroupRole : Operator
MemberId : 1
GroupDomain : cn=com
GroupLoginInterface : []
GroupName : ldap3
GroupRole : User
MemberId : 2
GroupDomain :
GroupLoginInterface : []
GroupName :
GroupRole : null
MemberId : 3
GroupDomain :
GroupLoginInterface : []
GroupName :
GroupRole : null
MemberId : 4
----------------------------------------------------------------------
Example 2
To query information about the specified role group, run the getldap -RI 0 command.
Returned result:
---------------------------------------------------------
Command: getldap Result: Success
---------------------------------------------------------
GroupDomain : cn=login
GroupLoginInterface : ['KVM', 'VMedia']
GroupName : ldap1
GroupRole : Administrator
MemberId : 0
----------------------------------------------------------------------
Output Descriptions
Syntax
Parameters
Usage Guidelines
Examples
Run the setldap -LE True -PW test123 -SA 10.10.10.11 -PN 12001 -ET SSL -BD cn=
manager,ou=login,dc=domain,dc=com -SB ou=login,dc=domain,dc=com -UL cn
command.
Returned result:
----------------------------------------------------------------------
Command: setldap Result: Success
----------------------------------------------------------------------
Set LDAP configuration successfully.
----------------------------------------------------------------------
Output Descriptions
None.
Syntax
Parameters
Usage Guidelines
Examples
Example 1
To query information about all upgradeable firmware, run the getfw command.
Returned result:
---------------------------------------------------------
Command: getfw Result: Success
---------------------------------------------------------
[Firmwares]
Name : ActiveBMC
SoftwareId : ActiveBMC
Version : 04.25.01.20
Updateable : True
Health : OK
State : Enabled
Name : BackupBMC
SoftwareId : BackupBMC
Version : 04.23.02.00
Updateable : True
Health : OK
State : Enabled
Name : ActiveBIOS
SoftwareId : ActiveBIOS
Version : 31.24.03.00
Updateable : True
Health : OK
State : Enabled
Name : BackupBIOS
SoftwareId : BackupBIOS
Version : 31.24.04.00
Updateable : True
Health : OK
State : Enabled
Name : ActiveBOOT
SoftwareId : ActiveBOOT
Version : 04.22.02.07
Updateable : True
Health : OK
State : Enabled
Name : EPLD
SoftwareId : EPLD
Version : 00.00.00.0106
Updateable : True
Health : OK
State : Enabled
Name : MainBoardFRU
SoftwareId : MainBoardFRU
Version : 01.03.0002
Updateable : True
Health : OK
State : Enabled
Name : SubCardFRU9
SoftwareId : SubCardFRU9
Version : 01.03.0001
Updateable : True
Health : OK
State : Enabled
Name : ChassisPsu1
SoftwareId : ChassisPsu1
Version : DC:1.03 PFC:1.01
Updateable : False
Health : OK
State : Enabled
Name : ChassisPsu2
SoftwareId : ChassisPsu2
Version : DC:1.03 PFC:1.01
Updateable : False
Health : OK
State : Enabled
--------------------------------------------------------
Example 2
To query information about a specific upgradeable firmware, run the getfw -FW ActiveBMC
command.
Returned result:
---------------------------------------------------------
Command: getfw Result: Success
---------------------------------------------------------
Name : ActiveBMC
SoftwareId : ActiveBMC
Version : 04.24.05.10
Updateable : True
Health : OK
State : Enabled
---------------------------------------------------------
Output Descriptions
BDF
- Bus/Device/Function
BMC
CLI
CPU
DNS
FC
- Fiber Channel
FPGA
ID
- Identification
IP
- Internet Protocol
IPv6
LDAP
LLDP
NTP
SNMP
SSDP
TCP
UDP
UI
- User Interface
VNC