[racktables-users] Re: trying to get object name and FQDN via API

  • From: Denis Ovsienko <infrastation@xxxxxxxxx>
  • To: "racktables-users@xxxxxxxxxxxxx" <racktables-users@xxxxxxxxxxxxx>
  • Date: Fri, 04 Apr 2014 18:32:21 +0400

04.04.2014, 18:24, "Matt Lowe" <matt.lowe@xxxxxxxxxxxxxxxxx>:
> Hi,
>
> Can anyone tell me how to get a list of all the objects in racktables along 
> with there FQDN via the PHP API?
>
> I have tried :
>
> $objects=scanRealmByText(‘objects’);
>

foreach ($objects as $o)
{
  # $o doesn't have the attribute information
  amplifyCell ($o);
  # now it does, let's see...
  dump ($o);
  # FQDN attribute ID is 3
}

> But this doesn’t appear to have the FQDN information in it.  I am wanting to 
> create a couple of scripts that scan all devices and list there used/open 
> ports etc.
>

The ports information would be in $o['ports']

-- 
    Denis Ovsienko

Other related posts: