Hi Denis!
It works! that's exactly what i'm was trying to do. Thank you very much!
Best regards,
Alexandre
On 04/26/2017 03:22 PM, Edward Wallquist wrote:
Hi Alexandre!
In that case, if I understand you correctly, these are the lines you need:
$Result2=spotEntity ('object', $rackData[$i][$locidx]['object_id']);
printf($Result2['label']."<br/>");
they should put the field "visible label" in your racks.
br
/edward
On Wed, Apr 26, 2017 at 4:34 PM, Alexandre Cainelli <alexandre.cainelli@xxxxxxxxxxx <mailto:alexandre.cainelli@xxxxxxxxxxx>> wrote:
Hi Edward,
This is/**/exactly what i'm need. But i need the visible label to
be displayed, and doesn't have a attribute id, only these ones:
1 | string | OEM S/N 1
2 | dict | HW type
3 | string | FQDN
4 | dict | SW type
5 | string | SW version
6 | uint | number of ports
7 | float | max. current, Ampers
8 | float | power load, percents
13 | float | Quantidade de Fontes
14 | string | Watts p/ Fonte
16 | uint | flash memory, MB
17 | uint | DRAM
18 | uint | CPU, MHZ
20 | string | OEM S/N 2
21 | date | support contract expiration
22 | date | HW warranty expiration
24 | date | SW warranty expiration
25 | string | UUID
26 | dict | Hypervisor
27 | uint | Height, units
28 | string | Disk
29 | uint | Sort order
30 | dict | Mgmt type
9999 | string | base MAC address
But you help me a lot, i'm gonna find a way to do what i need and
i'll let you know.
btw, thanks for the code, is also useful for me to display HW Type.
regards,
Alexandre
On 04/26/2017 08:27 AM, Edward Wallquist wrote:
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
<mailto: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 <http://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