chengyc 发表于 2012-03-10 12:38

ILOM

ILOM(Integrated Lights Out Manager)是集成无人职守管理器服务处理机软件,该软件通过其管理、监视和控制等功能大大降低了数据中心管理的复杂性。ILOM软件将Sun N1 System Manager(系统管理器)软件和Sun N1 Service Provisioning System(服务供应系统)软件结合在一起,创建了一个独特的拥有高等级自动化能力的管理架构,它使IT员工无需特别对数据中心进行管理,而是将其精力和时间集中在他们的其他业务上。

SUN新出的X4200/4100 T2000/1000集成了ILOM新特性

你肯定没有通过GUI,远程以图形方式安装过Win/Linux甚至soalris吧? 新的ILOM给你全新的远程控制台的体验,这些都是SUN x86/x64服务器内置的功能,价格也和其他D/H/I的服务器差不多, 新采购的PC server真的应该优先考虑AMD+SUN的X4200/4100 ! 集成无人职守管理器 (ILOM.....

你肯定没有通过GUI,远程以图形方式安装过Win/Linux甚至soalris吧?
新的ILOM给你全新的远程控制台的体验,这些都是SUN x86/x64服务器内置的功能,价格也和其他D/H/I的服务器差不多, 新采购的PC server真的应该优先考虑AMD+SUN的X4200/4100 !

集成无人职守管理器 (ILOM) 接口
随服务器提供的集成无人职守管理器 (ILOM) 产品包括服务处理器硬件和集成系统管理软件。您不必安装附加硬件或软件便可开始使用 ILOM 来管理您的服务器。

ILOM 提供了四个工业标准的管理接口:

智能平台管理接口 (IPMI) v2.0 - 使用安全 Shell (SSH),您可与 ILOM 服务处理器进行交互操作以执行下列任务: 建立对您的服务器的安全远程控制、远程监视硬件组件状态、监视系统日志、从可更换组件接收报告以及重定向服务处理器控制台。

Web 用户界面 - ILOM 服务处理器还提供了一个功能强大、易于使用的浏览器界面。一旦您从本地 Web 浏览器登录到服务处理器浏览器界面,便可执行 IPMI 任务和系统监视。ILOM 还可使您能够将服务器的图形控制台重定向到工作站或膝上型电脑上运行的远程 Web 浏览器。您可配置工作站或膝上型电脑的鼠标和键盘,以用作服务器鼠标和键盘。您甚至可在工作站或膝上型电脑上将软盘驱动器或 CD-ROM 驱动器配置为虚拟连接到 Sun Fire X4100 或 X4200 服务器上的设备。

简单网络管理协议 (SNMP) 接口 - ILOM 还为外部数据中心管理应用程序(如,Sun N1 System Manager(Sun N1 系统管理器)、IBM Tivoli 和 Hewlett-Packard OpenView)提供了一个 SNMP v3.0 接口(仅限于支持 SNMP v1 和 SNMP v2c)。

命令行界面 (CLI) - 您可使用 ILOM 命令行界面来发送服务处理器特定命令。

您所使用的 ILOM 接口取决于您的整个系统管理计划及您希望执行的特定任务。

可使用 ILOM 执行的常见任务
使用一个或多个上述系统管理接口,您可轻松并可靠地执行以下系统管理任务。

任务 Web 接口 CLI IPMI SNMP
将系统图形控制台重定向到远程客户机浏览器。 是      
将远程软盘驱动器作为虚拟软盘驱动器连接到系统。 是      
将远程 CD-ROM 驱动器作为虚拟 CD-ROM 驱动器连接到系统。 是      
远程监视系统风扇、温度和电压。 是 是 是 是
远程监视系统 BIOS 消息。 是 是 是   
远程监视系统的操作系统消息。 是 是 是   
询问系统组件的 ID 和/或序列号。   是 是 是
将系统串行控制台重定向到远程客户端。   是   
远程监视系统状态(健康检查)。 是 是 是 是
远程询问系统网络接口卡 MAC 地址。 是 是 是   
远程管理服务处理器用户帐户。 是 是 是   
远程管理系统电源状态(打开电源、关闭电源和电源复位)。 是 是 是   
监视和管理关键系统组件(CPU、主板、风扇、磁盘驱动器)的环境设置。 是 是 是 仅限监视

示例介绍ILOM的简单配置.

1 将计算机串口和x4100的Serial MGT口连接起来, 启动超级终端(windows下)或minicom(linux下)设置串口参数8N1, 9600baud, 无流控.

2 将x4100加电, 可以通过串口看到ILOM的启动信息. 从启动信息中得知, ILOM使用PowerPC处理器和Linux操作系统.

3 启动完毕后, 输入用户名root, 密码changeme登陆到终端
SUNSP00144F261111 login: root
Password:

4 设置管理网络使用的参数:
-> cd /SP/network
/SP/network

-> set pendingipaddress=12.34.56.7
Set 'pendingipaddress' to '12.34.56.7'

-> set pendingipnetmask=255.255.255.0
Set 'pendingipnetmask' to '255.255.255.0'

-> set commitpending=true
12.34.56.7
255.255.255.0

5 将x4100的net mgt口和计算机使用100m网络连接(使用10m网络将不能正常工作),就可以通过浏览器访问https://12.34.56.7对x4100进行管理. 比较有意思的是remote control -> redirection可以将x4100的屏幕,键盘,鼠标输出都定向到一个java程序. remote control -> remote power control可以远程启动, 关闭, 重启x4100服务器。 为管理者带来很大的方便。
--
可以以三种方式连接到ILOM,在知道ILOM的IP地址时,可以通过以太网管理端口以Web或者命令行方式进行登录,另外也可以通过串口连接 到ILOM上。
下面是一些基本的命令行使用:
1.检查SP ILOM firmware版本
SUNSP0003BAD884D4 login: root
Password: changeme

Sun(TM) Integrated Lights Out Manager

Version 1.0
->
-> version /SP
SP firmware version: 1.0
SP firmware build number: 6060
SP firmware date: Fri Aug 12 11:07:18 PDT 2005
SP filesystem version: 0.1.12

->
2. 检查SP ILOM关于HTTP/HTTPS的服务
-> show /SP/services/http

/SP/services/http
Targets:

Properties:
port = 80
secureredirect = enabled
servicestate = disabled
...
-> show /SP/services/https

/SP/services/https
Targets:

Properties:
port = 443
servicestate = enabled
...
3. 检查SP ILOM关于SSH key的设置
-> show /SP/services/ssh/keys/dsa

/SP/services/ssh/keys/dsa
Targets:

Properties:
fingerprint = (none)
length = 1024
publickey = AAA...hjutDb3mHYn4NsOHq6fM2kHhWjI7hQ==
...
-> show /SP/services/ssh/keys/rsa

/SP/services/ssh/keys/rsa
Targets:

Properties:
fingerprint = (none)
length = 1024
publickey = AAA...3wHbn/FhM=
Commands:
Show

4. 检查SP ILOM关于网口的设置
-> show /SP/network

/SP/network
Targets:

Properties:
commitpending = (Cannot show property)
ipaddress = 10.11.11.154
ipdiscovery = Static
ipgateway = 10.11.11.1
ipnetmask = 255.255.255.0
macaddress = 00:03:BA:D8:84:D4
pendingipaddress = 10.11.11.154
pendingipdiscovery = Static
pendingipgateway = 10.11.11.1
pendingipnetmask = 255.255.255.0

Commands:
cd
set
show
5.检查SP ILOM关于用户的设置
-> show /SP/users

/SP/users
Targets:
root

Properties:

Commands:
cd
create
delete
set
show

6. 配置SP IP地址
-> cd /SP/network
/SP/network

-> set pendingipaddress=10.11.11.154
Set 'pendingipaddress' to '10.11.11.154'

-> set pendingipnetmask=255.255.255.0
Set 'pendingipnetmask' to '255.255.255.0'

-> set pendingipgateway=10.11.11.1
Set 'pendingipgateway' to '10.11.11.1'

-> set commitpending=true
10 11 11 154
10 11 11 1
255 255 255 0
Set 'commitpending' to 'true'
7. 服务器加电/关电
-> Start /SYS

-> stop /SYS
Are you sure you want to stop /SYS (y/n)? y
Stopping /SYS
8. 服务器重启
-> reset /SYS
Are you sure you want to reset /SYS (y/n)? y
Performing hard reset on /SYS

AMIBIOS(C)2003 American Megatrends, Inc.
BIOS Date: 08/10/05 14:51:11 Ver: 08.00.10
CPU : Dual Core AMD Opteron(tm) Processor 275, Speed : 2.2 GHz
Count : 4, CPU Revision, CPU0 : E6, CPU1 : E6
Microcode Revision, CPU0 : 4D, CPU1 : 4D
DRAM Clocking CPU0 Core0/1 = 400 MHz, CPU1 Core0/1 = 400 MHz

Sun Fire X4200 Server, 2 AMD North Bridges, Rev E6
1 AMD 8111 I/O Hub, Rev C2
2 AMD 8131 PCI-X Controllers, Rev B2
BMC Firmware Revision : 1.00
Checking NVRAM..
Initializing USB Controllers .. Done.
...
9. 开启服务器控制台
-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y
To stop, hit ESC (
...
GNU GRUB version 0.95 (632K lower / 4062144K upper memory)

***************************************************************************
* Solaris *
* Solaris Serial Console ttya *
* Solaris Serial Console ttyb (for lx50, v60x and v65x) *
* *
* *
* *
* *
* *
* *
***************************************************************************
Use the * and * keys to select which entry is highlighted.
Press enter to boot the selected OS, 'e' to edit the
commands before booting, or 'c' for a command-line.

-> stop /SP/console
Are you sure you want to stop /SP/console (y/n)? y

在ILOM Shell下添加用户以及设置用户密码的方法如下:
-> create /SP/users/admin role=Administrator cli_mode=alom
Creating user...
Enter new password: ********
Enter new password again: ********
Created /SP/users/admin

-> set /SP/users/admin password=admin1234
Changing password for user /SP/users/admin...
Enter new password again: *********
New password was successfully set for user /SP/users/admin

-> show /SP/users/admin

/SP/users/admin
   Targets:

   Properties:
         role = Administrator
         password = *****
         cli_mode = alom

   Commands:
         cd
         set
         show

->

在ILOM Shell下添加邮件告警的方法如下:
-> set /SP/alertmgmt/rules/1 destination=pupil@ilom.com.cn level=minor type=email
Set 'destination' to 'pupil@ilom.com.cn'
Set 'level' to 'minor'
Set 'type' to 'email'

-> show

/SP/alertmgmt/rules/1
   Targets:

   Properties:
         community_or_username = public
         destination = pupil@ilom.com.cn
         destination_port = 0
         level = minor
         snmp_version = 1
         type = email

   Commands:
         cd
         set
         show

->


在ILOM Shell下配置NTP客户端的方法如下:
-> pwd
Current default target: /

-> cd /SP/clock
/SP/clock

-> ls


/SP/clock
   Targets:

   Properties:
         datetime = Tue Sep 16 12:42:29 2008
         usentpserver = disabled

   Commands:
         cd
         set
         show

-> set usentpserver=enabled
Set 'usentpserver' to 'enabled'

-> ls

/SP/clock
   Targets:

   Properties:
         datetime = Tue Sep 16 12:42:38 2008
         usentpserver = enabled

   Commands:
         cd
         set
         show

-> cd /SP/clients/ntp/server/1
/SP/clients/ntp/server/1

-> ls

/SP/clients/ntp/server/1
   Targets:

   Properties:
         address = 0.0.0.0

   Commands:
         cd
         set
         show

-> set address=10.30.1.105
Set 'address' to '10.30.1.105'

-> ls

/SP/clients/ntp/server/1
   Targets:

   Properties:
         address = 10.30.1.105

   Commands:
         cd
         set
         show

->


在ILOM Shell下配置syslog客户端的方法如下:
-> pwd
Current default target: /

-> cd /SP/clients/syslog
/SP/clients/syslog

-> pwd
Current default target: /SP/clients/syslog

-> ls

/SP/clients/syslog
   Targets:

   Properties:
         destination_ip1 = 0.0.0.0
         destination_ip2 = 0.0.0.0

   Commands:
         cd
         set
         show

-> set destination_ip1=10.40.157.22
Set 'destination_ip1' to '10.40.157.22'

-> ls

/SP/clients/syslog
   Targets:

   Properties:
         destination_ip1 = 10.40.157.22
         destination_ip2 = 0.0.0.0

   Commands:
         cd
         set
         show

->

在ILOM Shell下查看版本、系统的相关方法如下:
SUNSP00144F97B6A1 login: root
Password:
Waiting for daemons to initialize...

Daemons ready

Sun(TM) Integrated Lights Out Manager

Version 2.0.4.23.b

Copyright 2008 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.

Warning: password is set to factory default.

-> version
SP firmware 2.0.4.23.b

SP firmware build number: 34167
SP firmware date: Fri Jul 11 08:30:16 PDT 2008
SP filesystem version: 0.1.14

-> show /SP

/SP
   Targets:
         alertmgmt
         cli
         clients
         clock
         console
         faultmgmt
         logs
         network
         policy
         powermgmt
         serial
         services
         sessions
         users


   Properties:
         customer_frudata = (none)
         hostname = SUNSP00144F97B6A1
         reset_to_defaults = none
         system_identifier = Sun T5220

   Commands:
         cd
         reset
         set
         show
         version

-> show /HOST

/HOST
   Targets:
         bootmode
         diag

   Properties:
         autorestart = reset
         autorunonerror = false
         hypervisor_version =    Hypervisor 1.6.4.b 2008/07/11 08:04
         macaddress = 00:14:4f:97:b6:98
         obp_version =    OBP 4.28.8 2008/06/25 12:21
         post_version =    POST 4.28.9 2008/06/30 21:57
   
         send_break_action = (none)
         status = Powered off
         sysfw_version =Sun System Firmware 7.1.3.d 2008/07/11 08:46



   Commands:
         cd
         set
         show

-> show /SYS

/SYS
   Targets:
         SERVICE
         LOCATE

         ACT
         PS_FAULT
         TEMP_FAULT
         FAN_FAULT
         MB
         HDD0
         HDD1
         HDD2
         HDD3
         HDD4
         HDD5
         HDD6
         HDD7
         PDB
         SASBP
         DVD
         TTYA
         USBBD
         FANBD0
         FANBD1
         PS0
         PS1
         VPS

   Properties:
         type = Host System
         keyswitch_state = Normal
         product_name = SPARC-Enterprise-T5220
         product_part_number = 602-3822-08
         product_serial_number = BEL08046RF
         fault_state = Faulted
         power_state = Off

   Commands:
         cd
         reset
         set
         show
         start
         stop

->

在ILOM Shell下启动机器并切换到控制台的方法如下:
-> start /SYS
Are you sure you want to start /SYS (y/n)? y
Starting /SYS

-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y

Serial console started.To stop, type #.

在ILOM Shell下查看相关服务以及SP网络配置的方法如下:
-> show /SP/services

/SP/services
   Targets:
         http
         https
         servicetag
         snmp
         ssh

   Properties:

   Commands:
         cd
         show

-> show /SP/services/http

/SP/services/http
   Targets:

   Properties:
         port = 80
         secureredirect = enabled
         servicestate = disabled

   Commands:
         cd
         set
         show

-> show /SP/services/https

/SP/services/https
   Targets:

   Properties:
         port = 443
         servicestate = enabled

   Commands:
         cd
         set
         show

-> show /SP/services/servicetag

/SP/services/servicetag
   Targets:

   Properties:
         product_urn = urn:uuid:6bfd9efc-e300-11db-8c3c-080020a9ed93
         state = enabled

   Commands:
         cd
         set
         show

-> show /SP/services/snmp      

/SP/services/snmp
   Targets:
         communities
         users

   Properties:
         engineid = (none)
         port = 161
         sets = disabled
         v1 = disabled
         v2c = disabled
         v3 = enabled

   Commands:
         cd
         set
         show

-> show /SP/services/ssh

/SP/services/ssh
   Targets:
         keys

   Properties:
         generate_new_key_action = (Cannot show property)
         generate_new_key_type = none
         restart_sshd_action = (Cannot show property)
         state = enabled

   Commands:
         cd
         set
         show

-> show /SP/network      

/SP/network
   Targets:

   Properties:
         commitpending = (Cannot show property)
         dhcp_server_ip = none
         ipaddress = 10.40.157.239
         ipdiscovery = static
         ipgateway = 10.40.157.254
         ipnetmask = 255.255.255.0
         macaddress = 00:14:4F:97:B6:A1
         pendingipaddress = 10.40.157.239
         pendingipdiscovery = static
         pendingipgateway = 10.40.157.254
         pendingipnetmask = 255.255.255.0
         state = enabled

   Commands:
         cd
         set
         show

nimysun 发表于 2012-03-12 08:58

ILOM是个相当好的 server management tool,可惜国内的很多用户还没有习惯用它。

pgxgzhao 发表于 2012-08-29 10:01

好东西,顶一个。我们要熟练ILOM的操作!回复 1# chengyc


   

liangsanxi 发表于 2012-09-13 14:51

good, get skill to use ILOM
页: [1]
查看完整版本: ILOM