Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

在 Linux 操作系统上提供 iDRAC URL 和 IP 地址

Summary: 有必要获取操作系统中可用iDRAC的某些相关信息,尤其是BMC的IP地址和用于访问iDRAC的Web控制台的URL。

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Symptoms

这是一篇关于在 Linux 操作系统和 iDRAC 之间交换信息的文章的延续。

在操作系统中提供有关 iDRAC 的一些信息非常有用,特别是 BMC 的 IP 地址以及 iDRAC Web 控制台的 URL。URL可用于建立与iDRAC的Web控制台的会话,而IP则可用于配置需要与iDRAC通信的其它服务(将在以后的文章中讨论)。这两者均可通过 IPMI 检索。

可以通过查询每个 lan 通道来检索 IP 地址:

        # ipmitool lan print <channel>

访问 URL 需要一个新的子命令来获取 ipmitool 中的 getsysinfo(在 1.8.12 及更高版本中),并且可以使用以下命令进行检索:

        # ipmitool mc getsysinfo delloem_url

exchange-bmc-os-info 脚本可将此信息作为 shell 环境变量提供给特权用户:BMC_URL和BMC_IPv4。
 

使用exchange-bmc-os-info访问URL和IP

  • 要开始使用iDRAC的URL或IP,按照previous post(先前的开机自检)中所述的安装说明安装exchange-bmc-os-info软件包,并确保该服务已启动。
  • URL和IP将通过/var/run/bmc-info提供。我们将确保在登录时使用/etc/profile.d/set-bmc-url.sh执行此设置
  • 设置并作为root用户登录后,我们可以使用


                          # su user –c “xdg-open $BMC_URL” 

SLN312324_en_US__1icon 说明:不建议将xdg-open用作root。 
  • 我们可以使用

                        # ssh root@$BMC_IPv4

让我们知道您在 https://lists.us.dell.com/ 对此的看法

Cause

 

Resolution

 

Article Properties


Last Published Date

30 Jan 2023

Version

4

Article Type

Solution