HP-UX之MP管理

迷倪小魏發表於2017-10-19

HP-UX之MP管理

一、MP卡介紹:

HP Integrity Server中有一塊有一張獨立於主機和系統之外的整合卡,這張卡里面有小型的整合系統(是獨立於系統的一個操作環境),該卡負責對系統的狀態進行監視和控制。這張卡叫做GSP卡或者MP(老型號的機器叫做GSP(Guardian Service Processor (GSP)) ,新機器叫做MP)。該卡在系統插上電源後即被啟用,無論作業系統是否啟動,系統是否開機。該卡提供了兩種介面的訪問方式:

(1)透過串列埠的方式訪問.(這個需要在機房操作)
(2)
透過網路的的方式訪問,也就是lan console的登陸方式.(GSP卡和MP卡上都有串列埠和網路介面

下面以RX2660為例,介紹MP的管理,下圖中9Console IOIOI)和12MP LAN)就是兩種方式訪問的介面。
HP-UX之MP管理

 

二、兩種訪問方式的介紹:

2.1 透過串列埠的方式進行連線

首先,透過串列埠線連結到RX2660上的控制檯串列埠(即上圖中的9),然後透過終端進行連線,波特率為9600,資料位為8,埠根據實際情況進行選擇,具體如下圖所示:
HP-UX之MP管理

根據提示,輸入預設的使用者名稱:Admin 密碼:Admin(注意:首字母一定要大寫),如下所示:

MP login: Admin

MP password: *****

              Hewlett-Packard Integrity Integrated Lights-Out 2

    (c) Copyright Hewlett-Packard Company 1999-2007.  All Rights Reserved.

                           MP Host Name: g6a0006-c

                              Revision F.02.17

 *************************************************************************

                         MP ACCESS IS NOT SECURE

  Default MP users are currently configured and remote access is enabled.

  Modify default users' passwords or delete default users (see UC command)

                                    OR

            Disable all types of remote access (see SA command)

 *************************************************************************

進入MP後,會看到如下選單:

 

 MP MAIN MENU:

         CO: Console                           //進入控制

        VFP: Virtual Front Panel            //虛擬前皮膚

         CM: Command Menu              //進入管理處理命令模

      SMCLP: Server Management Command Line Protocol    //伺服器管理命令列協議

         CL: Console Log                  //檢視控制歷史

         SL: Show Event Logs           //檢視日誌

         HE: Main Help Menu            //幫助

          X: Exit Connection

[g6a0006-c] MP>

1、檢視MP LAN的當前配置

[g6a0006-c] MP> CM
        (Use Ctrl-B to return to MP main menu.)
[g6a0006-c] MP> LS
LS
Current LAN Configuration:
     MAC Address                : 0x001cc4fca256
     DHCP Status                : Disabled 
     IP Address                 : 10.1.1.57
     MP Host Name               : comsys
     Subnet Mask                : 255.255.255.0
     Gateway Address            : 10.1.1.249
     Link State                 : 10BaseT
     Remote Serial Console Port : 2023
     SSH Access Port            : 22
LAN status: UP and RUNNING
 
2、配置MP LAN的相關資訊,根據提示輸入相關的資訊
[g6a0006-c] MP:CM> lc
LC
Current LAN Configuration:
     - - MAC Address                : 0x001cc4fca256
     D - DHCP Status                : Disabled 
     I - IP Address                 : 16.230.1.80
     M - MP Host Name               : g6a0006-c
     S - Subnet Mask                : 255.255.252.0
     G - Gateway Address            : 16.230.0.1
     L - Link State                 : 10BaseT
     W - Remote Serial Console Port : 2023
     H - SSH Access Port            : 22
Enter parameter(s) to change, A to modify All, or [Q] to Quit: A
A
For each parameter, enter:
     New value, or
      to retain the current value, or
     DEFAULT to set the default value, or
     Q to Quit
//配置IP地址
IP Address:
   Current -> 16.230.1.80
              127.0.0.1 (default)
   Modifying this parameter may cause all present LAN and Web
   connections to be dropped.
Enter new value, or Q to Quit: 10.1.1.57
10.1.1.57
   -> IP Address will be updated
//配置主機名
Host Name:
   Current -> g6a0006-c
              mp001cc4fca256 (default)
Enter new value, or Q to Quit: comsys
comsys
   -> Host Name will be updated
//配置子網掩碼
Subnet Mask:
   Current -> 255.255.252.0
              255.255.255.0 (default)
   Modifying this parameter may cause all present LAN and Web
   connections to be dropped.
Enter new value, or Q to Quit: 255.255.255.0
255.255.255.0
   -> Subnet Mask will be updated
//配置閘道器
Gateway Address:
   Current -> 16.230.0.1
              127.0.0.1 (default)
   Modifying this parameter may cause all present LAN and Web
   connections to be dropped.
Enter new value, or Q to Quit: 10.1.1.249
10.1.1.249
   -> Gateway Address will be updated
//配置遠端連線埠
Remote Serial Console Port:
   Current -> 2023 (default)
              Options:  2000 to 2400
Enter new value, or Q to Quit: 2023
2023
   -> Current Remote Serial Console Port has been retained
//配置SSH連線埠
SSH Console Port Number:
   Current -> 22 (default)
              Options:  22, 2000 to 2400
Enter new value, or Q to Quit: 22
22
   -> Current SSH Console Port Number has been retained
//是否啟用DHCP
DHCP Status:
   Current -> D - Disabled 
              E - Enabled  (default)
   Modifying this parameter may cause all present LAN and Web
   connections to be dropped.
Enter new value, or Q to Quit: D
D
   -> Current DHCP Status has been retained
//配置Link狀態
Link State:
              A - Auto Negotiate (default)
   Current -> T - 10BaseT
   Modifying this parameter may cause all present LAN and Web
   connections to be dropped.
Enter new value, or Q to Quit: T
T
   -> Current Link State has been retained
New LAN Configuration (* modified values):
     - - MAC Address                : 0x001cc4fca256
     D - DHCP Status                : Disabled 
   * I - IP Address                 : 10.1.1.57
   * M - MP Host Name               : comsys
   * S - Subnet Mask                : 255.255.255.0
   * G - Gateway Address            : 10.1.1.249
     L - Link State                 : 10BaseT
     W - Remote Serial Console Port : 2023
     H - SSH Access Port            : 22
   -> Check all LAN parameters to ensure they are correct before commit.
   -> All LAN and Web connections may be dropped if you confirm the changes.
//確認修改
Enter Parameter(s) to revise, Y to confirm, or [Q] to Quit: Y
Y
   -> LAN Configuration has been updated.
   -> Reset MP (XD command option 'R') for configuration to take effect.
//驗證配置是否成功
[comsys] MP:CM> ls
LS
Current LAN Configuration:
     - - MAC Address                : 0x001cc4fca256
     D - DHCP Status                : Disabled 
     I - IP Address                 : 10.1.1.57
     M - MP Host Name               : comsys
     S - Subnet Mask                : 255.255.255.0
     G - Gateway Address            : 10.1.1.249
     L - Link State                 : 10BaseT
     W - Remote Serial Console Port : 2023
     H - SSH Access Port            : 22
Enter parameter(s) to change, A to modify All, or [Q] to Quit: 
   -> Current LAN Configuration has been retained.
[comsys] MP:CM> sysrev
SYSREV
Current firmware revisions
 MP FW     : F.02.17
 BMC FW    : 05.23
 EFI FW    : ROM A 07.12, ROM B 07.12
 System FW : ROM A 04.03, ROM B 04.03, Boot ROM A
 PDH FW    : 50.07
 UCIO FW   : 03.0b
 PRS FW    : 00.08 UpSeqRev: 02, DownSeqRev: 01
 

3、檢視系統的相關資訊,如下為資訊的分類
[comsys] MP> SL
Event Log Viewer Menu:
       Log Name            Entries    % Full      Latest Timestamped Entry
---------------------------------------------------------------------------
   E - System Event          190        24 %      03 Jan 1998 18:24:55
   F - Forward Progress     2641        66 %      03 Jan 1998 18:24:55
   B - Current Boot           96        32 % 
   P - Previous Boot          99        33 % 
   C - Clear All Logs
   L - Live Events
Enter menu item or [Ctrl-B] to Quit:
 

4、輸入help 然後LIst 可以看到命令列表

[comsys] MP> HE
==== MP Help: Main Menu =======================================================
Hardware Revision M0  Firmware Revision F.02.17 Oct  5 2007,16:53:04
Integrated Lights-Out for HP Integrity - Management Processor (MP)
                        MP Help System
    Enter a command at the help prompt:
           OVerview  : Launch the help overview
           LIst      : Show the list of MP Main Menu commands
            : Enter the command name for help on individual command
           TOPics    : Show all MP Help topics and commands
           HElp      : Display this screen
           Q         : Quit help
MP:HE> TOPics
==== MP Help: Topics ==========================================================
                                HELP TOPICS
COMmand menu            IPMI over lan                OVerview (all topics)
CONSole                 lICEnsing                    PORTs and connecting
Cmd Line Interface      LIst of commands             user PRIVilege levels
DHCP/DNS                user LOGIN authentication    SSH access
EVENT logs              MAIN menu
Group Actions           MODES
Directory-based Authentication and Authorization
The following commands can be entered for help on the command:
BP  CA  DATE  DC  DF  DI  DNS  FW  HE  ID  IT  LC  LDAP  LM
LOC  LS  MA   PC  PM  PR  PS  RB  RS  SA  SNMP  SO  SS  SYSREV
TC  TE  UC  WHO XD
 

5、檢視電源和風扇的狀態

[comsys] MP:CM> ps
PS
For System Processor Status see the SS command.
System Power state: On            
System Power usage: 270 Watts 
Temperature       : Normal        
Power supplies                State                         
----------------------------------------------------------- 
Power Supply 1                Normal                          
Power Supply 2                Normal                          
Fans                State               Fans                State              
-------------------------------------------------------------------------------
Fan  1 (Mem)        Normal              Fan  7 (CPU)        Normal             
Fan  2 (Mem)        Normal              Fan  8 (CPU)        Normal             
Fan  3 (Mem)        Normal              Fan  9 (I/O)        Normal             
Fan  4 (Mem)        Normal              Fan 10 (I/O)        Normal             
Fan  5 (CPU)        Normal              Fan 11 (I/O)        Normal             

Fan  6 (CPU)        Normal              Fan 12 (I/O)        Normal


6、檢視網路卡的狀態

[comsys] MP:CM> ls
LS
Current LAN Configuration:
     MAC Address                : 0x001cc4fca256
     DHCP Status                : Disabled 
     IP Address                 : 10.1.1.57
     MP Host Name               : comsys
     Subnet Mask                : 255.255.255.0
     Gateway Address            : 10.1.1.249
     Link State                 : 10BaseT
     Remote Serial Console Port : 2023
     SSH Access Port            : 22
LAN status: UP and RUNNING

 

7Dump 全部的log

[comsys] MP> SL
Event Log Viewer Menu:
       Log Name            Entries    % Full      Latest Timestamped Entry
---------------------------------------------------------------------------
   E - System Event          190        24 %      03 Jan 1998 18:24:55
   F - Forward Progress     2641        66 %      03 Jan 1998 18:24:55
   B - Current Boot           96        32 % 
   P - Previous Boot          99        33 % 
   C - Clear All Logs
   L - Live Events
Enter menu item or [Ctrl-B] to Quit: E
       Log Name            Entries    % Full      Latest Timestamped Entry
---------------------------------------------------------------------------
   E - System Event          190        24 %      03 Jan 1998 18:24:55
Event Log Navigation Help:
   +       View next block     (forward in time,  e.g. from 3 to 4)
   -       View previous block (backward in time, e.g. from 3 to 2)
       Continue to the next or previous block
   D       Dump the entire log
   F       First entry
   L       Last entry
   J       Jump to entry number
   H       View mode configuration - Hex
   K       View mode configuration - Keyword
   T       View mode configuration - Text
   A       Alert Level Filter options
   U       Alert Level Unfiltered
   ?       Display this Help menu
   Q       Quit and return to the Event Log Viewer Menu
   Ctrl-B  Exit command, and return to the MP Main Menu
MP:SL (+,-,,D, F, L, J, H, K, T, A, U, ? for Help, Q or Ctrl-B to Quit) >D
   Confirm? (Y/[N]): Y
#  Location|Alert| Encoded Field    |  Data Field    |   Keyword / Timestamp
-------------------------------------------------------------------------------
0     BMC      2  0x2047071EF4020010 0181A37000120300 CHASSIS_CONTROL_REQUEST
                                                      06 Oct 2007 05:36:52
1     BMC      2  0x2047071EF7020020 FFFF027000120300 SOFT_RESET
                                                      06 Oct 2007 05:36:55
2     BMC      2  0x2047071EF8020030 FFFF006FFA220300 ACPI_ON
                                                      06 Oct 2007 05:36:56
3     BMC      2  0x2047071EF8020040 FFFF010943090300 POWER_UNIT_ENABLED
                                                      06 Oct 2007 05:36:56
4     SFW      2  0xC147071F03020050 FFFF000A001D0300 CPU_START_BOOT
                                                      06 Oct 2007 05:37:07
5     SFW  0   2  0x5480006300E00060 0000000000000000 BOOT_START
                                                      06 Oct 2007 05:37:07
6     BMC      2  0x2034AB9E1C020080 FFFF0103FCC00300 TIME_SET
                                                      01 Jan 1998 13:46:04
7     BMC      2  0x2034AB9E1C020090 FFFF027000120300 SOFT_RESET
                                                      01 Jan 1998 13:46:04
8     SFW  0   2  0x548002C500E000A0 0000000000000000 BOOT_REBOOT
                                                      01 Jan 1998 13:46:13
9     SFW  0   2  0x40801CBB00E000C0 0000000000000000 BOOT_SWITCH_INSECURE_MODE
                                                      01 Jan 1998 13:46:38
10    HPUX 0   2  0x5F801C2F00E000E0 0000000000001001 HP-UX_BOOT_COMPLETE
                                                      01 Jan 1998 13:57:24
………(此處省略條記錄)
182   HPUX 0   2  0x5F801C2F00E00ED0 0000000000001001 HP-UX_BOOT_COMPLETE
                                                      03 Jan 1998 12:40:44
183   HPUX 0   2  0x5F801C3000E00EF0 00000000001A100C HP-UX_OS_NORMAL_SHUTDOWN
                                                      03 Jan 1998 14:56:56
184   BMC      2  0x2034AE51C0020F10 FFFF027000120300 SOFT_RESET
                                                      03 Jan 1998 14:57:04
185   SFW      2  0xC134AE51C5020F20 FFFF000A001D0300 CPU_START_BOOT
                                                      03 Jan 1998 14:57:09
186   SFW  0   2  0x5480006300E00F30 0000000000000000 BOOT_START
                                                      03 Jan 1998 14:57:09
187   SFW  0   2  0x40801CBB00E00F50 0000000000000000 BOOT_SWITCH_INSECURE_MODE
                                                      03 Jan 1998 14:57:35
188   HPUX 0   2  0x5F801C2F00E00F70 0000000000001001 HP-UX_BOOT_COMPLETE
                                                      03 Jan 1998 14:58:52
189   MP   0   2  0x5E800A7A00E00F90 0000000000000006 MP_SELFTEST_RESULT
                                                      03 Jan 1998 18:24:55
   -> This is the last entry in the selected log.

 

8、檢查主機FW

[comsys] MP> CM
        (Use Ctrl-B to return to MP main menu.)
[comsys] MP:CM> sysrev
SYSREV
Current firmware revisions
 MP FW     : F.02.17
 BMC FW    : 05.23
 EFI FW    : ROM A 07.12, ROM B 07.12
 System FW : ROM A 04.03, ROM B 04.03, Boot ROM A
 PDH FW    : 50.07
 UCIO FW   : 03.0b
 PRS FW    : 00.08 UpSeqRev: 02, DownSeqRev: 01

 

9、開啟或關閉電源

[comsys] MP> CM
        (Use Ctrl-B to return to MP main menu.)
[comsys] MP:CM> pc
PC
Current System Power State: On 
Power Control Menu:
     C   - Power Cycle
     ON  - Power On
     OFF - Power Off
     G   - Graceful Shutdown
Enter menu item or [Q] to Quit: off
off
System will be powered off.
   You must shut down the OS manually before this command is executed.
   Failure to do this can cause problems when the OS is restarted.
   Confirm? (Y/[N]): Y
Y
   -> System is being powered off.
 
10、顯示所有韌體的修訂版本
[comsys] MP> CM
        (Use Ctrl-B to return to MP main menu.)
[comsys] MP:CM> sysrev
SYSREV
Current firmware revisions
 MP FW     : F.02.17
 BMC FW    : 05.23
 EFI FW    : ROM A 07.12, ROM B 07.12
 System FW : ROM A 04.03, ROM B 04.03, Boot ROM A
 PDH FW    : 50.07
 UCIO FW   : 03.0b
 PRS FW    : 00.08 UpSeqRev: 02, DownSeqRev: 01

 

2.2 透過網路的方式進行連線

1、透過SSH方式登入MP

上面已經配置好了IP地址,接下來就是連線上MP LAN管理口(上圖的10口),然後進行連線,(注意:埠號為上面設定的22如下圖所示:
HP-UX之MP管理

              Hewlett-Packard Integrity Integrated Lights-Out 2
    (c) Copyright Hewlett-Packard Company 1999-2007.  All Rights Reserved.
                           MP Host Name: comsys
                              Revision F.02.17
 *************************************************************************
                         MP ACCESS IS NOT SECURE
  Default MP users are currently configured and remote access is enabled.
  Modify default users' passwords or delete default users (see UC command)
                                    OR
            Disable all types of remote access (see SA command)
 *************************************************************************
   MP MAIN MENU:
         CO: Console
        VFP: Virtual Front Panel
         CM: Command Menu
      SMCLP: Server Management Command Line Protocol
         CL: Console Log
         SL: Show Event Logs
         HE: Main Help Menu
          X: Exit Connection
[comsys] MP> 
 

2、透過Telnet方式登入MP

透過Telnet方式進行連線,(注意:埠號為上面設定的23),如下圖所示:
HP-UX之MP管理

 *************************************************************************
  This is a private system. 
  Do not attempt to login unless you are an authorized user.  
  Any authorized or unauthorized access or use may be monitored and can
  result in criminal or civil prosecution under applicable law.
 *************************************************************************
 *************************************************************************
  Only default users are configured.   
  Use one of the following user/password pairs to login:
  
  Admin/Admin
  Oper/Oper
 *************************************************************************
MP login: Admin
MP password: *****
              Hewlett-Packard Integrity Integrated Lights-Out 2
    (c) Copyright Hewlett-Packard Company 1999-2007.  All Rights Reserved.
                           MP Host Name: comsys
                              Revision F.02.17
 *************************************************************************
                         MP ACCESS IS NOT SECURE
  Default MP users are currently configured and remote access is enabled.
  Modify default users' passwords or delete default users (see UC command)
                                    OR
            Disable all types of remote access (see SA command)
 *************************************************************************
   MP MAIN MENU:
         CO: Console
        VFP: Virtual Front Panel
         CM: Command Menu
      SMCLP: Server Management Command Line Protocol
         CL: Console Log
         SL: Show Event Logs
         HE: Main Help Menu
          X: Exit Connection
[comsys] MP>
 

3、透過web方式登入MP

在瀏覽器中輸入之前配置好的IP地址,如下所示:
HP-UX之MP管理HP-UX之MP管理HP-UX之MP管理HP-UX之MP管理

 

三、MP相關命令說明

命令

BP

BMC 口令

CA

配置埠參

CE

歷史區內錄維修情況

CL

示控制歷史

CG

成器

CO

返回重定向控制

CSP

連線其他服務處理

CT

配置跟蹤

DATE

日期

DC

配置

DF

FRUID

DI

斷開與LAN 控制連線

FW

MP

BP

BMC 口令

CA

配置埠參

CE

歷史區內錄維修情況

CL

示控制歷史

HE

單或命令的幫助資訊

ID

資訊

IT

修改 MP 動計時器

LC

LAN 配置

LOC

定位器 LED 控制

LS

LAN 狀態

MA

返回主菜

MR

調解調

MS

調解調狀態

PC

電源控制

PG

配置分頁

PR

電源配置

PS

電源管理模組狀態

RB

透過 GPIO BMC

RS

BMC 透過 RST 號重置系

SA

配置調解調器) LAN Telnet Web 訪問選項

SE

在定位器啟用

SL

日誌

SO

安全選項和訪問控制

SYSREV

示所有件的修版本

SS

處理模組的系狀態

TC

控制轉移 透過 INIT 進行系統重

TE

Tell 向其他使用者發送消

UC

使用者配置

VT

跟蹤

VFP

虛擬前皮膚

WHO

示已連線管理處理器使用者

XD

MP 診斷和(或)




作者:
SEian.G
(苦練七十二變,笑對八十一難)



 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31015730/viewspace-2146166/,如需轉載,請註明出處,否則將追究法律責任。

相關文章