DellサーバIPMIとOMSA

7788 ワード

リモート管理DELLサーバは、IPMIまたはOMSAによってもよい。
Dell OpenManage Server Administra(OMSA)
  • ウェブブラウザによるグラフィックスユーザーインターフェース(GUI)
  • オペレーティングシステム(OS)によるコマンドラインインターフェース(CLI)
  • インストール
    Linux環境はDellのソースを使ってyumインストールができます。
    #     http://zh.community.dell.com/techcenter/systems-management/w/wiki/561.omsalinux
    wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash 
    yum  -y install srvadmin-all
    /opt/dell/srvadmin/sbin/srvadmin-services.sh start #     ,             
    
    使用
    主に使用されるコマンドはomreportomconfigおよびracadmomreportサーバの各種ハードウェア状態を調べるためのもので、omconfigハードウェアのいくつかの属性を設定するためのもので、racadm遠隔制御に用いることができる。
          
    http://www.dell.com/support/home/cn/zh/cnbsd1/product-support/product/dell-opnmang-srvr-admin-v7.3/manuals
    http://www.dell.com/support/manuals/cn/zh/cnbsd1/dell-opnmang-srvr-admin-v7.3/omsa_cli-v1/%E7%AE%80%E4%BB%8B?guid=guid-800c0f9c-94f9-4893-ab05-1c3754260261&lang=zh-cn
    http://www.sxszjzx.com/~t096/manual/sc/Dosa/CLI/report.htm
    
    コマンドの例:
    /opt/dell/srvadmin/bin/omreport chassis                     #               
    /opt/dell/srvadmin/bin/omreport chassis memory              #       
    /opt/dell/srvadmin/bin/omreport chassis temps             #            
    /opt/dell/srvadmin/bin/omreport storage adisk controller=0  #             
    /opt/dell/srvadmin/bin/omreport storage pdisk controller=0  #         
    /opt/dell/srvadmin/bin/omreport storage vdisk controller=0  #          
    /opt/dell/srvadmin/bin/omreport storage controller          #      ( RAID )   
    /opt/dell/srvadmin/bin/omreport storage channel controller=0    #        
    /opt/dell/srvadmin/bin/omreport storage enclosure controller=0  #   enclosure   
    /opt/dell/srvadmin/bin/omreport storage battery                 #       
    
    リモートサーバを制御する場合、racadmコマンドの例は以下の通りです。
    #     
    #http://www.dell.com/support/manuals/cn/zh/cnbsd1/idrac8-with-lc-v2.05.05.05/racadm_idrac_pub-v1/introduction?guid=guid-6b6564ab-ee63-49ef-a7d6-47154c343841&lang=en-us
    #   
    racadm -r  -u  -p   
    racadm -r  -u  -p  get ..[].[]
    racadm -r  -u  -p  set ..[]. 
    
    #     
        :
    racadm get BIOS.memSettings.SysMemSize     #       
    racadm get BIOS.MemSettings.SysMemSpeed    #         
    racadm get BIOS.MemSettings.SysMemType  #       
    
    BIOS  :
    racadm get BIOS.MiscSettings.ErrPrompt   #        :
    racadm set BIOS.MiscSettings.ErrPrompt Disabled #        
    racadm get BIOS.BiosBootSettings.BootMode(  BIOS,  UEFI) # BIOS    : 
    racadm get BIOS.BiosBootSettings.BootSeq  #       : 
    racadm set BIOS.BiosBootSettings.BootSeq NIC.Integrated.1-1-1,HardDisk.List.1-1,Optical.SATAEmbedded.E-1  #         :
    jobqueue create BIOS.Setup.1-1  #   BIOS objects job:
    racadm get BIOS.SysInformation.SystemServiceTag   #   sn: 
    racadm get BIOS.SysInformation. SystemModelName   #     :
    racadm get BIOS.SysInformation. SystemBiosVersion  #   bios  : 
    
        :
    racadm getsysinfo -s ( racadm nicstatistics | racadm racdump )  #     mac: 
    racadm get nic.NICConfig.3.LegacyBootProto  #     3    pxe:
    racadm set nic.NICConfig.3.LegacyBootProto PXE #     pxe: 
    racadm jobqueue create NIC.Integrated.1-3-1 # PXE      : 
    racadm jobqueue create NIC.Integrated.1-1 -r pwrcycle -s TIME_NOW -e 20120501100000    #    NIC objects job:
    
        :
    racadm storage get pdisks     #        : 
    racadm storage get vdisks -o [ -p status,size,layout,state ]  #           : 
    
    raid  :
    racadm storage get controllers   #   raid   : 
    racadm storage get controllers -o -p name,status   #   raid     name、status: 
    racadm storage resetconfig:RAID.Integrated.1-1   #     raid: 
    racadm jobqueue create RAID.Integrated.1-1 -s TIME_NOW -r none ( forced | pwrcycle | graceful) [ -—realtime ]  #    storage  : 
    racadm storage createvd:RAID.Integrated.1-1 -rl r5 -size 300g  -pdkey:Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1 #    raid5,  300G   :
    racadm storage createvd:RAID.Integrated.1-1 -rl r5 -pdkey:Disk.Bay.0:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.1:Enclosure.Internal.0-1:RAID.Integrated.1-1,Disk.Bay.2:Enclosure.Internal.0-1:RAID.Integrated.1-1  #    raid5: 
    
        :
         :  2、15   ID。
    racadm get idrac.users.2    #       :
    racadm set idrac.users.15.username chenss  #      :
    racadm set idrac.users.15.password wuyancs #       :
    racadm set idrac.users.15.Privilege 0x1ff   #    idrac   :
    racadm set idrac.users.15.enable enabled    #     :
    
        :
    racadm get System.LCD.CurrentDisplay  #         LCD    :
    
        :
    racadm serveraction powerup  #    : 
    racadm serveraction powerdown  #    : 
    racadm serveraction powercycle  #    : 
    racadm serveraction powerstatus  #    : 
    racadm get iDRAC.SNMP   #   idrac snap info:
    
    スマートプラットフォーム管理インターフェース-IPMI(Intelligent Platform Management Interface)
    ローカル
    service ipmi start
    ipmitool -I open shell #         BMC shell
    
    リモート
    ipmitool -I lanplus -H IP -U**** -P***** -L USER shell #       BMC shell
    
    コマンド
    [root@zabbix ~]# ipmitool help
    Commands:
        raw           Send a RAW IPMI request and print response #        IPMI  ,        
        i2c           Send an I2C Master Write-Read command and print response
        spd           Print SPD info from remote I2C device
        lan           Configure LAN Channels #     (lan)  (channel)
        chassis       Get chassis status and set power state #             
        power         Shortcut to chassis power commands
        event         Send pre-defined events to MC #  BMC           (event),        SNMP    
        mc            Management Controller status and global enables #   MC(Management Contollor)         
        sdr           Print Sensor Data Repository entries and readings #                         。
        sensor        Print detailed sensor information #           。
        fru           Print built-in FRU and scan SDR for FRU locators #      Field Replaceable Unit (FRU)  
        gendev        Read/Write Device associated with Generic Device locators sdr
        sel           Print System Event Log (SEL) #    System Event Log (SEL)
        pef           Configure Platform Event Filtering (PEF) #    Platform Event Filtering (PEF),                event  , PEF          ,         。
        sol           Configure and connect IPMIv2.0 Serial-over-LAN
        tsol          Configure and connect with Tyan IPMIv1.5 Serial-over-LAN
        isol          Configure IPMIv1.5 Serial-over-LAN
        user          Configure Management Controller users
        channel       Configure Management Controller channels
        session       Print session information
        dcmi          Data Center Management Interface
        sunoem        OEM Commands for Sun servers
        kontronoem    OEM Commands for Kontron devices
        picmg         Run a PICMG/ATCA extended cmd
        fwum          Update IPMC using Kontron OEM Firmware Update Manager
        firewall      Configure Firmware Firewall
        delloem       OEM Commands for Dell systems
        shell         Launch interactive IPMI shell
        exec          Run list of commands from file
        set           Set runtime variable for shell and exec
        hpm           Update HPM components using PICMG HPM.1 file
        ekanalyzer    run FRU-Ekeying analyzer using FRU files
        ime           Update Intel Manageability Engine Firmware