FUSIONI...NJECTOR(1p)
π FUSIONINVENTORY-INJECTOR π
okay bestie, sit down, hydrate, and let me tell you about fusioninventory-injector β it lives in the User Contributed Perl Documentation corner of manual section 1p, and it's literally your little go-to for shoving inventory data at a server. π
β¨ NAME β¨
fusioninventory-injector β a tool to push inventory into an OCS Inventory server, or any server that's compatible with one. no cap. π
πΈ SYNOPSIS πΈ
fusioninventory-injector [options] [--file <file>|--directory
<directory>|--stdin|--useragent <user-agent>]
So real quick, the vibe check: you give it options, and then you pick exactly one of the data sources β a file, a directory, stdin, or a user-agent. That's the shape of it. π¦
π Options
-h,--helpβ shows you this menu. iconic behavior honestly.-d,--directoryβ loads every single.ocsfile out of a directory. all of them. the whole folder ate. π-R,--recursiveβ goes recursively and loads.ocsfiles from<directory>. it's giving "and also everything inside everything."-f,--fileβ loads one specific file. just the one. main character file energy. π-u,--urlβ the server URL. this is where the inventory is headed, bestie. π¬-r,--removeβ deletes the files that got injected successfully. only the successful ones, which is lowkey the responsible choice. π§Ή-v,--verboseβ verbose mode. it yaps about what it's doing, and ngl sometimes that's exactly what you need. π£οΈ--stdinβ reads the data from STDIN. pipe it in, girl. π--useragentβ sets the HTTP User-Agent used for the POST. dress your request up however you like. π-x,--xml-uaβ uses the Client version found in the XML as the User-Agent for the POST. it reads the vibe straight from the data. π₯--no-ssl-checkβ do not check the server's SSL certificate. > β οΈ seriously, this one is the risky one β it turns off certificate checking, so make sure you know what you're doing before you go there. π-C,--no-compressionβ don't compress the XML inventories that get sent. plain and simple, no zip, no squeeze. β¨
π Examples
because seeing it is believing, fr fr:
fusioninventory-injector -v -f /tmp/toto-2010-09-10-11-42-22.ocs --url https://login:pw@example/plugins/fusioninventory/
fusioninventory-injector -v -R -d /srv/ftp/fusion --url https://login:pw@example/plugins/fusioninventory/
first one: verbose, one file, straight to the server. second one: verbose, recursive, whole directory, straight to the server. periodt. π
π«Ά DESCRIPTION π«Ά
Here's the tea: this tool can be used to test your server, to do benchmark, or to push inventory from an off-line machine. Three moods, one tool. That's versatility, bestie. π
that's the whole page, you're so welcome π this little gem was verifiably shipped as perl v5.38.2 back on 2024-05-15 β so if you're reading this on a sunnier date, mwah, it's still the same legendary fusioninventory-injector. slay. π
β¨
π¦ where this page comes from
- debian trixie: fusioninventory-agent 1:2.6-4 Β· GPL-2.0-or-later
- ubuntu resolute: fusioninventory-agent 1:2.6-4 Β· GPL-2.0-or-later
- ubuntu stonking: fusioninventory-agent 1:2.6-4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms