phsmith / python

Python scripts
1 stars 0 forks source link

How to update components values that you see when you click on one of the components? #4

Open arzWZM opened 4 years ago

arzWZM commented 4 years ago

Hi, How do I update components values when injecting? For example, RAID has option YES or NO but I can't set it. Similar Raid has INTERFACE and Individual HARD DRIVES have STATUS option but that doesn't work either.

Here are some screenshots. These are option you can see when you click onone of the item in Components page.

image

image

<CONTROLLERS>
  <CAPTION>PERC H710 Mini</CAPTION>
  <MANUFACTURER>DELL</MANUFACTURER>
  <NAME>PERC H710 Mini</NAME>
  <PCISUBSYSTEMID/>
  <PRODUCTID/>
  <TYPE>Serial Attached SCSI (SAS)</TYPE>
  <VENDORID/>
  <RAID>1</RAID>                                          -> Doesn't do anything
  <INTERFACE>SATA</INTERFACE>                 -> Doesn't do anything
</CONTROLLERS>

OR

<STORAGES>
  <DESCRIPTION>Solid-state drive</DESCRIPTION>
  <DISKSIZE>1907200</DISKSIZE>
  <FIRMWARE>123456</FIRMWARE>
  <INTERFACE>Fibre Channel</INTERFACE>
  <MANUFACTURER/>
  <MODEL>Samsung SSD 860 QVO 2TB</MODEL>
  <NAME>Physical Disk 0:1:0</NAME>
  <SCSI_COID/>
  <SCSI_LUN/>
  <SCSI_UNID/>
  <SERIAL>123456789123</SERIAL>
  <SERIALNUMBER>123456789123</SERIALNUMBER>
  <TYPE>Solid-state drive</TYPE>
  <STATUS>Online</STATUS>                 -> Doesn't do anything
phsmith commented 4 years ago

Hi @arzWZM, I'm really don't know how you could set these attributes through the XML.

I think that you could try to do something like enable debug on GLPI and set those values manually and see if something useful is show while debuging.

Long time ago, when I worked with GLPI and Fusioninventory, I remember that I'd got a example of those XML attributes on some fusioninventory directory on the server or running fusioninventory-agent manually.