Launcher Products Bitnami Documentationimaxe CLI Blog Contact
imaxe info inventory v1.0.0

Your server's inventory, at a glance

Probes the machine and writes a readable inventory with the operating system, the installed software and its versions, the database and the imaxe product in /etc/imaxe/info.yaml. No secrets, no surprises: one command and you know exactly what you have.

$ imaxe info create
Version
v1.0.0
Subcommands
3
Inventory
/etc/imaxe/info.yaml
Requires root
yes (create)
Secrets
never

What this module does #

When you spin up an imaxe AMI, the first question is often the most basic one: what's inside? Which version of the operating system, which software is installed and in what version, which database sits behind it and which imaxe product has been deployed.

The info module answers all that in one go: it probes the system live and writes a clear, readable inventory to /etc/imaxe/info.yaml. That file gathers the operating system, the software and its versions, the database and the imaxe product, ready to view on screen or in JSON for automation.

The inventory contains no secrets

The /etc/imaxe/info.yaml file is purely descriptive: names and versions. It never stores passwords, keys or tokens, so you can read it, copy it or attach it to a ticket with peace of mind.

Quick startstep-by-step tasks

Common tasks #

Choose what you want to do. Each recipe comes with the command already written — just copy it and hit Copy.

1

Generate the inventory

Probe the machine and write /etc/imaxe/info.yaml for the first time.

Connect to your server over SSH with the ubuntu user.

Run create: it walks the system and writes the inventory to disk.

terminal
$ sudo imaxe info create
The /etc/imaxe/info.yaml file is written with the operating system, the software and its versions, the database and the imaxe product.
2

See what I have installed

Show the already generated inventory on screen.

Read the inventory stored in /etc/imaxe/info.yaml:

terminal
$ imaxe info show
You'll see the operating system, the software with its version, the database and the imaxe product on screen. If the inventory doesn't exist yet, generate it with the previous recipe.
3

Get the inventory in JSON

Structured output for scripts, monitoring or a centralized inventory.

Add --json to show to get the inventory in a machine-readable format:

terminal
$ imaxe info show --json

Want to extract a single value? Combine it with jq, for example the operating system version:

terminal
$ imaxe info show --json | jq .os
The JSON comes out on stdout, ready to pipe into jq, an inventory agent or your CMDB.
4

Regenerate after a change

Update the inventory after installing or upgrading software.

The inventory is a snapshot of the system at the moment it was generated. If you've upgraded packages or changed the database, run create again to rewrite it with fresh data:

terminal
$ sudo imaxe info create
$ imaxe info show
The /etc/imaxe/info.yaml file reflects the real state of the machine again.
The inventory is a snapshot, not a watchdog

The file reflects the system as it was when create ran. It doesn't update on its own: after any significant change to the software, run create again so that show stays true to reality.

CLI referencecommands, flags and files

Synopsis #

usage
imaxe info <subcomando> [--json]

The create subcommand requires root privileges (use sudo) because it writes to /etc/imaxe/. In contrast, show only reads the inventory and can run without sudo. Add --json to show to get machine-readable output suitable for scripting.

Subcommands #

SubcommandWhat it doesRelevant flags
createProbes the system live and (re)writes the inventory to /etc/imaxe/info.yaml.
showShows the inventory stored in /etc/imaxe/info.yaml.--json
helpShows the module's help.

Arguments and flags #

FlagTypeDefaultDescription
--jsonboolfalseIn show, emits the inventory as structured JSON on stdout, suitable for jq and automation.

The info module takes no positional arguments: each subcommand operates on the system's own inventory.

Files and paths #

PathContents
/etc/imaxe/info.yamlAMI inventory: operating system, software and versions, database and imaxe product. Purely descriptive, no secrets.

Example of info.yaml:

/etc/imaxe/info.yaml
os:
  name: Ubuntu
  version: 22.04
software:
  nginx: 1.18.0
  php: 8.1
database:
  engine: mysql
  version: 8.0.36
product:
  name: imaxe
  version: 1.0.0

Exit codes and logs #

Each run returns a code you can check with echo $? — handy for chaining in scripts:

0OKInventory generated or shown successfully.
1ERRGeneric unclassified error. Check the message.
2USAGEInvalid subcommand or flag.
3NOFILEshow with no inventory: run create first.
4PERMcreate without privileges to write to /etc/imaxe/.

Troubleshooting #

SymptomLikely causeFix
show displays nothing or failsThe inventory hasn't been generated yet.Run sudo imaxe info create and try show again.
create gives a permissions errorIt was run without root and can't write to /etc/imaxe/.Re-run it with sudo imaxe info create.
The inventory doesn't match realitySoftware was installed or upgraded after it was generated.Regenerate it with sudo imaxe info create: it's a point-in-time snapshot.
The --json output isn't clean--json was applied to a subcommand that doesn't support it.--json only applies to show; use it as imaxe info show --json.

Stuck with the Inventory module?

Write to us with the output of «imaxe <module> status --json» and we'll get back to you fast.

Contact support