1Ocsinventory::Agent::XMULs:e:rInCvoennttroirbyu(t3e)d PeOrclsiDnovceunmteonrtya:t:iAognent::XML::Inventory(3)
2
3
4

NAME

6       Ocsinventory::Agent::XML::Inventory - the XML abstraction layer
7

DESCRIPTION

9       OCS Inventory uses XML for the data transmition. 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 initilise the data.
18
19       addController()
20           Add a controller in the inventory.
21
22       addModem()
23           Add a modem in the inventory.
24
25       addDrive()
26           Add a partition in the inventory.
27
28       addStorages()
29           Add a storage system (hard drive, USB key, SAN volume, etc) in the
30           inventory.
31
32       addMemory()
33           Add a memory module in the inventory.
34
35       addPort()
36           Add a port module in the inventory.
37
38       addSlot()
39           Add a slot in the inventory.
40
41       addSoftware()
42           Register a software in the inventory.
43
44       addMonitor()
45           Add a monitor (screen) in the inventory.
46
47       addVideo()
48           Add a video card in the inventory.
49
50       addSound()
51           Add a sound card in the inventory.
52
53       addNetwork()
54           Register a network in the inventory.
55
56       setHardware()
57           Save global information regarding the machine.
58
59           The use of setHardware() to update USERID and PROCESSOR*
60           informations is deprecated, please, use addUser() and addCPU()
61           instead.
62
63       setBios()
64           Set BIOS informations.
65
66       addCPU()
67           Add a CPU in the inventory.
68
69       addUser()
70           Add an user in the list of logged user.
71
72       addPrinter()
73           Add a printer in the inventory.
74
75       addVirtualMachine()
76           Add a Virtual Machine in the inventory.
77
78       addProcess()
79           Record a running process in the inventory.
80
81       setAccessLog()
82           What is that for? :)
83
84       addIpDiscoverEntry()
85           IpDiscover is used to identify network interface on the local
86           network. This is done on the ARP level.
87
88           This function adds a network interface in the inventory.
89
90       getContent()
91           Return the inventory as a XML string.
92
93       printXML()
94           Only for debugging purpose. Print the inventory on STDOUT.
95
96       writeXML()
97           Save the generated inventory as an XML file. The 'local' key of the
98           config is used to know where the file as to be saved.
99
100       processChecksum()
101           Compute the <CHECKSUM/> field. This information is used by the
102           server to know which parts of the XML have changed since the last
103           inventory.
104
105           The is done thank to the last_file file. It has MD5 prints of the
106           previous inventory.
107
108       saveLastState()
109           At the end of the process IF the inventory was saved correctly, the
110           last_state is saved.
111
112       addSection()
113           A generic way to save a section in the inventory. Please avoid this
114           solution.
115
116       feedSection()
117           Add information in inventory.
118
119
120
121perl v5.12.2                      2010-10O-c1s2inventory::Agent::XML::Inventory(3)
Impressum