Aruba inventory helper¶
Article last updated: 2026-12-02.
What it does¶
The Aruba inventory helper connects to an Aruba switch over SSH, optionally enters enable mode and runs one CLI command. It prints the command output after removing the prompt and the paging control, so the result can be used by a Pandora FMS inventory module or processed by a custom parser.
The helper is not a monitoring plugin: it does not create agents, does not generate module XML and does not parse the switch output. It is the transport layer that returns the raw CLI output.
Prepare¶
Compatibility¶
| Scope | State | Evidence |
|---|---|---|
| Aruba switches with SSH access and an interactive CLI | Required |
The helper opens an SSH shell and sends CLI commands |
| Python 3 | Required |
The script is Python 3 |
paramiko Python library |
Required |
The script imports paramiko |
| Enable password | Optional |
Only needed when the command requires enable mode |
| Pandora FMS NG 784 and later | Not validated |
No release-specific validation record exists |
Requirements¶
- SSH access from the host that runs the helper to the switch.
- A user account that can run the inventory command and, when needed, enter enable mode.
- Python 3 and
paramikoon the host. On Debian and Ubuntu,python3-paramikoprovides the library. - A command that returns text on the CLI, such as
show version,show interfacesorshow running-config.
Install the helper¶
Copy pandora_aruba (or pandora_aruba.py when running from source) to the host that will execute it and give it execute permission. The packaged binary includes the Python runtime and paramiko; the source version needs paramiko installed.
Configure¶
The helper takes positional arguments:
pandora_aruba <address> <username> <sshpassword> <command> [enablepassword] [sleep]
| Argument | Required | Description |
|---|---|---|
address |
Yes | IP address or host name of the switch. |
username |
Yes | SSH user name. |
sshpassword |
Yes | SSH password. |
command |
Yes | CLI command to run, quoted when it contains spaces. |
enablepassword |
No | Enable password. When present, the helper sends enable before the command. |
sleep |
No | Seconds to wait after each interaction. Default 1. Increase it on slow devices. |
Example:
pandora_aruba 192.0.2.20 admin '<SSH_PASSWORD>' 'show version'
With enable mode:
pandora_aruba 192.0.2.20 admin '<SSH_PASSWORD>' 'show running-config' '<ENABLE_PASSWORD>' 2
The helper sends no page before the command to disable CLI paging, waits for the prompt and prints the output without the last line (the prompt).
Use with Pandora FMS inventory¶
The output is raw CLI text, so the helper fits a Pandora FMS inventory workflow that executes a command and parses its output:
- Install the helper on the host that runs the inventory collection (usually the Pandora FMS server).
- Create an inventory module or a custom inventory script that calls the helper with the switch address, credentials and command.
- Parse the returned text with the inventory parser or a custom script, and map the fields to the inventory attributes you need.
The helper does not read Pandora FMS configuration and does not know about inventory schemas. The parser is a separate piece.
Verify¶
Run a read-only command manually:
pandora_aruba 192.0.2.20 admin '<SSH_PASSWORD>' 'show version'
The output is the CLI response, for example the switch model, the firmware version and the uptime. If the command requires enable mode, pass the enable password as the fifth argument.
Understand the results¶
- The helper returns text, not modules. There is no XML, no agent and no module name.
- The output is cleaned minimally. It removes
\rcharacters and the last line (the prompt). It does not remove banners, MOTD or command echoes; the parser must tolerate them. - One command per execution. To collect several commands, run the helper once per command or extend it.
- The SSH host key is not verified. The script uses
AutoAddPolicy, so it accepts any host key. Use it only on a trusted management network.
Operate and troubleshoot¶
Connection error— the switch is unreachable, SSH is disabled, the user or password is wrong, or the account is locked.ModuleNotFoundError: No module named 'paramiko'— installpython3-paramikoor run the packaged binary.- The output is empty or truncated — increase the
sleepvalue, check that the command exists in the current CLI mode and confirm thatno pageis accepted by the firmware. - The helper hangs — the script has no timeout. Run it with a wrapper such as
timeout 60and check the SSH session limit on the switch. - Enable mode fails — the enable password is wrong or the user is not allowed to enter enable mode. Check the switch AAA configuration.
- The output includes the command echo or a banner — the parser must skip those lines. The helper does not remove them.
Reference¶
Command-line execution¶
pandora_aruba <address> <username> <sshpassword> <command> [enablepassword] [sleep]
Addon identity¶
| Field | Value |
|---|---|
| Marketplace identifier | pandorafms.aruba |
| Marketplace name | Aruba inventory |
| Package | pandora_aruba.zip |
| Type | Inventory helper, SSH |
| Executable | pandora_aruba |
| License | Free download |