[racktables-users] Re: Include object label on rackspace

  • From: Edward Wallquist <ewallquist@xxxxxxxxx>
  • To: racktables-users@xxxxxxxxxxxxx
  • Date: Wed, 26 Apr 2017 13:27:18 +0200

Hi!
Did you get any help with this? I did some changes to get more information
in my racks, correct or not, I do not know, I am not a developer either but
it works...
In the function renderRack I added two rows after the line you mentioned
above:

  case 'T':
                                        printObjectDetailsForRenderRack
($rackData[$i][$locidx]['object_id'], $hl_obj_id);
                                        //Below here was added HW-type by
EW 2016-12-07

$result=(getAttrValues($rackData[$i][$locidx]['object_id']));
                                        printf("HW
type:".$result['2']['a_value']."<br/>");

where you have to change the 2 in $result[2] to the appropriate attribute
id you want to show.

Hope this helps


br
/edward

On Wed, Mar 22, 2017 at 3:19 PM, Alexandre Cainelli <
alexandre.cainelli@xxxxxxxxxxx> wrote:

Someone can help me with this issue? I still haven't found the solution.

Tks,
Alexandre Cainelli

Em 17/02/2017 16:53, Alexandre Cainelli escreveu:

Hello everybody,

I'm not a developer, so i don't know what to do hehe .. i would like to
know if there is a way to include the Label of the objects on the
rackspace.

Ex: I'm using a domain in the label value.

I have an object and the Common Name is Server1 and this object is mounted
on Rack "RackTest". When i go to the rackspace page and navigate to
RackTest page i wanna see the object mounted as "Server1 - domain.com."


I found the following line in the interface.php file:

printObjectDetailsForRenderRack ($rackData[$i][$locidx]['object_id'],
$hl_obj_id);

When i duplicated this line i can see two "Common name" values in the
browser. I need to know which variable i have to create/use for replace the
"object_id" in this line that i duplicated.

Regards,
Alexandre Cainelli



Other related posts: