Draft
Conversation
Collaborator
Author
|
I would appreciate your initial opinion. Related specification : https://outline.teclib.com/doc/inventaire-des-pdus-oEGY3aIdjg#h-inventaire-auto |
Collaborator
|
Seems correct after a quick review :) |
Collaborator
Author
|
Thanks @trasher I suggest keeping this as a draft for now, while I finish implementing the feature. I may need to make some adjustments along the way if necessary. |
Collaborator
|
OK for me 👍 |
g-bougard
reviewed
Jan 29, 2026
Collaborator
Author
|
Example with minimalist XML file <?xml version="1.0" encoding="UTF-8" ?>
<REQUEST>
<CONTENT>
<DEVICE>
<FIRMWARES>
<DESCRIPTION>APC Rack PDU Firmware</DESCRIPTION>
<MANUFACTURER>APC</MANUFACTURER>
<NAME>AP8853</NAME>
<TYPE>PDU</TYPE>
<VERSION>v6.9.6</VERSION>
</FIRMWARES>
<INFO>
<COMMENTS>APC Rack PDU Switched, 2G, Metered-by-Outlet</COMMENTS>
<CONTACT>Schneider Electric Support</CONTACT>
<FIRMWARE>6.9.6</FIRMWARE>
<ID>1</ID>
<IPS>
<IP>192.168.1.50</IP>
</IPS>
<LOCATION>DataCenter_Room_01_Rack_A4</LOCATION>
<MAC>00:C0:B7:65:DE:01</MAC>
<MANUFACTURER>APC</MANUFACTURER>
<MODEL>AP8853</MODEL>
<NAME>PDU-MASTER-RACK-A4</NAME>
<SERIAL>ZA133456789</SERIAL>
<TYPE>PDU</TYPE>
<UPTIME>45:12:30.22</UPTIME>
</INFO>
<PDU>
<TYPE>C13/C19</TYPE>
<PLUGS>
<NAME>Plug_A1</NAME>
<NUMBER>1</NUMBER>
<TYPE>C13</TYPE>
</PLUGS>
<PLUGS>
<NAME>Plug_A2</NAME>
<NUMBER>2</NUMBER>
<TYPE>C14</TYPE>
</PLUGS>
</PDU>
</DEVICE>
<MODULEVERSION>4.1</MODULEVERSION>
<PROCESSNUMBER>1</PROCESSNUMBER>
</CONTENT>
<DEVICEID>APC-PDU-001</DEVICEID>
<QUERY>SNMPQUERY</QUERY>
</REQUEST> |
Collaborator
Author
|
|
g-bougard
reviewed
Feb 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Handle
PDUinventory from SNMPNeeded by : glpi-project/glpi#22863
fixes : https://github.com/glpi-project/Professional-Services/issues/27
Here’s the English summary of this updated PDU structure:
Main object:
pduobjectnameProperties:
name:stringmodel:stringtype:string(required)credentials:integersysdescr:stringplugs:arrayof objectsList of the PDU’s plugs.
Each plug is an object with:
name:string(required) — Name of the plug.number:string(optional) — Plug number.type:string(optional) — Plug type.