Outils pour utilisateurs

Outils du site


tech:notes_dell_openmanage

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
tech:notes_dell_openmanage [2025/05/31 18:39] Jean-Baptistetech:notes_dell_openmanage [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Brouillon Docker Matériel}}
 +
 +# Notes Dell OpenManage
 +
 +
 +## OpenManage dans un container Docker
 +
 +Voir https://hub.docker.com/r/jdelaros1/openmanage-snmp/
 +
 +| **Utilisateur** | **Mot de passe** |
 +| --------------- | ---------------- |
 +| root            | password         |
 +
 +Il convient seulement de remplacer la ligne suivante :
 +~~~
 +RUN wget -q -O - http://linux.dell.com/repo/hardware/DSU_16.02.00/bootstrap.cgi | bash
 +~~~
 +
 +Par 
 +~~~
 +RUN wget -q -O - http://linux.dell.com/repo/hardware/DSU_17.03.00/bootstrap.cgi | bash
 +~~~
 +
 +ou encore par
 +~~~
 +RUN wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
 +~~~
 +
 +`Dockerfile`
 +~~~bash
 +FROM centos:centos7
 +
 +#MAINTAINER Jose De la Rosa "https://github.com/jose-delarosa"
 +#LABEL org.opencontainers.image.authors="Jose De la Rosa https://github.com/jose-delarosa"
 +
 +#ENV http_proxy http://192.168.56.1:3128
 +#ENV https_proxy http://192.168.56.1:3128
 +
 +ARG https_proxy
 +ARG http_proxy
 +
 +# Environment variables
 +ENV PATH $PATH:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin
 +ENV USER root
 +ENV PASS password
 +
 +# Do overall update and install missing packages needed for OpenManage
 +RUN yum -y update && \
 +    yum -y install gcc wget perl passwd which tar libstdc++.so.6 compat-libstdc++-33.i686 glibc.i686
 +
 +# Set login credentials
 +RUN echo "$USER:$PASS" | chpasswd
 +
 +# Add OMSA repo
 +#RUN wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
 +RUN wget -q -O - http://linux.dell.com/repo/hardware/DSU_17.03.00/bootstrap.cgi | bash
 +
 +# Let's "install all", however we can select specific components instead
 +RUN yum -y install srvadmin-all && yum clean all
 +
 +# Prevent daemon helper scripts from making systemd calls
 +ENV SYSTEMCTL_SKIP_REDIRECT=1
 +
 +# Restart application to ensure a clean start
 +CMD /usr/sbin/snmpd && srvadmin-services.sh restart && tail -f /opt/dell/srvadmin/var/log/openmanage/dcsys64.xml
 +~~~
 +
 +Build
 +~~~bash
 +docker build -t omsa82-snmp --build-arg http_proxy=http://192.168.56.1:3128 --build-arg https_proxy=http://192.168.56.1:3128 .
 +~~~
 +
 +Lancement
 +~~~bash
 +# Sur port 161/udp
 +#docker run --privileged --userns=host -d -p 161:161/udp -p 1311:1311 --restart=always --net=host -v /lib/modules/`uname -r`:/lib/modules/`uname -r` --name=omsa82-snmp jdelaros1/openmanage-snmp
 +
 +# Sur un autre port
 +#docker run --privileged --userns=host -d -p 160:161/udp -p 1311:1311 --restart=always -v /lib/modules/`uname -r`:/lib/modules/`uname -r` --name=omsa82-snmp jdelaros1/openmanage-snmp
 +docker run --privileged --userns=host -d -p 160:161/udp -p 1311:1311 --restart=always -v /lib/modules/`uname -r`:/lib/modules/`uname -r` --name=omsa82-snmp docker.io/jdelaros1/openmanage-snmp
 +~~~
 +
 +
 +#### Test RedHat8 OMSA 9.2
 +
 +** Ne fonctionne pas !**
 +
 +`vars.sh`
 +~~~bash
 +export KERN_RELEASE=$(uname -r)
 +export PASS=P@ssw0rd
 +
 +export http_proxy=http://192.168.22.20:3128
 +export https_proxy=http://192.168.22.20:3128
 +~~~
 +
 +`Dockerfile`
 +~~~bash
 +FROM centos:centos8
 +
 +#MAINTAINER Jose De la Rosa "https://github.com/jose-delarosa"
 +#LABEL org.opencontainers.image.authors="Jose De la Rosa https://github.com/jose-delarosa"
 +
 +ARG http_proxy
 +ARG https_proxy
 +ARG PASS
 +
 +# Environment variables
 +ENV PATH $PATH:/opt/dell/srvadmin/bin:/opt/dell/srvadmin/sbin
 +ENV USER root
 +#ENV PASS password
 +
 +# Do overall update and install missing packages needed for OpenManage
 +#RUN yum -y update
 +RUN yum -y install gcc wget perl passwd which tar net-snmp initscripts
 +
 +# Set login credentials
 +RUN echo "$USER:$PASS" | chpasswd
 +
 +# Add OMSA repo
 +#RUN wget -q -O - https://linux.dell.com/repo/hardware/latest/bootstrap.cgi | sed -e '/^IMPORT_GPG_CONFIRMATION="na"/s/na/yes/' | bash
 +RUN wget -q -O - http://linux.dell.com/repo/hardware/DSU_20.02.00/bootstrap.cgi | sed -e '/^IMPORT_GPG_CONFIRMATION="na"/s/na/yes/' | bash
 +
 +# Let's "install all", however we can select specific components instead
 +RUN yum -y install srvadmin-all && yum clean all
 +
 +
 +# Restart application to ensure a clean start
 +CMD /usr/sbin/snmpd && srvadmin-services.sh restart
 +
 +#/etc/init.d/dataeng start
 +#/etc/init.d/dsm_om_connsvc start
 +#/etc/init.d/dsm_om_shrsvc start
 +~~~
 +
 +`docker-compose.yml`
 +~~~yaml
 +version: "3.7"
 +
 +
 +services:
 +  openmanage:
 +    privileged: true
 +    build:
 +      context: .
 +      args:
 +        - http_proxy=http://172.18.22.20:3128
 +        - https_proxy=http://172.18.22.20:3128
 +        - PASS=$PASS
 +      network: host
 +    network_mode: "host"
 +    ports:
 +      - "1311:1311"
 +      - "161:161/udp"
 +    volumes:
 +      - /lib/modules/$KERN_RELEASE:/lib/modules/$KERN_RELEASE:ro
 +      - /dev/:/dev/
 +~~~
 +
 +
 +### Vérification
 +
 +https://localhost:1311
 +
 +~~~bash
 +omreport chassis fans
 +~~~
 +
 +
 +### Modification / Mis-à-jour 
 +
 +~~~bash
 +srvadmin-services.sh stop
 +rpm -e $(rpm -qa | grep srvadmin)
 +wget http://linux.dell.com/repo/hardware/DSU_17.03.00/os_dependent/RHEL7_64/srvadmin/srvadmin-jre-8.4.0-2193.9883.el7.x86_64.rpm
 +mkdir plop
 +cd plop
 +tar xzvf ../OM-SrvAdmin-Dell-Web-LX-8.5.0-2372.RHEL7.x86_64_A00.tar.gz
 +cd linux/RPMS/supportRPMS/srvadmin/RHEL7/x86_64
 +yum install net-snmp-utils # net-snmp net-snmp-agent net-snmp-libs net-snmp-utils
 +rpm -Uvh *.rpm
 +ldconfig
 +srvadmin-services.sh start
 +~~~
 +
 +
 +### Pb
 +
 +#### Pb 1
 +
 +~~~
 +Starting dsm_sa_datamgrd: /opt/dell/srvadmin/sbin/dsm_sa_datamgrd: error while loading shared libraries: libdcsupt.so.8: cannot open shared object file: No such file or directory
 +                                                           [FAILED]
 +Starting dsm_sa_eventmgrd: /opt/dell/srvadmin/sbin/dsm_sa_eventmgrd: error while loading shared libraries: libdcsupt.so.8: cannot open shared object file: No such file or directory
 +                                                           [FAILED]
 +Starting dsm_sa_snmpd: /opt/dell/srvadmin/sbin/dsm_sa_snmpd: error while loading shared libraries: libdcsupt.so.8: cannot open shared object file: No such file or directory
 +                                                           [FAILED]
 +Starting DSM SA Shared Services:                            OK  ]
 +Starting DSM SA Connection Service:                        [  OK  ]
 +tail: cannot open ‘/opt/dell/srvadmin/var/log/openmanage/dcsys64.xml’ for reading: No such file or directory
 +~~~
 +
 +Solution
 +~~~bash
 +ldconfig
 +~~~
 +
 +Par info 
 +~~~
 +# rpm -qf /opt/dell/srvadmin/lib64/libdcsupt.so.8
 +srvadmin-deng-8.2.0-1739.8348.el7.x86_64
 +~~~
 +
 +
 +#### Pb 2
 +
 +
 +~~~
 +# docker exec -ti omsa82-snmp omreport chassis fans
 +Error! No fan probes found on this system.
 +~~~
 +
 +Solution :
 +Version plus récente de Dell openmanage
 +
 +
 +## Supervision 
 +
 +### Pb
 +
 +~~~
 +# /usr/lib64/nagios/plugins/check_openmanage -H 172.18.205.2
 +SNMP ERROR [cooling]: The requested entries are empty or do not exist
 +~~~
 +
 +Le pb vient d'openmanage, peut-être la version n'est pas assez récente
 +
 +La commande suivante doit fonctionner
 +~~~bash
 +omreport chassis fans
 +~~~
 +
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki