| OCSINVENTORY-AGENT(1p) | User Contributed Perl Documentation | OCSINVENTORY-AGENT(1p) |
ocsinventory-agent - Unified client for OCS-Inventory
ocsinventory-agent [ -fhilpruw ] [ --server server | --local /tmp ]...
% ocsinventory-agent --server localhost
# send an inventory to the OCS server
% ocsinventory-agent --server http://localhost/ocsinventory2
# send an inventory over http to a server with a non standard
# virtual directory
% ocsinventory-agent --server https://localhost/ocsinventory
# send an inventory over https to the OCS server
% ocsinventory-agent --local /tmp
# write an inventory in the /tmp directory
% ocsinventory-agent --server localhost --user=toto --password=pw --realm="Restricted Area"
# send a report to a server protected by a basic authentication
% ocsinventory-agent --lazy
# send an inventory only if the a random delay between 0 and PROLOG_FREQ had been run over.
% ocsinventory-agent --delaytime 60 -d
# If NO PROLOG_FREQ has been preset, pick a time between execution and --delaytime for the agent to contact the server [default is 3600 seconds]
ocsinventory-agent creates inventory and send or write them. This agent is the successor of the former linux_agent which was released with OCS 1.01 and prior. It also replaces the Solaris/AIX/BSD unofficial agents. The detailed list of supported Operating System is available in the Wiki.
Most of the options are available in a short form and a long form. For example, the two lines below are all equivalent:
% ocsinventory-agent -s localhost
% ocsinventory-agent --server localhost
% http://servername/ocsinventory
If you want to use https or another virtual directory you need to enter the full path.
--server is ignored if --local is in use.
% ocsinventory-agent --stdout > /tmp/report.xml
# prepare an inventory and write it in the /tmp/report.xml file.
# A file will be created.
% ocsinventory-agent --wait 5 --server localhost
The agent try to initialize the settings from the ocsinventory-agent.cfg config file.
It looks for the file in these directories:
The maintainer is Guillaume PROTET <guillaume.protet@mortheres.info>
Please read the AUTHORS, Changes and THANKS files to see who is behind OCS Inventory Agent.
http://www.ocsinventory-ng.org/
http://launchpad.net/ocsinventory-unix-agent
http://forums.ocsinventory-ng.org/
http://wiki.ocsinventory-ng.org/
Please, use the forum as much as possible. You can open your own bug tickets. Patches are welcome. You can also use LaunchPad bugtracker or push your Bazaar branch on LaunchPad and do a merge request.
Copyright (C) 2006-2016 OCS Inventory contributors
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
| 2023-11-03 | perl v5.36.0 |