FUSIONI...NJECTOR(1p)

πŸ“¦
version 2.6 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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 .ocs file out of a directory. all of them. the whole folder ate. πŸ“
  • -R, --recursive β€” goes recursively and loads .ocs files 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