# Dell OpenManage: Instalação no Centos 7

## 1. Introdução

O Dell EMC OpenManage Server Administrator (OMSA) oferece uma solução de gerenciamento de sistemas abrangente e individualizada de duas formas:

- De uma interface gráfica do usuário (GUI) integrada e baseada em navegador da Web
- Por meio de uma interface de linha de comando (CLI) no sistema operacional (SO)

O Server Administrator foi criado para que os administradores de sistema pudessem focar no gerenciamento de toda a rede, sem deixar de fornecer gerenciamento de sistemas individualizado de forma local e remota.

## <span style="font-weight: 400;">2. Ferramentas utilizadas</span>

<span style="font-weight: 400;">Os softwares utilizados na produção deste tutorial é apresentado a seguir:</span>

- <span style="font-weight: 400;">CentOS 7.4.1708</span>
- <span style="font-weight: 400;">Dell OpenManage 7.4.1-1341</span>
- <span style="font-weight: 400;">Dell PowerEdge R710, com iDRAC6</span>

<span style="font-weight: 400;">O ambiente utilizado é apresentado a seguir:</span>

- <span style="font-weight: 400;">Servidor físico</span><span style="font-weight: 400;">, modelo Dell R710, com o sistema operacional CentOS 7.4</span><span style="font-weight: 400;">  
    </span>

## <span style="font-weight: 400;">3. Instalando o OMSA</span>

<span style="font-weight: 400;">Todos os comandos executados nesse tutorial foram executados com o usuário **root**.</span>

#### <span style="font-weight: 400;">Passos preparatórios</span>

<span style="font-weight: 400;">3.1. </span><span style="font-weight: 400;">Instale as dependências do OMSA:</span><textarea spellcheck="false" style="position: absolute; bottom: -1em; padding: 0px; width: 1px; height: 1em; outline: currentcolor none medium;" tabindex="0" wrap="off"></textarea>

<div data-lang="shell" id="bkmrk-yum-install-libcmpic"><div><div><div><div><div><div><div><div>```
<span role="presentation">yum install libcmpiCppImpl0 openwsman-server openwsman-client sblim-sfcb pciutils</span>
```

</div></div></div></div></div></div></div></div></div><span style="font-weight: 400;">3.2. Altere os dados do sistema para que ele seja identificado como um RHEL 7, não CentOS:</span>

```shell
mv /etc/redhat-release /etc/redhat-release.bak; echo "Red Hat Enterprise Linux Server release 7.0 (Maipo)" >> /etc/redhat-release
```

<span style="font-weight: 400;">3.3. Faça download do OMSA para RHEL 7:</span><textarea spellcheck="false" style="position: absolute; bottom: -1em; padding: 0px; width: 1px; height: 1em; outline: currentcolor none medium;" tabindex="0" wrap="off"></textarea>

<div data-lang="shell" id="bkmrk-wget--c-http%3A%2F%2Fdownl"><div><div><div><div><div><div><div><div>```
<span role="presentation"><span class="cm-builtin">wget</span> <span class="cm-attribute">-c</span> http://downloads.dell.com/FOLDER02645266M/1/OM-SrvAdmin-Dell-Web-LX-7.4.1-1341.RHEL7.x86_64_A00.tar.gz</span>
```

</div></div></div></div></div></div><div><span style="font-weight: 400;">3.4. Descompacte o arquivo baixado e execute a instalação: </span><textarea spellcheck="false" style="position: absolute; bottom: -1em; padding: 0px; width: 1px; height: 1em; outline: currentcolor none medium;" tabindex="0" wrap="off"></textarea></div></div></div></div><div data-lang="shell" id="bkmrk-tar-zxvf-om-srvadmin"><div><div><div><div><div><div><div><div>```
<span role="presentation">tar zxvf OM-SrvAdmin-Dell-Web-LX-7.4.1-1341.RHEL7.x86_64_A00.tar.gz<br></br>./setup.sh</span>
```

</div></div></div></div></div></div><div> <span style="font-weight: 400;">3.5. Restaure o arquivo alterado no passo 3.2:</span><textarea spellcheck="false" style="position: absolute; bottom: -1em; padding: 0px; width: 1px; height: 1em; outline: currentcolor none medium;" tabindex="0" wrap="off"></textarea></div></div></div></div><div data-lang="shell" id="bkmrk-rm-%2Fetc%2Fredhat-relea"><div><div><div><div><div><div><div><div>```
<span role="presentation"><span class="cm-builtin">rm</span> /etc/redhat-release; <span class="cm-builtin">mv</span> /etc/redhat-release.bak /etc/redhat-release</span>
```

</div></div></div></div></div></div><div><span style="font-weight: 400;">3.6. Crie o patch necessário ao funcionamento do OMSA no CentOS:</span><textarea spellcheck="false" style="position: absolute; bottom: -1em; padding: 0px; width: 1px; height: 1em; outline: currentcolor none medium;" tabindex="0" wrap="off"></textarea></div></div></div></div><span style="font-weight: 400;">Crie o arquivo <span role="presentation">`<strong>/tmp/CheckSystemType.patch</strong>` com o conteúdo a seguir. Atente para a formatação na hora da cópia.</span></span>

<div data-lang="shell" id="bkmrk-----checksystemtype-"><div>```YAML
--- CheckSystemType     2019-03-22 19:06:17.956718131 -0300<br></br>+++ CheckSystemType.new 2019-03-22 19:06:35.053476939 -0300<br></br>@@ -204,8 +204,15 @@<br></br><br></br>         IsInSupportedSystemIDs && return $SUPPORTED_DELL_SERVER<br></br><br></br>-        if [ -f /etc/redhat-release ] && [ `grep -c "Maipo" /etc/redhat-release` -gt 0 ]; then<br></br>-                IsSystemSupportedForRHEL7 && return $SUPPORTED_DELL_SERVER<br></br>+        if [ -f /etc/os-release ]; then<br></br>+                . /etc/os-release<br></br>+                case $VERSION_ID in<br></br>+                        7*)<br></br>+                        case "$ID $ID_LIKE" in<br></br>+                                *rhel*)<br></br>+                                IsSystemSupportedForRHEL7 && return $SUPPORTED_DELL_SERVER<br></br>+                        esac<br></br>+                esac<br></br>         fi<br></br><br></br>         IsClientSystem && return $CLIENT_SYSTEM
```

</div></div><span style="font-weight: 400;">3.7. Aplique o patch necessário ao funcionamento do OMSA no CentOS: </span><textarea spellcheck="false" style="position: absolute; bottom: -1em; padding: 0px; width: 1px; height: 1em; outline: currentcolor none medium;" tabindex="0" wrap="off"></textarea>

<div data-lang="shell" id="bkmrk-patch-%2Fopt%2Fdell%2Fsrva"><div data-lang="shell"><div><div><div><div><div><div><div><div>```
<span role="presentation">patch /opt/dell/srvadmin/sbin/CheckSystemType < /tmp/CheckSystemType.patch</span>
```

</div></div></div></div></div></div></div></div></div></div>#### Finalizando as coisas

<span style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; font-family: inherit; font-size: inherit; font-size-adjust: none; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none currentColor;">3.8. Configure a iniciação do serviço do OMSA após o boot : </span><textarea spellcheck="false" style="background-color: #ffffff; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; border-top-left-radius: 3px; border-top-right-radius: 3px; bottom: -1em; box-sizing: border-box; color: #666666; display: inline-block; font-family: -apple-system,BlinkMacSystemFont,&quot; segoe ui&quot;,oxygen,ubuntu,roboto,cantarell,&quot;fira sans&quot;,&quot;droid sans&quot;,&quot;helvetica neue&quot;,sans-serif; font-size: 14px; height: 1em; max-width: 100%; outline-color: currentColor; outline-style: none; outline-width: medium; position: absolute; width: 1px; padding: 0px; border: 1px solid #d4d4d4;" tabindex="0" wrap="off"></textarea>

<div data-lang="shell" id="bkmrk-systemctl-enable-dat"><div><div><div><div><div><div><div><div>```
<span role="presentation" style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; font-family: inherit; font-size: inherit; font-size-adjust: none; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none currentColor;">systemctl enable dataeng.service dsm_om_shrsvc.service</span>
```

</div></div></div></div></div></div></div></div></div><span style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; font-family: inherit; font-size: inherit; font-size-adjust: none; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; line-height: inherit; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none currentColor;"><span style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; color: #616161; font-family: inherit; font-size: inherit; font-size-adjust: none; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: 400; letter-spacing: normal; line-height: inherit; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; vertical-align: baseline; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px; padding: 0px; margin: 0px; border: 0px none currentColor;">3.9. Permita o acesso a porta da interface web do OMSA: </span></span>

<div data-lang="shell" id="bkmrk-firewall-cmd---zone%3D"><div data-lang="shell"><div><div><div><div><div><div><div><div>```
<span role="presentation" style="border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; box-sizing: border-box; font-family: inherit; font-size: inherit; font-size-adjust: none; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; vertical-align: baseline; padding: 0px; margin: 0px; border: 0px none currentColor;">firewall-cmd --zone=public --permanent --add-port=1311/tcp <br></br>firewall-cmd --reload</span>
```

</div></div></div></div></div></div></div></div></div></div><div data-lang="shell" id="bkmrk-caso-tenha-realizado"><div data-lang="shell"><div data-lang="shell"><div><div><div><div><div><div><div><div><div>Caso tenha realizado alguma configuração adicional de zonas no firewall, substitua "public" pelo nome da zona onde se encontra a interface de gerenciamento do servidor. Se o firewall estiver na configuração padrão, mantenha.</div><div> </div></div></div></div></div></div></div></div></div></div></div></div>**Feita a configuração, utilize o navegador para acessar o enderenço IP do servidor, na porta 1311.**

<div data-lang="shell" id="bkmrk-observe-se-a-sua-con"><div><div><div><div><div><div><div><div><div></div><div>Observe se a sua configuração necessita de configurações adicionais decorrentes do uso de outras ferramentas, como o selinux, por exemplo.</div><div></div></div></div></div></div></div></div></div></div></div>#### Referencias

OMSA on CentOS 7 ([https://www.dell.com/community/Systems-Management-General/OMSA-on-CentOs-7/td-p/4553216)](https://www.dell.com/community/Systems-Management-General/OMSA-on-CentOs-7/td-p/4553216))

Dell R720 OpenManage ([https://www.centos.org/forums/viewtopic.php?f=49&amp;t=48532](https://www.centos.org/forums/viewtopic.php?f=49&t=48532))