Quantcast
Channel: Zenoss Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 853

Get IP from DRAC Card

$
0
0

I am working on some scripts that populate a CMDB from ZenOSS.

 

One of the things we would find very useful is getting the DRAC IP from the Card Info

provided by the DellMon ZenPack. It doesn't appear to work 100% on newer cards,

but that is a seperate issue.

 

Here is my code and what I want to do...

 

for d in dmd.Devices.CIM.WMI.AMR.NWS.getSubDevices():
    if d.productionState >= 300:
      osv = d.getOSProductName()
      mfg = d.getHWManufacturerName()
      hwm = d.getHWProductName()
      sn = d.getHWSerialNumber()
      ip = d.getManageIp()
      name = d.id

 

      print name,osv,mfg,hwm,sn,ip

      for c in d.hw.cards():
        if c.getProductName() == "iDRAC6 Enterprise":

          ###################################################################

          # Here I want to print the Product Name AND IP Address of the card.

          ###################################################################

          print "%s" % (c.getProductName())



 

So basically how can I get the IP Address from the card? It is listed in device details for the card, I just don't know

what function to call to get it. c.getManageIp returns the IP of the machine, as you would expect...

 

Thanks in advance


Viewing all articles
Browse latest Browse all 853

Trending Articles