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 X6800 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).
Syslog Commands

Syslog Commands

Querying and Setting Syslog (syslog -d state)

Function

The syslog -d state command is used to query and set the syslog feature for the iBMC.

Format

ipmcget -t syslog -d state [-v destination]

ipmcset -t syslog -d state -v [destination] <disabled | enabled>

Parameters

Parameter Description Value
destination Identifies the channel sending syslog messages.
  • Value range: 1 to 4

  • If this parameter is not specified, the command is used to set the syslog function.

disabled Disables syslog. -
enabled Enables syslog. -

Usage Guidelines

  • To set syslog for a specific channel, specify destination. The value range of destination is 1 to 4.

  • To enable or disable the syslog function, leave destination unspecified.

Example

# Disable syslog for channel 1.

iBMC:/->ipmcset -t syslog -d state -v 1 disabled
Set syslog dest1 disabled successfully.

# Query the syslog status of channel 1.

iBMC:/-> ipmcget -t syslog -d state -v 1
syslog dest1 state: disabled

Querying and Setting the Certificate Authentication Mode (syslog -d auth)

Function

The syslog -d auth is used to query and set how the syslog certificate is authenticated.

Format

ipmcget -t syslog -d auth

ipmcset -t syslog -d auth -v <option>

Parameters

Parameter Description Value
option Specifies the certificate authentication mode.
  • 1: one-way authentication, that is, only the syslog server certificate is authenticated

  • 2: mutual authentication, that is, certificates of both the syslog server and the client are authenticated.

Usage Guidelines

None

Example

# Apply mutual authentication of syslog certificates.

iBMC:/->ipmcset -t syslog -d auth -v 2
Set syslog auth type successfully.

# Query the certificate authentication mode.

iBMC:/-> ipmcget -t syslog -d auth
Syslog auth type: mutual authentication

Querying and Setting the Syslog Host Identifier (syslog -d identity)

Function

The syslog -d identity command is used to query and set the host identifier contained in the syslog messages to be sent.

Format

ipmcget -t syslog -d identity

ipmcset -t syslog -d identity -v <option>

Parameters

Parameter

Description

Value

option

Identifies the host.

  • 1: board serial number
  • 2: product asset tag
  • 3: host name

Usage Guidelines

None

Example

# Use the host name to identify the syslog host.

iBMC:/-> ipmcset -t syslog -d identity -v 3
Set syslog identity successfully.

# Query the syslog host identifier.

iBMC:/-> ipmcget -t syslog -d identity
Syslog identity: host name

Querying and Setting the Transfer Protocol (syslog -d protocol)

Function

The syslog -d protocol command is used to query and set the protocol used to send syslog messages.

Format

ipmcget -t syslog -d protocol

ipmcset -t syslog -d protocol -v <option>

Parameters

Parameter Description Value
option Specifies the protocol used.
  • 1: UDP

    UDP is a connectionless protocol that does not set up a dedicated end-to-end connection before data is transmitted.

  • 2: TCP

    TCP is a connection-oriented protocol that sets up a reliable end-to-end connection before data is transmitted.

  • 3: TLS

    TLS is a connection-oriented protocol that ensures confidentiality and integrity of the data transmitted.

Usage Guidelines

None

Example

# Use TLS to transfer syslog messages.

iBMC:/-> ipmcset -t syslog -d protocol -v 3
Set syslog protocol successfully.

# Query the protocol used to transfer syslog messages.

iBMC:/-> ipmcget -t syslog -d protocol
Syslog protocol: TLS

Querying and Setting the Log Levels (syslog -d severity)

Function

The syslog -d severity command is used to query and set the levels of the logs reported over syslog.

Format

ipmcget -t syslog -d severity

ipmcset -t syslog -d severity -v <level>

Parameters

Parameter

Description

Value

level

Specifies the levels of logs to be reported.

  • none: no alarms will be reported.
  • normal: reports alarms and event logs.
  • minor: reports minor, major, and critical alarms.
  • major: reports major and critical alarms.
  • critical: reports critical alarms.

Usage Guidelines

None.

Example

# Set the log level to critical for syslog reporting.

iBMC:/->ipmcset -t syslog -d severity -v critical
Set syslog severity successfully.

# Query the levels of logs to be sent over syslog.

iBMC:/-> ipmcget -t syslog -d severity
Syslog severity:  critical

Querying and Uploading the Syslog Server Root Certificate (syslog -d rootcertificate)

Function

The syslog -d rootcertificate command is used to upload the syslog server root certificate to the iBMC or query information about the uploaded root certificate.

The syslog server root certificate is used for the authentication performed before communication between the iBMC and the syslog server.

Format

ipmcget -t syslog -d rootcertificate

ipmcset -t syslog -d rootcertificate -v <filepath>

Parameters

Parameter

Description

Value

filepath

Specifies the absolute path of the syslog server root certificate on the iBMC.

For example, /tmp/rootcertificate.cer

Usage Guidelines

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

Example

# Upload the syslog server root certificate.

iBMC:/-> ipmcset -t syslog -d rootcertificate -v /tmp/rootcertificate.cer
Set syslog root certificate successfully.

# Query information about the syslog server root certificate.

iBMC:/-> ipmcget -t syslog -d rootcertificate
Server Root Certificate:
Issued     To: CN=SERVER, OU=IT, O=HW, L=, S=GD, C=CH
Issued     By: CN=Huawei, OU=IT, O=Huawei, L=ShenZhen, S=GuangDong, C=CN
Valid    From: Mar 24 2016 GMT
Valid      To: Mar 24 2017 GMT
Serial Number: 0b

Querying and Uploading a Client Certificate (syslog -d clientcertificate)

Function

The syslog -d clientcertificate command is used to upload the syslog client certificate to the iBMC or query information about the uploaded certificate.

Format

ipmcget -t syslog -d clientcertificate

ipmcset -t syslog -d clientcertificate -v <filepath> <password>

Parameters

Parameter

Description

Value

filepath

Specifies the absolute path of the client certificate on the iBMC.

For example, /tmp/rootcertificate.cer
password

Specifies the password used to decrypt the client certificate.

The password is automatically generated when the certificate server is used to generate a local certificate.

Usage Guidelines

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

Example

# Upload a client certificate.

iBMC:/-> ipmcset -t syslog -d client -v /tmp/clientcertificate.pfx syslogpw
Set syslog client certificate successfully.

# Query information about the client certificate.

iBMC:/-> ipmcget -t syslog -d clientcertificate
Syslog Client Certificate Information:
Issued     To: CN=Server, OU=IT, O=Huawei, L=ShenZhen, S=GuangDong, C=CN
Issued     By: CN=huangmin, OU=it3, O=huawei3, L=, S=guangdong2, C=cn
Valid    From: Feb 17 2015 GMT
Valid      To: Feb 17 2016 GMT
Serial Number: 25

Setting the Syslog Server Address (syslog -d address)

Function

The syslog -d address command is used to set the syslog server address.

Format

ipmcset -t syslog -d address -v <destN> <address>

Parameters

Parameter Description Value
destN

Identifies the channel sending syslog messages.

Value range: 1 to 4
address Specifies the syslog server address. An IPv4 or IPv6 address or a domain name.

Usage Guidelines

None

Example

# Set the syslog server address to host for channel 1.

iBMC:/-> ipmcset -t syslog -d address -v 1 host
Set syslog dest1 address successfully.

# Query syslog server addresses.

iBMC:/-> ipmcget -t syslog -d iteminfo

Item Num        | state      | port       | dest address         | log type     
1               | disabled   | 0          | host                 | operationlogs securitylogs eventlogs
2               | disabled   | 0          |                      | operationlogs securitylogs eventlogs
3               | disabled   | 0          |                      | operationlogs securitylogs eventlogs
4               | disabled   | 0          |                      | operationlogs securitylogs eventlogs

Setting the Syslog Server Port Number (syslog -d port)

Function

The syslog -d port command is used to set the syslog server port number.

Format

ipmcset -t syslog -d port -v <destN> <number>

Parameters

Parameter Description Value
destN

Identifies the channel sending syslog messages.

Value range: 1 to 4
number Specifies the syslog server port number. Value range: 1 to 65535

Usage Guidelines

None

Example

# Set the syslog server port number to 65535 for channel 1.

iBMC:/-> ipmcset -t syslog -d port -v 1 65535
Set syslog dest1 port successfully.

# Query the syslog server port numbers.

iBMC:/-> ipmcget -t syslog -d iteminfo

Item Num        | state      | port       | dest address         | log type     
1               | disabled   | 65535      | host                 | operationlogs securitylogs eventlogs
2               | disabled   | 0          |                      | operationlogs securitylogs eventlogs
3               | disabled   | 0          |                      | operationlogs securitylogs eventlogs
4               | disabled   | 0          |                      | operationlogs securitylogs eventlogs

Setting Log Types (syslog -d logtype)

Function

The syslog -d logtype command is used to set the types of logs to be reported over syslog.

Format

ipmcset -t syslog -d logtype -v <destN> <type>

Parameters

Parameter Description Value
destN

Identifies the channel sending syslog messages.

Value range: 1 to 4
type Specifies the types of logs to be reported.
  • none: No logs will be reported.
  • all: Sends all types of logs.
  • operationlogs: Sends operation logs.
  • securitylogs: Sends security logs.
  • eventlogs: Sends event logs.

Usage Guidelines

None

Example

# Send operation and event logs through channel 4.

iBMC:/-> ipmcset -t syslog -d logtype -v 4 operationlogs eventlogs
Set syslog log type successfully.

# Query the types of logs sent through channel 4.

iBMC:/-> ipmcget -t syslog -d iteminfo

Item Num        | state      | port       | dest address         | log type
1               | disabled   | 65535      | host                 | operationlogs securitylogs eventlogs
2               | disabled   | 0          |                      | operationlogs securitylogs eventlogs
3               | disabled   | 0          |                      | operationlogs securitylogs eventlogs
4               | disabled   | 0          |                      | operationlogs eventlogs

Testing Reachability of the Syslog Server (syslog -d test)

Function

The syslog -d test command is used to test whether the syslog server is reachable.

Format

ipmcset -t syslog -d test -v <destN>

Parameters

Parameter Description Value
destN

Identifies the channel sending syslog messages.

1 to 4

Usage Guidelines

None

Example

# Test whether the syslog server for channel 1 is reachable.

iBMC:/-> ipmcset -t syslog -d test -v 1
Test syslog dest1 successfully.

Querying Information of Syslog Channels (syslog -d iteminfo)

Function

The syslog -d iteminfo command is used to query information about the four syslog channels.

Format

ipmcget -t syslog -d iteminfo

Parameters

None

Usage Guidelines

None

Example

# Query information about the syslog channels configured for the iBMC.

iBMC:/-> ipmcget -t syslog -d iteminfo

Item Num        | state      | port       | dest address         | log type     
1               | disabled   | 65535      | host                 | operationlogs securitylogs eventlogs
2               | disabled   | 0          |                      | operationlogs securitylogs eventlogs
3               | disabled   | 0          |                      | operationlogs securitylogs eventlogs
4               | disabled   | 0          |                      | operationlogs eventlogs
Translation
Download
Updated: 2019-08-01

Document ID: EDOC1000066341

Views: 180283

Downloads: 1092

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