我有一块 MSI MS-S0121 主板,带有 AST2150 BMC 控制器和 IPMI 2.0。
我使用ipmiconsole
freeipmi 和 LAN 上串行 (SOL) 来访问 BIOS。默认波特率 19200 相当慢,所以我想将其设置为 115200 波特率。但似乎我只能将其设置为已经存在的 19200 值:
[marvin@t5600 ~]$ ipmi-config -h 172.16.0.158 --username=admin --password=admin --commit -e SOL_Conf:Volatile_Bit_Rate=19200
[marvin@t5600 ~]$ ipmi-config -h 172.16.0.158 --username=admin --password=admin --commit -e SOL_Conf:Volatile_Bit_Rate=115200
ERROR: Failed to commit `SOL_Conf:Volatile_Bit_Rate'
[marvin@t5600 ~]$ ipmi-config -h 172.16.0.158 --username=admin --password=admin --checkout > bmc.conf
#
# Section UserX Comments
#
# In the following User sections, users should configure usernames, passwords,
# and access rights for IPMI over LAN communication. Usernames can be set to any
# string with the exception of User1, which is a fixed to the "anonymous"
# username in IPMI.
#
# For IPMI over LAN access for a username, set "Enable_User" to "Yes",
# "Lan_Enable_IPMI_Msgs" to "Yes", and "Lan_Privilege_Limit" to a privilege
# level. The privilege level is used to limit various IPMI operations for
# individual usernames. It is recommended that atleast one username be created
# with a privilege limit "Administrator", so all system functions are available
# to atleast one username via IPMI over LAN. For security reasons, we recommend
# not enabling the "anonymous" User1. For most users, "Lan_Session_Limit" can be
# set to 0 (or ignored) to support an unlimited number of simultaneous IPMI over
# LAN sessions.
#
# If your system supports IPMI 2.0 and Serial-over-LAN (SOL),
# a"SOL_Payload_Access" field may be listed below. Set the "SOL_Payload_Access"
# field to "Yes" or "No" to enable or disable this username's ability to access
# SOL.
#
# Please do not forget to uncomment those fields, such as "Password", that may
# be commented out during the checkout.
#
# Some motherboards may require a "Username" to be configured prior to other
# fields being read/written. If this is the case, those fields will be set to
# <username-not-set-yet>.
#
Section User1
## Give Username
## Username NULL
## Give password or blank to clear. MAX 16 chars (20 chars if IPMI 2.0 supported).
## Password
## Possible values: Yes/No or blank to not set
## Enable_User
## Possible values: Yes/No
Lan_Enable_IPMI_Msgs Yes
## Possible values: Yes/No
Lan_Enable_Link_Auth Yes
## Possible values: Yes/No
Lan_Enable_Restricted_to_Callback No
## Possible values: Callback/User/Operator/Administrator/OEM_Proprietary/No_Access
Lan_Privilege_Limit Administrator
## Possible values: 0-17, 0 is unlimited; May be reset to 0 if not specified
## Lan_Session_Limit
## Possible values: Yes/No
SOL_Payload_Access Yes
EndSection
Section User2
## Give Username
Username Operator
## Give password or blank to clear. MAX 16 chars (20 chars if IPMI 2.0 supported).
## Password
## Possible values: Yes/No or blank to not set
## Enable_User
## Possible values: Yes/No
Lan_Enable_IPMI_Msgs Yes
## Possible values: Yes/No
Lan_Enable_Link_Auth Yes
## Possible values: Yes/No
Lan_Enable_Restricted_to_Callback No
## Possible values: Callback/User/Operator/Administrator/OEM_Proprietary/No_Access
Lan_Privilege_Limit Operator
## Possible values: 0-17, 0 is unlimited; May be reset to 0 if not specified
## Lan_Session_Limit
## Possible values: Yes/No
SOL_Payload_Access Yes
EndSection
Section User3
## Give Username
Username admin
## Give password or blank to clear. MAX 16 chars (20 chars if IPMI 2.0 supported).
## Password
## Possible values: Yes/No or blank to not set
## Enable_User
## Possible values: Yes/No
Lan_Enable_IPMI_Msgs Yes
## Possible values: Yes/No
Lan_Enable_Link_Auth Yes
## Possible values: Yes/No
Lan_Enable_Restricted_to_Callback No
## Possible values: Callback/User/Operator/Administrator/OEM_Proprietary/No_Access
Lan_Privilege_Limit Administrator
## Possible values: 0-17, 0 is unlimited; May be reset to 0 if not specified
## Lan_Session_Limit
## Possible values: Yes/No
SOL_Payload_Access Yes
EndSection
Section User4
## Give Username
Username OEM
## Give password or blank to clear. MAX 16 chars (20 chars if IPMI 2.0 supported).
## Password
## Possible values: Yes/No or blank to not set
## Enable_User
## Possible values: Yes/No
Lan_Enable_IPMI_Msgs Yes
## Possible values: Yes/No
Lan_Enable_Link_Auth Yes
## Possible values: Yes/No
Lan_Enable_Restricted_to_Callback No
## Possible values: Callback/User/Operator/Administrator/OEM_Proprietary/No_Access
Lan_Privilege_Limit OEM_Proprietary
## Possible values: 0-17, 0 is unlimited; May be reset to 0 if not specified
## Lan_Session_Limit
## Possible values: Yes/No
SOL_Payload_Access Yes
EndSection
#
# Section Lan_Channel Comments
#
# In the Lan_Channel section, general IPMI over LAN can be enabled for disabled.
# In the below, "Volatile" configurations are immediately configured onto the
# BMC and will have immediate effect on the system. "Non_Volatile"
# configurations are only available after the next system reset. Generally, both
# the "Volatile" and "Non_Volatile" equivalent fields should be configured
# identically.
#
# To enable IPMI over LAN, typically "Access_Mode" should be set to
# "Always_Available". "Channel_Privilege_Limit" should be set to the highest
# privilege level any username was configured with. Typically, this is set to
# "Administrator".
#
# "User_Level_Auth" and "Per_Message_Auth" are typically set to "Yes" for
# additional security.
#
Section Lan_Channel
## Possible values: Disabled/Pre_Boot_Only/Always_Available/Shared
Volatile_Access_Mode Always_Available
## Possible values: Yes/No
Volatile_Enable_User_Level_Auth Yes
## Possible values: Yes/No
Volatile_Enable_Per_Message_Auth Yes
## Possible values: Yes/No
Volatile_Enable_Pef_Alerting Yes
## Possible values: Callback/User/Operator/Administrator/OEM_Proprietary
Volatile_Channel_Privilege_Limit OEM_Proprietary
## Possible values: Disabled/Pre_Boot_Only/Always_Available/Shared
Non_Volatile_Access_Mode Always_Available
## Possible values: Yes/No
Non_Volatile_Enable_User_Level_Auth Yes
## Possible values: Yes/No
Non_Volatile_Enable_Per_Message_Auth Yes
## Possible values: Yes/No
Non_Volatile_Enable_Pef_Alerting Yes
## Possible values: Callback/User/Operator/Administrator/OEM_Proprietary
Non_Volatile_Channel_Privilege_Limit OEM_Proprietary
EndSection
#
# Section Lan_Conf Comments
#
# In the Lan_Conf section, typical networking configuration is setup. Most users
# will choose to set "Static" for the "IP_Address_Source" and set the
# appropriate "IP_Address", "MAC_Address", "Subnet_Mask", etc. for the machine.
#
Section Lan_Conf
## Possible values: Unspecified/Static/Use_DHCP/Use_BIOS/Use_Others
IP_Address_Source Static
## Give valid IP address
IP_Address 172.16.0.158
## Give valid MAC address
MAC_Address AA:AA:AA:AA:AA:AA
## Give valid Subnet Mask
Subnet_Mask 255.255.0.0
## Give valid IP address
Default_Gateway_IP_Address 0.0.0.0
## Give valid MAC address
Default_Gateway_MAC_Address 00:00:00:00:00:00
EndSection
#
# Section Lan_Conf_Auth Comments
#
# In the Lan_Conf_Auth section, allowable authentication mechanisms for IPMI 1.5
# is configured. Most users will want to set all "MD5" authentication to "Yes"
# and the rest to "No". If you have configured a NULL username and a NULL
# password, you will also want to configure some of the "None" fields to "Yes"
# to allow "None" authentication to work. Some motherboards do not allow you to
# enable OEM authentication, so you may wish to set all OEM related fields to
# "No".
#
Section Lan_Conf_Auth
## Possible values: Yes/No
Callback_Enable_Auth_Type_None Yes
## Possible values: Yes/No
Callback_Enable_Auth_Type_MD5 Yes
## Possible values: Yes/No
Callback_Enable_Auth_Type_Straight_Password Yes
## Possible values: Yes/No
User_Enable_Auth_Type_None Yes
## Possible values: Yes/No
User_Enable_Auth_Type_MD5 Yes
## Possible values: Yes/No
User_Enable_Auth_Type_Straight_Password Yes
## Possible values: Yes/No
Operator_Enable_Auth_Type_None Yes
## Possible values: Yes/No
Operator_Enable_Auth_Type_MD5 Yes
## Possible values: Yes/No
Operator_Enable_Auth_Type_Straight_Password Yes
## Possible values: Yes/No
Admin_Enable_Auth_Type_None Yes
## Possible values: Yes/No
Admin_Enable_Auth_Type_MD5 Yes
## Possible values: Yes/No
Admin_Enable_Auth_Type_Straight_Password Yes
## Possible values: Yes/No
OEM_Enable_Auth_Type_None Yes
## Possible values: Yes/No
OEM_Enable_Auth_Type_MD5 Yes
## Possible values: Yes/No
OEM_Enable_Auth_Type_Straight_Password Yes
EndSection
#
# Section Lan_Conf_Security_Keys Comments
#
# If your system supports IPMI 2.0 and Serial-over-LAN (SOL), a K_g BMC key may
# be configurable. The K_g key is an optional key that can be set for two key
# authentication in IPMI 2.0. It is optionally configured. Most users will want
# to set this to zero (or blank).
#
Section Lan_Conf_Security_Keys
## Give string or blank to clear. Max 20 bytes, prefix with 0x to enter hex
K_G 0x0000000000000000000000000000000000000000
EndSection
#
# Section Lan_Conf_User_Security Comments
#
# The following user security configuration options are optionally implemented
# by the vendor. They may not be available your system and may not be visible
# below.
#
# The following configuration supports the ability for the BMC to disable a user
# if a number of bad passwords are entered sequentially.
# "Bad_Password_Threshold" determines the number of bad passwords that must be
# entered sequentially. "Attempt_Count_Reset_Interval" determines the range of
# time the bad passwords must occur in. "User_Lockout_Interval" determines the
# time a user will be locked off if the bad password threshold is reached. If
# set to "Yes", "Enable_Event_Message_When_User_Disabled" will inform the BMC to
# log an event message when a user is disabled.
#
Section Lan_Conf_User_Security
EndSection
#
# Section Lan_Conf_Misc Comments
#
# The following miscellaneous configuration options are optionally implemented
# by the vendor. They may not be available your system and may not be visible
# below.
#
# If set to "Yes", "Enable_Gratuitous_ARPs" will inform the BMC to regularly
# send out Gratuitous ARPs to allow other machines on a network resolve the
# BMC's MAC Address. Many users will want to set this to "Yes" because it offers
# the easiest way to support BMC IP Address resolution. However, it will
# increase traffic on your network. The "Gratuitous_ARP_Interval" can be used to
# set the period a Gratuitous ARP is always sent.
#
# If set to "Yes", "Enable_ARP_Response" will inform the BMC torespond to ARP
# requests from other machines.
#
Section Lan_Conf_Misc
EndSection
#
# Section Rmcpplus_Conf_Privilege Comments
#
# If your system supports IPMI 2.0 and Serial-over-LAN (SOL),cipher suite IDs
# may be configurable below. In the Rmcpplus_Conf_Privilege section, maximum
# user privilege levels allowed for authentication under IPMI 2.0 (including
# Serial-over-LAN) are set for each supported cipher suite ID. Each cipher suite
# ID supports different sets of authentication, integrity, and encryption
# algorithms for IPMI 2.0. Typically, the highest privilege level any username
# configured should set for support under a cipher suite ID. This is typically
# "Administrator".
#
Section Rmcpplus_Conf_Privilege
## Possible values: Unused/User/Operator/Administrator/OEM_Proprietary
Maximum_Privilege_Cipher_Suite_Id_0 OEM_Proprietary
## Possible values: Unused/User/Operator/Administrator/OEM_Proprietary
Maximum_Privilege_Cipher_Suite_Id_1 OEM_Proprietary
## Possible values: Unused/User/Operator/Administrator/OEM_Proprietary
Maximum_Privilege_Cipher_Suite_Id_2 OEM_Proprietary
## Possible values: Unused/User/Operator/Administrator/OEM_Proprietary
Maximum_Privilege_Cipher_Suite_Id_3 OEM_Proprietary
EndSection
#
# Section SOL_Conf Comments
#
# If your system supports IPMI 2.0 and Serial-over-LAN (SOL), the following
# configuration options will allow SOL configuration.
#
# For most users that want to enable SOL, minimally "Enable_SOL" should be set
# to "Yes" and "SOL_Privilege_Level" should be set to the highest privilege
# level any username configured can authenticate with (typically
# "Administrator"). For security purposes, "Force_SOL_Payload_Authentication"
# and "Force_SOL_Payload_Encryption" should be set to "Yes", however forced
# authentication and/or encryption depends on the cipher suite IDs supported.
# The "Non_Volatile_Bit_Rate" and "Volatile_Bit_Rate" should both be set to the
# appropriate baud rate for your system. This is typically the same baud rate
# configured in the BIOS and/or operating system.
#
Section SOL_Conf
## Possible values: Yes/No
Enable_SOL Yes
## Possible values: Callback/User/Operator/Administrator/OEM_Proprietary
SOL_Privilege_Level Administrator
## Possible values: Yes/No
Force_SOL_Payload_Authentication No
## Possible values: Yes/No
Force_SOL_Payload_Encryption No
## Give a non-zero valid integer. Each unit is 5ms
Character_Accumulate_Interval 20
## Give a valid number
Character_Send_Threshold 80
## Give a valid integer
SOL_Retry_Count 7
## Give a valid integer. Interval unit is 10ms
SOL_Retry_Interval 250
## Possible values: Serial/9600/19200/38400/57600/115200
Non_Volatile_Bit_Rate 19200
## Possible values: Serial/9600/19200/38400/57600/115200
Volatile_Bit_Rate 19200
## Give a valid port number
## SOL_Payload_Port_Number 623
EndSection
有什么建议么?
答案1
答案2
19200 bps 绝对算不上快,但我已经通过基本的 GSM 数据连接完成了大量的 Unix 系统管理(具体来说是 HP-UX)。无线电接口上的速率为 9600 bps,并且会产生一些明显的延迟。
这是可行的,但您确实不想做任何不必要的事情,并且您将学会提前估计命令将产生的可能输出量。如果命令意外地发出比预期更多的输出,即使您立即按下 Control-C,连接中也已经缓冲了相当多的数据,慢慢流向您的屏幕,因此您将看到输出滚动一阵子。
此外,你可以把它当作一种回顾计算的经历。 :-) “这就是 Ken Thompson 和 Dennis Ritchie(Unix 的原始开发者)当年的所有工作方式。”
我发现本手册适用于 AST2150。它包括这一点:
请注意,对于 IPMITool SOL 会话,用户需要使用 BIOS 设置菜单配置“远程串行控制台重定向”以使用 COMA,并将波特率设置为 38.4K、8 位、无奇偶校验和 Xon/Xoff 握手。
这表明 38400 bps 可能是仅有的实际适用于此特定芯片或系统的波特率。
我有一个包含 AST2400 芯片的系统,其文档同样建议使用特定的波特率 57600。在我注意到该信息之前,我对其他可能的值进行了相当详尽的搜索,并且我可以在我的华硕 P10S 上确认这一点-至少我认为,57600 bps 似乎确实是在 SOL 连接上实际工作的唯一波特率。
另外,当使用 更改比特率时ipmi-config
,请先尝试更改非易失性比特率,并确保将易失性和非易失性比特率设置为相同的值。