2. Server basic operation OMSA management configuration

OMSA Management Configuration

1. Introduction:

OMSA (full name Openmanage Server Administrator) is an IT system management solution independently developed by Dell. It manages and monitors local and remote servers by providing a web GUI and operating system command line tools. OMSA is the open source version of IDRAC Enterprise Edition, similar to centos to redhat. The web interfaces of IDRAC and OMSA are similar and function similarly. The omsa software package, also known as: OM-SrvAdmin, is a set of tools provided by dell.

OpenManage Server Administrator (OMSA) is a software agent that provides a comprehensive, one-to-one systems management solution in two ways: through an integrated, web browser-based graphical user interface (GUI); The command line interface (CLI) displayed through the operating system.

Enables system administrators to manage systems locally and remotely on the network.

  • Managed nodes: Install the agent and web components. (Windows, Linux)
  • VIBVIB: Agent for OMSA, without web components (VMware).

2. Linux deployment omsa

2.1 Solution 1: Script/rpm

wget https://downloads.dell.com/FOLDER04616506M/1/OM-SrvAdmin-Dell-Web-LX-9.1.0-2757.RHEL6.x86_64_A00.tar.gz
tar xf OM-SrvAdmin-Dell-Web-LX-9.1.0-2757.RHEL6.x86_64_A00.tar.gz  -C /opt/
yum -y install openwsman-client ipmi && cd  /opt/linux/RPMS/supportRPMS/srvadmin/RHEL6/x86_64 && yum -y localinstall * && cd  /opt/linux/RPMS/supportRPMS/metaRPMS/RHEL6/x86_64  && yum -y localinstall *

2.2 Solution 2: yum

## 配置yum仓库:
[root@bj-wlj-datanode-172-38-1-196 ~]# cat /etc/yum.repos.d/dell.repo 
[dell]
baseurl = http://172.38.1.196/dell/omsa/
gpgcheck = 0
name = dell-repo
### dell公网yum仓库获取: wget -q -O - http://linux.dell.com/repo/hardware/OMSA_x.x/bootstrap.cgi | bash

## 安装并启动服务
# yum -y install srvadmin-all
# systemctl start,enable dataeng

----
# wget -q -O - http://linux.dell.com/repo/hardware/OMSA_7.2/bootstrap.cgi | bash
# yum install srvadmin-all
或者
# yum install -y srvadmin-base srvadmin-storageservices//推荐,安装必要的软件,速度快

2.3 Access:

https://system ip:1311

Username: root

Password: system root password

insert image description here
linux omsa installation guide

command line guide

3. VMware ESXI deployment omsa

3.1 Software package introduction

idrac service for ESXI service plugin

OMSA for VMware software

windows management software

insert image description here

The agent of vmware does not have the function of web components, so there are three packages:

  • omsa idrac basic module
  • omsa system software
  • omsa Windows agent software (management through agent remote vmware)

3.2.2 Download and upload to ESXI host:

[root@gs-ansible-1-118 ESXI]# ll
total 13888
-rw-r--r-- 1 root root 2679338 Apr 20 11:44 ISM-Dell-Web-4.2.0.0-2581.VIB-ESX6i-Live_A00.zip
-rw-r--r-- 1 root root 7113139 Apr 20 11:44 OM-SrvAdmin-Dell-Web-10.1.0.0-4634.VIB-ESX67i_A00.zip
-rw-r--r-- 1 root root 4419566 Apr 19 16:26 PERCCLI_MRXX5_7.1910.0_A12_VMware.tar.gz
[root@gs-ansible-1-118 ESXI]# ssh 192.168.1.28 'mkdir /vmfs/volumes/192.168.1.28-os/tools' 
[root@gs-ansible-1-118 ESXI]# scp ISM-Dell-Web-4.2.0.0-2581.VIB-ESX6i-Live_A00.zip 192.168.1.28:/vmfs/volumes/192.168.1.28-os/tools/
ISM-Dell-Web-4.2.0.0-2581.VIB-ESX6i-Live_A00.zip                                                                                                                                  100% 2617KB   2.6MB/s   00:00    
[root@gs-ansible-1-118 ESXI]# scp OM-SrvAdmin-Dell-Web-10.1.0.0-4634.VIB-ESX67i_A00.zip  192.168.1.28:/vmfs/volumes/192.168.1.28-os/tools/
OM-SrvAdmin-Dell-Web-10.1.0.0-4634.VIB-ESX67i_A00.zip                                                                                                                             100% 6946KB   6.8MB/s   00:00    

3.3 Software installation

ISM idrac-server-manager installation

[root@gs-ansible-1-118 ESXI]#  ssh 192.168.1.28 'cd  /vmfs/volumes/192.168.1.28-os/tools && unzip ISM-Dell-Web-4.2.0.0-2581.VIB-ESX6i-Live_A00.zip '
Archive:  ISM-Dell-Web-4.2.0.0-2581.VIB-ESX6i-Live_A00.zip
  inflating: index.xml
  inflating: vendor-index.xml
  inflating: metadata.zip
  inflating: vib20/dcism/Dell_bootbank_dcism_4.2.0.0.ESXi6-2581.vib
  
 ssh 192.168.1.28 'esxcli software vib install -v /vmfs/volumes/192.168.1.28-os/tools/vib20/dcism/Dell_bootbank_dcism_4.2.0.0.ESXi6-2581.vib'		

OM-Srvadmin OMSA software installation

[root@gs-ansible-1-118 ESXI]#  ssh 192.168.1.28 'cd  /vmfs/volumes/192.168.1.28-os/tools && unzip OM-SrvAdmin-Dell-Web-10.1.0.0-4634.VIB-ESX67i_A00.zip '
Archive:  OM-SrvAdmin-Dell-Web-10.1.0.0-4634.VIB-ESX67i_A00.zip
replace index.xml? [y]es, [n]o, [A]ll, [N]one, [r]ename: A  
  inflating: index.xml
  inflating: vendor-index.xml
  inflating: metadata.zip
  inflating: vib20/OpenManage/Dell_bootbank_OpenManage_10.1.0.0.ESXi670-4634.vib
[root@gs-ansible-1-118 ESXI]#  ssh 192.168.1.28 'esxcli software vib install -v /vmfs/volumes/192.168.1.28-os/tools/vib20/OpenManage/Dell_bootbank_OpenManage_10.1.0.0.ESXi670-4634.vib'
Installation Result
   Message: Operation finished successfully.
   Reboot Required: false
   VIBs Installed: Dell_bootbank_OpenManage_10.1.0.0.ESXi670-4634
   VIBs Removed: 
   VIBs Skipped: 

3.4 ESXI vib package management:

  • View a list of installed VIB packages using the command: esxcli software vib list
  • Install the VIB package using the following command: esxcli software vib install -v /vmfs/volume/datastore1/vmware-perccli-xxx.xxxx.xxxx.xxxx.vib --no-sig-check, where /vmfs/volume/datastore1 is The path details of the VIB.
  • You can remove the installed VIB with the command: esxcli software vib remove -n=vmware-esx-perccli.vib --force
  • Run perccli by browsing to: cd /opt/lsi/perccli

reference:

omsa esxi installation process

omsa esxi installation process 0

4. Basic use

4.1 Access to:

4.1.1 omsa vmware access:

4.1.2 linux/windows system:

https://system ip:1311

Username: root

Password: system root password

insert image description here

4.2 Common functions

  1. Indicator viewing is the same as idrac
  2. Common operations are the same as idrac
  3. Modify idrac information
    • Modify idrac password information
    • Modify idrac network information
    • reset idrac
    • slightly

V. Monitoring

5.1 Introduction:

In addition to providing a web management interface, omsa also provides a large number of command line tools, and you can use commands to obtain information such as system status. For this reason, hardware monitoring can be completed through zabbix custom monitoring items.

Due to system reasons, zabbix-agent can be installed on windows linux system as much as possible. Omsa's custom zabbix monitoring generally refers to windows/linux systems. This demo operation is a Linux system.

The OpenManage system management solution is an IT system management solution developed by Dell based on its own R&D strength. Through close cooperation with industry-leading system management solution providers and a deep understanding of users' needs for system management, the OpenManage system management solution can It comprehensively solves the three major system management problems of system deployment, system monitoring and system change that system managers are most concerned about.

Role: Install OpenManage for server hardware monitoring, such as battery, motherboard, temperature, and hard disk, etc.

5.2 Introduction to monitoring commands:

Command information directory: /opt/dell/srvadmin/bin

[root@bj-wlj-datanode-172-38-1-196 bin]# ls
idracadm7  iTP_post_script.sh  omconfig  omexec  omhelp  omreport  omupdate  stdcliproxy
[root@bj-wlj-datanode-172-38-1-196 bin]# pwd
/opt/dell/srvadmin/bin

OMSA comes with some tools to provide us with command line query and setting interfaces. Here are two main ones, one is omreport and the other is omconfig. omreport is used to query the status of various hardware of the server, and omconfig is used to set some properties of the hardware.

Here I only list the commonly used commands of these two commands. For more command details, you can go to the following two websites for inquiries:

1、http://www.sxszjzx.com/~t096/manual/sc/Dosa/CLI/report.htm
2、http://topics-cdn.dell.com/pdf/dell-opnmang-srvr-admin-v8.1_Users%20Guide_en-us.pdf

Common command guide:

/opt/dell/srvadmin/bin/omreport chassis                     # 显示所有主要组件的常规状态 
/opt/dell/srvadmin/bin/omreport chassis memory              # 显示内存信息
/opt/dell/srvadmin/sbin/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                 # 查看电池属性
/opt/dell/srvadmin/bin/omconfig storage controller action=setrebuildrate controller=0 rate=100            # 调整rebuild的速度
/opt/dell/srvadmin/bin/omconfig  storage vdisk  action=changepolicy controller=0 vdisk=0 readpolicy=ara   # 修改raid的读策略
/opt/dell/srvadmin/bin/omconfig  storage vdisk  action=changepolicy controller=0 vdisk=0 writepolicy=fwb 



# omreport chassis
Health
Main System Chassis

SEVERITY : COMPONENT       级别,组件
Ok       : Fans            风扇            
Ok       : Intrusion       入侵(比如开机箱盖)
Ok       : Memory          内存
Ok       : Power Supplies  电源供给
Ok       : Power Management 电源管理
Ok       : Processors      处理器
Ok       : Temperatures    温度
Ok       : Voltages        电压
Ok       : Hardware Log    硬件日志
Ok       : Batteries       电池

command line guide

5.3 Monitoring case custom monitoring items:

##############Follow is Monitor Hardware##################
#状态1表示正常,状态0表示异常
UserParameter=hardware_battery,/opt/dell/srvadmin/bin/omreport chassis batteries|awk '/^Status/{if($NF=="Ok") {print 1} else {print 0}}'
UserParameter=hardware_fan_health,awk -vhardware_fan_number=`/opt/dell/srvadmin/bin/omreport chassis fans|grep -c "^Index"` -vhardware_fan=`/opt/dell/srvadmin/bin/omreport chassis fans|awk '/^Status/{if($NF=="Ok
") count+=1}END{print count}'` 'BEGIN{if(hardware_fan_number==hardware_fan) {print 1} else {print 0}}'
UserParameter=hardware_memory_health,awk -vhardware_memory=`/opt/dell/srvadmin/bin/omreport chassis memory|awk '/^Health/{print $NF}'` 'BEGIN{if(hardware_memory=="Ok") {print 1} else {print 0}}'
UserParameter=hardware_nic_health,awk -vhardware_nic_number=`/opt/dell/srvadmin/bin/omreport chassis nics |grep -c "Interface Name"` -vhardware_nic=`/opt/dell/srvadmin/bin/omreport chassis nics |awk '/^Connectio
n Status/{print $NF}'|wc -l` 'BEGIN{if(hardware_nic_number==hardware_nic) {print 1} else {print 0}}'
UserParameter=hardware_cpu,/opt/dell/srvadmin/bin/omreport chassis processors|awk '/^Health/{if($NF=="Ok") {print 1} else {print 0}}'
UserParameter=hardware_power_health,awk -vhardware_power_number=`/opt/dell/srvadmin/bin/omreport chassis pwrsupplies|grep -c "Index"` -vhardware_power=`/opt/dell/srvadmin/bin/omreport chassis pwrsupplies|awk '/^
Status/{if($NF=="Ok") count+=1}END{print count}'` 'BEGIN{if(hardware_power_number==hardware_power) {print 1} else {print 0}}'
UserParameter=hardware_temp,/opt/dell/srvadmin/bin/omreport chassis temps|awk '/^Status/{if($NF=="Ok") {print 1} else {print 0}}'|head -n 1
UserParameter=hardware_physics_health,awk -vhardware_physics_disk_number=`/opt/dell/srvadmin/bin/omreport storage pdisk controller=0|grep -c "^ID"` -vhardware_physics_disk=`/opt/dell/srvadmin/bin/omreport storag
e pdisk controller=0|awk '/^Status/{if($NF=="Ok") count+=1}END{print count}'` 'BEGIN{if(hardware_physics_disk_number==hardware_physics_disk) {print 1} else {print 0}}'
UserParameter=hardware_virtual_health,awk -vhardware_virtual_disk_number=`/opt/dell/srvadmin/bin/omreport storage vdisk controller=0|grep -c "^ID"` -vhardware_virtual_disk=`/opt/dell/srvadmin/bin/omreport storag
e vdisk controller=0|awk '/^Status/{if($NF=="Ok") count+=1}END{print count}'` 'BEGIN{if(hardware_virtual_disk_number==hardware_virtual_disk) {print 1} else {print 0}}'

5.4 zabbix template:

<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
    <version>5.0</version>
    <date>2022-04-20T15:09:42Z</date>
    <groups>
        <group>
            <name>Templates</name>
        </group>
    </groups>
    <templates>
        <template>
            <template>Template Dell Monitor Linux</template>
            <name>Template Dell Monitor Linux</name>
            <groups>
                <group>
                    <name>Templates</name>
                </group>
            </groups>
            <applications>
                <application>
                    <name>Dell Monitor</name>
                </application>
            </applications>
            <items>
                <item>
                    <name>CMOS电池状态</name>
                    <key>hardware_battery</key>
                    <delay>60</delay>
                    <applications>
                        <application>
                            <name>Dell Monitor</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;1</expression>
                            <name>CMOS电池状态异常</name>
                            <priority>AVERAGE</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>CPU状态</name>
                    <key>hardware_cpu</key>
                    <delay>60</delay>
                    <applications>
                        <application>
                            <name>Dell Monitor</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;1</expression>
                            <name>CPU状态异常</name>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>风扇状态</name>
                    <key>hardware_fan_health</key>
                    <delay>60</delay>
                    <applications>
                        <application>
                            <name>Dell Monitor</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;1</expression>
                            <name>风扇状态异常</name>
                            <priority>AVERAGE</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>内存状态</name>
                    <key>hardware_memory_health</key>
                    <delay>60</delay>
                    <applications>
                        <application>
                            <name>Dell Monitor</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;1</expression>
                            <name>内存状态异常</name>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>网卡状态</name>
                    <key>hardware_nic_health</key>
                    <delay>60</delay>
                    <status>DISABLED</status>
                    <applications>
                        <application>
                            <name>Dell Monitor</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;1</expression>
                            <name>网卡硬件状态异常</name>
                            <priority>AVERAGE</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>磁盘健康状态</name>
                    <key>hardware_physics_health</key>
                    <delay>60</delay>
                    <applications>
                        <application>
                            <name>Dell Monitor</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;1</expression>
                            <name>磁盘健康状态异常</name>
                            <priority>AVERAGE</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>电源状态</name>
                    <key>hardware_power_health</key>
                    <delay>60</delay>
                    <applications>
                        <application>
                            <name>Dell Monitor</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;1</expression>
                            <name>电源状态异常</name>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>服务器温度状态</name>
                    <key>hardware_temp</key>
                    <delay>60</delay>
                    <applications>
                        <application>
                            <name>Dell Monitor</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;1</expression>
                            <name>服务器温度状态异常已超过默认阈值</name>
                            <priority>HIGH</priority>
                        </trigger>
                    </triggers>
                </item>
                <item>
                    <name>RAID状态</name>
                    <key>hardware_virtual_health</key>
                    <delay>60</delay>
                    <applications>
                        <application>
                            <name>Dell Monitor</name>
                        </application>
                    </applications>
                    <triggers>
                        <trigger>
                            <expression>{last()}&lt;&gt;1</expression>
                            <name>RAID状态异常</name>
                            <priority>DISASTER</priority>
                        </trigger>
                    </triggers>
                </item>
            </items>
        </template>
    </templates>
    <graphs>
        <graph>
            <name>CMOS电池状态</name>
            <graph_items>
                <graph_item>
                    <drawtype>BOLD_LINE</drawtype>
                    <color>1A7C11</color>
                    <item>
                        <host>Template Dell Monitor Linux</host>
                        <key>hardware_battery</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>CPU状态</name>
            <graph_items>
                <graph_item>
                    <drawtype>BOLD_LINE</drawtype>
                    <color>1A7C11</color>
                    <item>
                        <host>Template Dell Monitor Linux</host>
                        <key>hardware_cpu</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>RAID状态</name>
            <graph_items>
                <graph_item>
                    <drawtype>BOLD_LINE</drawtype>
                    <color>1A7C11</color>
                    <item>
                        <host>Template Dell Monitor Linux</host>
                        <key>hardware_virtual_health</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>内存状态</name>
            <graph_items>
                <graph_item>
                    <drawtype>BOLD_LINE</drawtype>
                    <color>1A7C11</color>
                    <item>
                        <host>Template Dell Monitor Linux</host>
                        <key>hardware_memory_health</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>服务器温度状态</name>
            <graph_items>
                <graph_item>
                    <drawtype>BOLD_LINE</drawtype>
                    <color>1A7C11</color>
                    <item>
                        <host>Template Dell Monitor Linux</host>
                        <key>hardware_temp</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>电源状态</name>
            <graph_items>
                <graph_item>
                    <drawtype>BOLD_LINE</drawtype>
                    <color>1A7C11</color>
                    <item>
                        <host>Template Dell Monitor Linux</host>
                        <key>hardware_power_health</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>磁盘健康</name>
            <graph_items>
                <graph_item>
                    <drawtype>BOLD_LINE</drawtype>
                    <color>1A7C11</color>
                    <item>
                        <host>Template Dell Monitor Linux</host>
                        <key>hardware_physics_health</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>网卡状态</name>
            <graph_items>
                <graph_item>
                    <drawtype>BOLD_LINE</drawtype>
                    <color>1A7C11</color>
                    <item>
                        <host>Template Dell Monitor Linux</host>
                        <key>hardware_nic_health</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
        <graph>
            <name>风扇状态</name>
            <graph_items>
                <graph_item>
                    <drawtype>BOLD_LINE</drawtype>
                    <color>1A7C11</color>
                    <item>
                        <host>Template Dell Monitor Linux</host>
                        <key>hardware_fan_health</key>
                    </item>
                </graph_item>
            </graph_items>
        </graph>
    </graphs>
</zabbix_export>

reference:

https://blog.csdn.net/qq_36357820/article/details/78480296

https://blog.csdn.net/GX_1_11_real/article/details/81634083

http://www.ttlsa.com/linux/dell-install-open-manage-omsa/

dell omse summary page

command line guide

Six. iDRACTools installation, racadm use

OMSA is a large tool set, including many application attacks. In the actual use process, there may be some package conflicts that make it impossible to install, or only temporarily use some functions, you can directly install the idractools tool.

6.1 Installation:

Install iDRACTools and use the racadm command to achieve related operations;

The link to the download page of the latest version of iDRACTools for Linux is as follows:
https://www.dell.com/support/home/zh-cn/drivers/driversdetails?driverid=df1nd&oscode=rhe70&productcode=poweredge-r750

Click to download the program as shown below:
insert image description here

Pull down to find the compatible models and operating systems of this version of iDRAC Tools, as well as installation instructions:
insert image description here

Note: After installation, you need to run the su command or log out and log in again to the current linux user to reload the environment variables.
You can also refer to the attached document "Install iDRAC Tools and run racadm.pdf under CentOS"

racadm command manual: https://dl.dell.com/content/manual64240962-integrated-dell-remote-access-controller-9-racadm-cli-guide.pdf?language=en-us&ps=true

CentOS 6.x installation

You can use this version to see: https://www.dell.com/support/home/zh-cn/drivers/driversdetails?driverid=g3ndf&oscode=rh60

6.2 User Management:

With racadm installed, you can create a new user through the following steps:

1. You can use racadm get idrac.users.x to read user information (root user id is 2, user id1 is reserved, you can use user ids 3~16 to create new users), the following figure is to view root Example user information:
insert image description here

2. For example, we want to use user id9 to create a new user. The example steps are as follows:

  1. First check the attributes of user id9, command: racadm get idrac.users.9
    You can see that the user is not enabled, the user name is empty, and the authority is 0x0
    insert image description here

2) Modify the above attributes and set/modify the password:
set the user name, command (please modify the user name as needed): racadm set idrac.users.9.UserName test
insert image description here

Set the user password, command (please modify the password according to your needs): racadm set idrac.users.9.Password TestPassw0rd!
insert image description here

Set user privileges, command (here set the same privileges as root user): racadm set idrac.users.9.Privilege 0x1ff
insert image description here

Finally enable the user, command: racadm set idrac.users.9.Enable Enabled
insert image description here

Guess you like

Origin blog.csdn.net/weixin_43423965/article/details/128559627