GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  OCSINVENTORY::AGENT::XML::INVENTORY (3)

.ds Aq ’

NAME

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

CONTENTS

DESCRIPTION

OCS Inventory uses XML for the data transmition. The module is the abstraction layer. It’s mostly used in the backend module where it called $inventory in general.
new() The usual constructor.
initialise() Runs the backend modules to initilise the data.
getContent() Return the inventory as a XML string.
printXML() Only for debugging purpose. Print the inventory on STDOUT.
writeXML() Save the generated inventory as an XML file. The ’local’ key of the config is used to know where the file as to be saved.
processChecksum() Compute the <CHECKSUM/> field. This information is used by the server to know which parts of the XML have changed since the last inventory.

The is done thank to the last_file file. It has MD5 prints of the previous inventory.

saveLastState() At the end of the process IF the inventory was saved correctly, the last_state is saved.
addSection() A generic way to save a section in the inventory. Please avoid this solution.
feedSection() Add information in inventory.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 OCSINVENTORY::AGENT::XML::INVENTORY (3) 2014-05-19

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.