No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FusionServer Pro E9000 Server iBMC (Earlier Than V250) User Guide 31

This document describes the underlying management software Intelligent Baseboard Management Controller (iBMC) of the servers.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
iBMC Commands

iBMC Commands

Querying iBMC IP Information (ipinfo)

Function

The ipinfo command is used to query the IP address of the iBMC management network port.

Format

ipmcget -d ipinfo

Parameters

None

Usage Guidelines

Switch modules do not support this command.

Example

# Query the iBMC IP address.

iBMC:/->ipmcget -d ipinfo
EthGroup ID           :  1
Net Mode              :  Manual
Net Type              :  Dedicated
IPv4 Information      :
IP Mode               :  static
IP Address            :  192.168.2.100
Subnet Mask           :  255.255.255.0
Default Gateway       :  192.168.2.100
MAC Address           :  00:18:e1:c5:d8:66
IPv6 Information      :
IPv6 Mode             :  static
IPv6 Address          :
Default Gateway IPv6  :
Link-Local Address    :  fe80::220:19ff:fe55:188/64
VLAN Information      :
VLAN State            :  disabled

EthGroup ID           :  2
Net Mode              :  Manual
Net Type              :  Dedicated
IPv4 Information      :
IP Mode               :  static
IP Address            :  172.31.1.139
Subnet Mask           :  255.255.0.0
Default Gateway       :
MAC Address           :  00:18:e1:c5:d8:66
IPv6 Information      :
IPv6 Mode             :  static
IPv6 Address          :
Default Gateway IPv6  :
Link-Local Address    :  fe80::220:19ff:fe55:188/64
VLAN Information      :
VLAN State            :  enabled
VLAN ID               :  4093
NOTE:

The 172.31.1.*/24 network segment is reserved for the server internal communication network ports, for example, port 2 in the command output.

Setting iBMC IPv4 Address (ipaddr)

Function

The ipaddr command is used to set the IPv4 address, subnet mask, and the gateway address for the iBMC.

Format

ipmcset -d ipaddr -v <ipaddr> <mask> [gateway]

Parameters

Parameter Description Value
ipaddr Indicates the IPv4 address to be set for the iBMC.

An IPv4 address in the xxx.xxx.xxx.xxx. format.

mask Indicates the subnet mask to be set for the iBMC.

An IPv4 address in the xxx.xxx.xxx.xxx. format.

gateway Indicates the gateway address to be set for the iBMC.

An IPv4 address in the xxx.xxx.xxx.xxx. format.

Usage Guidelines

Switch modules do not support this command.

The new IP address takes effect immediately.

The 172.31.1.*/24 network segment is reserved for the server internal communication network ports. Do not assign addresses in this network segment to iBMC management network ports.

Example

# Set the iBMC IP address to 192.168.0.25, subnet mask to 255.255.255.0, and gateway to 192.168.0.25.

iBMC:/->ipmcset -d ipaddr -v 192.168.0.25 255.255.255.0 192.168.0.25
Set IP address successfully.
Set MASK address successfully.
Set GateWay successfully.

# Query the iBMC IP address.

iBMC:/->ipmcget -d ipinfo
EthGroup ID           :  1
Net Mode              :  Manual
Net Type              :  Dedicated
IPv4 Information      :
IP Mode               :  static
IP Address            :  192.168.0.25
Subnet Mask           :  255.255.255.0
Default Gateway       :  192.168.0.25
MAC Address           :  00:18:e1:c5:d8:66
IPv6 Information      :
IPv6 Mode             :  dhcp
IPv6 Address          :
Default Gateway IPv6  :
Link-Local Address    :  fe80::220:19ff:fe55:188/64
VLAN Information      :
VLAN State            :  disabled

EthGroup ID           :  2
Net Mode              :  Manual
Net Type              :  Dedicated
IPv4 Information      :
IP Mode               :  static
IP Address            :  172.31.1.139
Subnet Mask           :  255.255.0.0
Default Gateway       :
MAC Address           :  00:20:19:55:01:88
IPv6 Information      :
IPv6 Mode             :  static
IPv6 Address          :
Default Gateway IPv6  :
Link-Local Address    :  fe80::220:19ff:fe55:188/64
VLAN Information      :
VLAN State            :  enabled
VLAN ID               :  4093

Setting the IPv4 Mode of the iBMC (ipmode)

Function

The ipmode command is used to specify how the iBMC IPv4 address is allocated.

Format

ipmcset -d ipmode -v <dhcp | static>

Parameters

Parameter Description Value
dhcp The DHCP server dynamically allocates an IP address to the iBMC.
static The iBMC uses a static IP address.

Usage Guidelines

Switch modules do not support this command.

After the IPv4 mode is changed, the new configuration takes effect immediately.

The 172.31.1.*/24 network segment is reserved for the server internal communication network ports. If the automatically assigned iBMC IP address conflicts with this reserved network segment, the iBMC management network port will be unavailable. If this occurs, run the smmset -l shelf -d subnet -v subnetaddress maskaddress command provided by the management module to change the network segment reserved for internal communication. For details, see the user guide of the management module.

Example

# Enable the iBMC to use an IPv4 address dynamically allocated by the DHCP server.

iBMC:/->ipmcset -d ipmode -v dhcp
Set dhcp mode successfully.

# Query the iBMC IP address.

iBMC:/->ipmcget -d ipinfo
EthGroup ID           :  1
Net Mode              :  Manual
Net Type              :  Dedicated
IPv4 Information      :
IP Mode               :  dhcp
IP Address            :  192.168.0.12
Subnet Mask           :  255.255.0.0
Default Gateway       :  192.168.0.25
MAC Address           :  00:18:e1:c5:d8:66
IPv6 Information      :
IPv6 Mode             :  dhcp
IPv6 Address          :
Default Gateway IPv6  :
Link-Local Address    :  fe80::220:19ff:fe55:188/64
VLAN Information      :
VLAN State            :  disabled

EthGroup ID           :  2
Net Mode              :  Manual
Net Type              :  Dedicated
IPv4 Information      :
IP Mode               :  static
IP Address            :  172.31.1.139
Subnet Mask           :  255.255.0.0
Default Gateway       :
MAC Address           :  00:20:19:55:01:88
IPv6 Information      :
IPv6 Mode             :  static
IPv6 Address          :
Default Gateway IPv6  :
Link-Local Address    :  fe80::220:19ff:fe55:188/64
VLAN Information      :
VLAN State            :  enabled
VLAN ID               :  4093
NOTE:

The iBMC IP address is 192.168.0.12.

Setting the IPv4 Gateway Address of the iBMC (gateway)

Function

The gateway command is used to set the IPv4 gateway address of the iBMC.

Format

ipmcset -d gateway -v <gateway>

Parameters

Parameter

Description

Value

gateway Indicates the IPv4 gateway address of the iBMC. An IPv4 in the xxx.xxx.xxx.xxx format.

Usage Guidelines

Switch modules do not support this command.

After the gateway address is changed, the new gateway address takes effect immediately.

Example

# Set the gateway address of the iBMC to 192.168.0.1.

iBMC:/->ipmcset -d gateway -v 192.168.0.1
Set gateway successfully.

# Query the new gateway address of the iBMC.

iBMC:/->ipmcget -d ipinfo
EthGroup ID           :  1
Net Mode              :  Manual
Net Type              :  Dedicated
IPv4 Information      :
IP Mode               :  static
IP Address            :  192.168.0.25
Subnet Mask           :  255.255.255.0
Default Gateway       :  192.168.0.1
MAC Address           :  00:18:e1:c5:d8:66
IPv6 Information      :
IPv6 Mode             :  dhcp
IPv6 Address          :
Default Gateway IPv6  :
Link-Local Address    :  fe80::220:19ff:fe55:188/64
VLAN Information      :
VLAN State            :  disabled

EthGroup ID           :  2
Net Mode              :  Manual
Net Type              :  Dedicated
IPv4 Information      :
IP Mode               :  static
IP Address            :  172.31.1.139
Subnet Mask           :  255.255.0.0
Default Gateway       :
MAC Address           :  00:20:19:55:01:88
IPv6 Information      :
IPv6 Mode             :  static
IPv6 Address          :
Default Gateway IPv6  :
Link-Local Address    :  fe80::220:19ff:fe55:188/64
VLAN Information      :
VLAN State            :  enabled
VLAN ID               :  4093

Setting iBMC IPv6 Address (ipaddr6)

Function

The ipaddr6 command is used to set the IPv6 address, prefix length, and gateway address of the iBMC.

Format

ipmcset -d ipaddr6 -v <ipaddr6/prefixlen> [gateway6]

Parameters

Parameter Description Value
ipaddr6 Indicates the IPv6 address to be set for the iBMC.

An IP address that is 128 bits in length consisting of eight 16-bit fields: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx.

However, most IPv6 addresses do not occupy all 128 bits and can be abbreviated. In addition, the two-colon (::) notation can be used to represent contiguous 16-bit fields of zeros, and leading zeroes in a field can be omitted.

For example, the IPv6 address 2001:0db8:3c4d:0015:0000:0000:1a2f:1a2b can be abbreviated as 2001:db8:3c4d:15::1a2f:1a2b.

prefixlen Indicates the prefix length to be set for the iBMC. 0 to 128
gateway6 Indicates the IPv6 gateway address to be set for the iBMC.

An IP address that is 128 bits in length consisting of eight 16-bit fields: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx.

However, most IPv6 addresses do not occupy all 128 bits and can be abbreviated. In addition, the two-colon (::) notation can be used to represent contiguous 16-bit fields of zeros, and leading zeroes in a field can be omitted.

For example, the IPv6 address 2001:0db8:3c4d:0015:0000:0000:1a2f:1a20 can be abbreviated as 2001:db8:3c4d:15::1a2f:1a20.

Usage Guidelines

Switch modules do not support this command.

After an IPv6 address is changed, the new IP address takes effect immediately.

In addition to the IPv6 address, Link-Local Address can be used to access the iBMC. You can run the ipmcget command to obtain Link-Local Address.

Example

# Set the IPv6 address of the iBMC to 2011::6516, prefix length to 64, and IPv6 gateway to 2011:1.

iBMC:/->ipmcset -d ipaddr6 -v 2011::6516/64 2011:1
Set IPV6 address successfully.
Set IPV6 prefix successfully.
Set IPv6 gateway6 successfully.

# Query the IPv6 information about the iBMC.

iBMC:/->ipmcget -d ipinfo
EthGroup ID           :  1
Net Mode              :  Manual
Net Type              :  Dedicated
IPv4 Information      :
IP Mode               :  static
IP Address            :  192.168.0.25
Subnet Mask           :  255.255.0.0
Default Gateway       :  192.168.0.1
MAC Address           :  00:18:e1:c5:d8:66
IPv6 Information      :
IPv6 Mode             :  static
IPv6 Address          :  2011::6516
Default Gateway IPv6  :  2011::1
Link-Local Address    :  fe80::220:19ff:fe55:188/64
VLAN Information      :
VLAN State            :  disabled

EthGroup ID           :  2
Net Mode              :  Manual
Net Type              :  Dedicated
IPv4 Information      :
IP Mode               :  static
IP Address            :  172.31.1.139
Subnet Mask           :  255.255.0.0
Default Gateway       :
MAC Address           :  00:20:19:55:01:88
IPv6 Information      :
IPv6 Mode             :  static
IPv6 Address          :
Default Gateway IPv6  :
Link-Local Address    :  fe80::220:19ff:fe55:188/64
VLAN Information      :
VLAN State            :  enabled
VLAN ID               :  4093

Setting the IPv6 Mode of the iBMC (ipmode6)

Function

The ipmode6 command is used to specify how the iBMC IPv6 address is allocated.

Format

ipmcset -d ipmode6 -v <dhcp | static>

Parameters

Parameter Description Value
dhcp The DHCP server dynamically allocates an IP address to the iBMC. -
static The iBMC uses a static IP address. -

Usage Guidelines

Switch modules do not support this command.

After the IPv6 mode is changed, the new configuration takes effect immediately.

Example

# Enable the iBMC to use an IPv6 address dynamically allocated by the DHCP server.

iBMC:/->ipmcset -d ipmode6 -v dhcp
Set dhcp mode successfully.

# Query the iBMC IP address.

iBMC:/->ipmcget -d ipinfo
EthGroup ID           :  1
Net Mode              :  Manual
Net Type              :  Dedicated
IPv4 Information      :
IP Mode               :  static
IP Address            :  192.168.0.25
Subnet Mask           :  255.255.0.0
Default Gateway       :  192.168.0.1
MAC Address           :  00:18:e1:c5:d8:66
IPv6 Information      :
IPv6 Mode             :  dhcp
IPv6 Address          :
Default Gateway IPv6  :
Link-Local Address    :  fe80::220:19ff:fe55:188/64
VLAN Information      :
VLAN State            :  disabled

EthGroup ID           :  2
Net Mode              :  Manual
Net Type              :  Dedicated
IPv4 Information      :
IP Mode               :  static
IP Address            :  172.31.1.139
Subnet Mask           :  255.255.0.0
Default Gateway       :
MAC Address           :  00:20:19:55:01:88
IPv6 Information      :
IPv6 Mode             :  static
IPv6 Address          :
Default Gateway IPv6  :
Link-Local Address    :  fe80::220:19ff:fe55:188/64
VLAN Information      :
VLAN State            :  enabled
VLAN ID               :  4093

Setting the IPv6 Gateway Address of the iBMC Management Network Interface (gateway6)

Function

The gateway6 command is used to set the IPv6 gateway address of the iBMC management network port.

Format

ipmcset -d gateway6 -v <gateway6>

Parameters

Parameter

Description

Value

gateway6 Indicates the IPv6 gateway address of the iBMC management network port.

An IP address that is 128 bits in length consisting of eight 16-bit fields: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx.

However, most IPv6 addresses do not occupy all 128 bits and can be abbreviated. In addition, the two-colon (::) notation can be used to represent contiguous 16-bit fields of zeros, and leading zeroes in a field can be omitted.

For example, the IPv6 address 2001:0db8:3c4d:0015:0000:0000:1a2f:1a2b can be abbreviated as 2001:db8:3c4d:15::1a2f:1a2b.

Usage Guidelines

Switch modules do not support this command.

After the gateway address is changed, the new gateway address takes effect immediately.

Example

# Set the IPv6 gateway address of the iBMC to 2001::1.

iBMC:/->ipmcset -d gateway6 -v 2001::1
Set gateway6 successfully.

# Query the new gateway address of the iBMC.

iBMC:/->ipmcget -d ipinfo
EthGroup ID           :  1
Net Mode              :  Manual
Net Type              :  Dedicated
IPv4 Information      :
IP Mode               :  static
IP Address            :  192.168.0.25
Subnet Mask           :  255.255.0.0
Default Gateway       :  192.168.0.1
MAC Address           :  00:18:e1:c5:d8:66
IPv6 Information      :
IPv6 Mode             :  static
IPv6 Address          :  2001::65
Default Gateway IPv6  :  2001::1
Link-Local Address    :  fe80::220:19ff:fe55:188/64
VLAN Information      :
VLAN State            :  disabled

EthGroup ID           :  2
Net Mode              :  Manual
Net Type              :  Dedicated
IPv4 Information      :
IP Mode               :  static
IP Address            :  172.31.1.139
Subnet Mask           :  255.255.0.0
Default Gateway       :
MAC Address           :  00:20:19:55:01:88
IPv6 Information      :
IPv6 Mode             :  static
IPv6 Address          :
Default Gateway IPv6  :
Link-Local Address    :  fe80::220:19ff:fe55:188/64
VLAN Information      :
VLAN State            :  enabled
VLAN ID               :  4093

Querying and Redirecting the Serial Port (serialdir)

Function

The serialdir command is used to query and set serial port redirection.

Format

ipmcget -d serialdir

ipmcset -d serialdir -v <option>

Parameters

Parameter Description Value
<option> Indicates the serial port to be used.
  • 0: redirects the serial port on the server panel to the system serial port.
  • 1: redirects the serial port on the server panel to the iBMC serial port.
  • 2: redirects the SOL port to the system serial port.
  • 3: redirects the SOL port to the iBMC serial port.

The value range of this parameter varies with the server model. Before setting the serial port, run the ipmcget -d serialdir command to query the value range of this parameter.

Usage Guidelines

  • The redirection setting of the SOL port takes precedence over the setting of the serial port on the server panel. If you redirect the SOL port to the system or iBMC serial port that is currently redirected from the serial port on the server panel, the serial port on the server panel will become unavailable temporarily. The serial port on the server panel will restore its original setting only after the SOL port is disconnected.
  • If the serial port (serial port on the panel or SOL serial port) is set as the system serial port, you can press Del during the OS startup process to enter the BIOS Setup screen.

Example

# Redirect the serial port on the server panel to the iBMC serial port.

iBMC:/->ipmcset -d serialdir -v 1
Set serial port direction successfully.

# Query serial port redirection information.

iBMC:/->ipmcget -d serialdir
Currently connected serial direction : 
Num           Source                  Destination         
1             PANEL COM               BMC COM   

Restarting the iBMC (reset)

Function

The reset command is used to restart the iBMC system.

Format

ipmcset -d reset

Parameters

None

Usage Guidelines

None

Example

# Restart the iBMC system.

iBMC:/->ipmcset -d reset
This operation will reboot iBMC system. Continue? [Y/N]:y
Resetting...

Upgrading the Firmware (upgrade)

Function

The upgrade command is used to upgrade the server firmware, which includes the iBMC, BIOS, SD card firmware, and complex programmable logic device (CPLD).

Format

ipmcset -d upgrade -v <filepath>

Parameters

Parameter Description Value
filepath

Specifies the absolute path of the upgrade file.

NOTE:
Only the xxx.hpm file is supported.
Example value: /tmp/image.hpm.

Usage Guidelines

If the iBMC version is earlier than V256, run the ipmcset -d reset command to restart the iBMC before you use this command to upgrade the firmware (iBMC/CPLD/BIOS).

Before running this command, use a file transfer tool that supports SFTP, for example WinSCP, to transfer the upgrade file to the specified directory (for example /tmp) of the iBMC file system.

After the iBMC or SD card controller upgrade is complete, the iBMC restarts automatically for the upgrade to take effect.

Example

# Upgrade the firmware.

iBMC:/->ipmcset -d upgrade -v /tmp/image.hpm
Please make sure the iBMC is working while upgrading!
Updating...
100%
Update successfully.

Upgrading the PCIe Switch2 Chip Firmware (pcieswitch2upgrade)

Function

The pcieswitch2upgrade command is used to upgrade the PCIe switch2 chip of the CH220 V3 compute node.

Format

ipmcset -d pcieswitch2upgrade -v <filepath>

Parameters

Parameter Description Value
filepath Specifies the absolute path of the upgrade file. Example value: /tmp/Tecal_CH220_V3–SW2FW-V009.bin

Usage Guidelines

Before running this command, use a file transfer tool that supports SFTP, for example WinSCP, to transfer the upgrade file to the specified directory (for example /tmp) of the iBMC file system.

Example

# Upgrade the PCIe Switch2 chip firmware.

iBMC:/->ipmcset -d pcieswitch2upgrade -v /tmp/Tecal_CH220_V3–SW2FW-V009.bin
in
Update pcie switch2 configuration file successfully.

Capturing the Screen (printscreen)

Function

The printscreen command is used to capture a screenshot of the server screen.

Format

ipmcset -d printscreen [-v wakeup]

Parameters

Parameter Description Value
wakeup Wakes up the system from sleep mode. -

Usage Guidelines

Switch modules do not support this command.

To view the screenshot, use a file transfer tool that supports SFTP, for example WinSCP, to transfer the manualscreen.jpeg from the /tmp/web directory to the local PC that supports the .jpeg files.

NOTE:

Only the last screenshot is saved if you run the printscreen command multiple times.

Example

# Capture a screenshot of the server screen.

iBMC:/->ipmcset -d printscreen
Download print screen image to /tmp/manualscreen.jpeg successfully.

Rolling Back the iBMC Software (rollback)

Function

The rollback command is used to switch the iBMC firmware from the image file in the primary partition to the image file in the secondary partition.

Format

ipmcset -d rollback

Parameters

None

Usage Guidelines

None

Example

# Roll back the iBMC software.

iBMC:/->ipmcset -d rollback
WARNING: The operation may have many adverse effects
Do you want to continue?[Y/N]:y
Set rollback successfully, system will reboot soon!

Querying the Result of Rolling Back the iBMC Software (rollbackstatus)

Function

The rollbackstatus command is used to query the result of rolling back the iBMC software.

Format

ipmcget -d rollbackstatus

Parameters

None

Usage Guidelines

None

Example

# Query the result of rolling back the iBMC software.

iBMC:/->ipmcget -d rollbackstatus
Last rollback success!

Setting Service State (service -d state)

Function

The service -d state command is used to set service state for the iBMC.

Format

ipmcset -t service -d state -v <option> <enabled | disabled>

Parameters

Parameter

Description

Value

option Indicates the service type.
  • FTP
  • SSH
  • NAT
  • SNMP
  • KVM
  • VMM
  • Video
  • HTTP
  • HTTPS
  • RMCP
  • RMCP+
  • SSDP
enabled

Enables a service

-
disabled

Disables a service

-

Usage Guidelines

The value of option is not case-sensitive.

Enabling the HTTP service may pose security risks.

Example

# Enable the HTTP service.

iBMC:/->ipmcset -t service -d state -v http enabled
Set http service state(enabled) successfully.

Setting the Service Port Number (service -d port)

Function

The service -d port command is used to set the port number for a service.

Format

ipmcset -t service -d port -v <option> <port1value> [port2value]

Parameters

Parameter

Description

Value

option

Indicates the service type.

  • FTP
  • SSH
  • NAT
  • SNMP
  • KVM
  • VMM
  • Video
  • HTTP
  • HTTPS
  • RMCP
port1value

Indicates the port number.

1 to 65535

port2value

Indicates the port number of the RMCP service.

1 to 65535

Usage Guidelines

If the web server (HTTP) or (HTTPS) port number is set to 65535, Google Chrome cannot set up a session over this port.

Example

# Set the HTTPS port to 443.

iBMC:/->ipmcset -t service -d port -v https 443
Set https service port to 443 successfully.

Querying Service Information (service -d list)

Function

The service -d list command is used to query information about the services.

Format

ipmcget -t service -d list

Parameters

None

Usage Guidelines

None

Example

# Query service information.

iBMC:/->ipmcget -t service -d list
service name   |  state         |  port
FTP            |  Disabled      |  100
SSH            |  Enabled       |  22
NAT             | Enabled         | 30022
SNMP           |  Enabled       |  168
KVM            |  Disabled      |  2001
VMM            |  Disabled      |  8001
Video          |  Enabled       |  2200
HTTP           |  Enabled       |  80
HTTPS          |  Enabled       |  443
RMCP           |  Disabled      |  1004,184
RMCP+          |  Enabled       |  1004,184
SSDP           |  Enabled       |  1004,184

Setting Login Security Banner State (securitybanner -d state)

Function

The securitybanner -d state is used to control whether the security banner is displayed on the iBMC login page.

Format

ipmcset -t securitybanner -d state -v <enabled | disabled>

Parameters

Parameter Description Value
enabled Allows the security banner to be displayed on the login page.
disabled Prevents the security banner from being displayed on the login page.

Usage Guidelines

None

Example

# Enable the security banner to be displayed on the iBMC login page.

iBMC:/->ipmcset -t securitybanner -d state -v enabled
Enable login security banner state successfully.

Customizing the Login Security Banner (securitybanner -d content)

Function

The securitybanner -d content command is used to customize the security banner content displayed on the iBMC login page.

Format

ipmcset -t securitybanner -d content -v <default | "option">

Parameters

Parameter Description Value
default Uses the default security banner. -
option Customizes the security banner. Maximum length: 1600 characters

Usage Guidelines

None

Example

# Use the default security banner on the iBMC login page.

iBMC:/-> ipmcset -t securitybanner -d content -v default
Set login security banner content successfully.

Querying the Login Security Banner (securitybanner -d info)

Function

The securitybanner -d info command is used to query the security banner displayed on the iBMC login page.

Format

ipmcget -t securitybanner -d info

Parameters

None

Usage Guidelines

None

Example

# Query the login security banner.

iBMC:/-> ipmcget -t securitybanner -d info
Login security banner information state: enabled.

Login security banner information:
WARNING! This system is PRIVATE and PROPRIETARY and may only be accessed by authorized users. Unauthorized use of the system is prohibited. The owner, or its agents, may monitor any activity or communication on the system. The owner, or its agents, may retrieve any information stored within the system. By accessing and using the system, you are consenting to such monitoring and information retrieval for law enforcement and other purposes.

Importing an SSL Certificate (certificate -d import)

Function

The certificate -d import command is used to import a Secure Sockets Layer (SSL) certificate to the iBMC.

Format

ipmcset -t certificate -d import -v <filepath | file_URL> <type> [passphrase]

Parameters

Parameter

Description

Value

filepath

Specifies the directory to which the SSL certificate is to be imported.

NOTE:
The certificate must be in the *.pfx or *.p12 format and cannot exceed 1 MB.

Absolute path of the certificate on the iBMC.

Example value: /tmp/test.pfx

file_URL

Specifies the URL of the SSL certificate to be imported.

Format:

protocol://username:password@IP:[port]/directory/filename

Where:

  • protocol must be https, sftp, cifs, or scp.
  • username indicates the user name for logging in to the target server.
  • password indicates the password for logging in to the target server.
  • IP:[port] indicates the IP address and port number of the target server.
  • directory/filename indicates the absolute path of the SSL certificate on the target server.

Example value: https://root:Huawei12#$@10.10.10.1:443/tmp/test.pfx

type

Specifies the type of the SSL certificate.

It has a fixed value of 1.
passphrase

Specifies the password for the SSL certificate.

This password can be empty.

Usage Guidelines

Before running this command, use a file transfer tool that supports SFTP, for example WinSCP, to transfer the SSL certificate to the specified directory (for example /tmp) of the iBMC file system.

Example

Import the SSL certificate test-01.pfx to /tmp/ of the iBMC.

iBMC:/-> ipmcset -t certificate -d import -v /tmp/test-01.pfx 1 Huawei12#$ 
Import certificate successfully
Reset iBMC for the certificate to take effect. 

Querying SSL Certificate Information (certificate -d info)

Function

The certificate -d info command is used to query SSL certificate information.

Format

ipmcget -t certificate -d info

Parameters

None

Usage Guidelines

None

Example

# Query SSL certificate information.

iBMC:/-> ipmcget -t certificate -d info 
SSL Certificate Information: 
Issued     To: CN=Server, OU=IT, O=Huawei, L=ShenZhen, S=GuangDong, C=CN
Issued     By: CN=Server, OU=IT, O=Huawei, L=ShenZhen, S=GuangDong, C=CN
Valid    From: Jul 25 2014 GMT
Valid      To: Jul 22 2024 GMT
Serial Number: 07

Exporting the Configuration File (config -d export)

Function

The config -d export command is used to export the iBMC and BIOS configuration.

Format

ipmcget -t config -d export -v <filepath | file_URL>

Parameters

Parameter

Description

Value

filepath

Specifies the directory to which the configuration file is to be exported.

Absolute path of the configuration file on the iBMC.

Example value: /tmp/config.xml

file_URL

Specifies the URL of the configuration file to be exported.

Format:

protocol://username:password@IP:[port]/directory/filename

Where:

  • protocol must be https, sftp, cifs, scp, or nfs.
  • username indicates the user name for logging in to the target server.
  • password indicates the password for logging in to the target server.
  • IP:[port] indicates the IP address and port number of the target server.
  • directory/filename indicates the absolute path of the configuration file on the target server.

Example value: https://root:Huawei12#$@10.10.10.1:443/tmp/config.xml

Usage Guidelines

To view the weak password dictionary, use a file transfer tool supporting SFTP (for example WinSCP) to transfer the file (for example config.xml) from /tmp/config.xml to the local PC.

Example

Export the configuration file testconfig.xml.

iBMC:/-> ipmcget -t config -d export -v /tmp/config.xml
Collecting configuration...
100%
Export configuration successfully.

Importing the Configuration File (config -d import)

Function

The config -d import command is used to import the iBMC and BIOS configuration.

Format

ipmcset -t config -d import -v <filepath | file_URL>

Parameters

Parameter

Description

Value

filepath

Specifies the directory to which the configuration file is to be imported.

Absolute path of the configuration file on the iBMC.

Example value: /tmp/config.xml

file_URL

Specifies the URL of the configuration file to be imported.

Format:

protocol://username:password@IP:[port]/directory/filename

Where:

  • protocol must be https, sftp, cifs, scp, or nfs.
  • username indicates the user name for logging in to the target server.
  • password indicates the password for logging in to the target server.
  • IP:[port] indicates the IP address and port number of the target server.
  • directory/filename indicates the absolute path of the configuration file on the target server.

Example value: https://root:Huawei12#$@10.10.10.1:443/tmp/config.xml

Usage Guidelines

Before running this command, use a file transfer tool that supports SFTP, for example WinSCP, to transfer the configuration file to the specified directory (for example /tmp) of the iBMC file system.

Example

Import the configuration file testconfig.xml.

iBMC:/-> ipmcset -t config -d import -v /tmp/testconfig.xml
Setting configuration...  
100%
Import configuration successfully. 

Mounting a File to the Virtual CD-ROM Drive (vmm -d connect)

Function

The vmm -d connect command is used to mount a file to the virtual CD-ROM drive.

Format

ipmcset -t vmm -d connect -v <file_URL>

Parameters

Parameter

Description

Value

file_URL

Specifies the source directory of the file to be mounted.

Format:

protocol://[username:password@]IP:[port]/directory/filename

Where:

  • protocol must be nfs or cifs.
  • username indicates the user name used to log in to the target server.
  • password indicates the password used to log in to the target server.
  • IP:[port] indicates the IP address and port number of the target server.
  • directory/filename indicates the absolute directory in which the file is to be stored on the target server.

For example, nfs://192.168.44.178/home/admin/nfsserver/rhel-server-6.3-x86_64-dvd.iso.

NOTE:
The file_URL can contain up to 255 characters.

Usage Guidelines

Before running this command, use a file transfer tool supporting SFTP (for example WinSCP) to transfer the file to be imported to the specified directory (for example /tmp) of the iBMC file system.

Example

# Mount rhel-server-6.3-x86_64-dvd.iso to the virtual CD-ROM drive.

iBMC:/-> ipmcset -t vmm -d connect -v nfs://192.168.44.178/home/admin/nfsserver/rhel-server-6.3-x86_64-dvd.iso

Connect virtual media...
.............
Connect virtual media successfully.

Disconnecting the Virtual CD-ROM Drive (vmm -d disconnect)

Function

The vmm -d disconnect command is used to disconnect the virtual CD-ROM drive.

Format

ipmcset -t vmm -d disconnect

Parameters

None

Usage Guidelines

None

Example

# Disconnect the virtual CD-ROM drive.

iBMC:/-> ipmcset -t vmm -d disconnect
Disconnect virtual media...
.....
Disconnect virtual media successfully.

Querying Virtual Media Information (vmm -d info)

Function

The vmm -d info command is used to query virtual media information.

Format

ipmcget -t vmm -d info

Parameters

None

Usage Guidelines

None

Example

# Query virtual media information.

iBMC:/-> ipmcget -t vmm -d info
Virtual Media Information:
Maximum Number of Virtual Media Sessions:     1
Number of Activated Sessions            :     0
Activated Sessions URL                  : 
Translation
Download
Updated: 2019-08-01

Document ID: EDOC1000058833

Views: 216264

Downloads: 1936

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next