Plugin inventory Cisco configuration

Inventory plugin to display the configuration of a cisco device.

Introduction

Ver. 17-09-2022

Inventory plug-in to show the configuration of a cisco device.

Type: Inventory plug-in

Download plugin

You can download the plugin from the library at the following link:

https://pandorafms.com/library/plugin-cisco-inventory-configuration/


The downloaded .zip file must be unzipped and move the compiled get-config to pandora, to a path where it can be used later, for example “/usr/share/pandora_server/util/plugin/”.

Parameters

Plugin configuration parameters
address IP o host del switch
username Usuario switch
sshpassword Password ssh switch
enablepassword Enable password switch
sleep wait time commands

Manual Execution

You can run the plugin using the following parameters:

./get-config <ip> <user> <password> <enable pass>

Example:

./get-config 192.168.51.8 admin pandora p4ndora!

if enable pass is not configured, enter empty “” in the last parameter.

Configuration in PandoraFMS

To configure the plugin you must access the inventory modules menu in the configuration section.

image.png

A new inventory plugin must be created, configured as follows.

image.png

In “Script path” the path of the plugin must be added. The option use inline code can be ignored, since its use is for non-compiled scripts.

Once created, access the inventory menu in the agent and select the inventory module created.

image.png

Once selected, the custom field option must be enabled and the parameters must be entered in order, if you do not have enable pass, you must enter quotation marks in the empty section.

image.png

Remember to activate the “It's a password” checkbox for the password and enable password fields.

Once these steps have been configured, the only thing left to do is to add the new module. This will be visible from the agent view in the inventory menu.
image.png

image.png