1Ocsinventory::Agent::XMULs:e:rInCvoennttroirbyu(t3e)d PeOrclsiDnovceunmteonrtya:t:iAognent::XML::Inventory(3)
2
3
4
6 Ocsinventory::Agent::XML::Inventory - the XML abstraction layer
7
9 OCS Inventory uses XML for the data transmission. The module is the
10 abstraction layer. It's mostly used in the backend module where it
11 called $inventory in general.
12
13 new()
14 The usual constructor.
15
16 initialise()
17 Runs the backend modules to initialise the data.
18
19 getContent()
20 Return the inventory as a XML string.
21
22 printXML()
23 Only for debugging purpose. Print the inventory on STDOUT.
24
25 writeXML()
26 Save the generated inventory as an XML file. The 'local' key of the
27 config is used to know where the file as to be saved.
28
29 processChecksum()
30 Compute the <CHECKSUM/> field. This information is used by the
31 server to know which parts of the XML have changed since the last
32 inventory.
33
34 The is done thank to the last_file file. It has MD5 prints of the
35 previous inventory.
36
37 saveLastState()
38 At the end of the process IF the inventory was saved correctly, the
39 last_state is saved.
40
41 addSection()
42 A generic way to save a section in the inventory. Please avoid this
43 solution.
44
45 feedSection()
46 Add information in inventory.
47
48
49
50perl v5.34.0 2022-01O-c2s6inventory::Agent::XML::Inventory(3)