---
name: "Ocsinventory::Agent::Common"
section: "3pm"
platform: "linux"
package: "ocsinventory-agent"
version: "2:2.0.5-1.2"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Ocsinventory::Agent::Common"
---

# Ocsinventory::Agent::Common(3pm)

- *addController()*

  Add a controller in the inventory.

- *addModem()*

  Add a modem in the inventory.

- *addDrive()*

  Add a partition in the inventory.

- *addStorages()*

  Add a storage system (hard drive, USB key, SAN volume, etc) in the inventory.

- *addMemory()*

  Add a memory module in the inventory.

- *addPort()*

  Add a port module in the inventory.

- *addSlot()*

  Add a slot in the inventory.

- *addSoftware()*

  Register a software in the inventory.

- *addMonitor()*

  Add a monitor (screen) in the inventory.

- *addVideo()*

  Add a video card in the inventory.

- *addSound()*

  Add a sound card in the inventory.

- *addNetwork()*

  Register a network in the inventory.

- *setHardware()*

  Save global information regarding the machine.

  The use of *setHardware()* to update USERID and PROCESSOR\* informations is deprecated, please, use *addUser()* and *addCPU()* instead.

- *setBios()*

  Set BIOS informations.

- *addCPU()*

  Add a CPU in the inventory.

- *addUser()*

  Add an user in the list of logged user.

- *addPrinter()*

  Add a printer in the inventory.

- *addVirtualMachine()*

  Add a Virtual Machine in the inventory.

- *addProcess()*

  Record a running process in the inventory.

- *addIpDiscoverEntry()*

  IpDiscover is used to identify network interface on the local network. This is done on the ARP level.

  This function adds a network interface in the inventory.

- *setAccessLog()*

  What is that for? :)

- *flushXMlTags()*

  Clear the content of `$common`-\>{xmltags} (to use after adding it in XML)

## POD ERRORS

Hey! **The above document had some coding errors, which are explained below:**

- Around line 34:

  '=item' outside of any '=over'

  \=over without closing =back
