Friday, February 23, 2018

Collecting module/component serial number details with Ansible - what does the output look like?

Is anyone able to provide an example of the level of detail provided when you run the ios_facts module?

Specifically, I'm trying to find out what the returns from the ansible_net_serialnum looks like.

I'm trying to figure out if the output approximates the

show mod 

or

show inventory 

commands on the CLI, providing the serial numbers of all the individual components of a switch or router.

The eventual goal is to (hopefully) use Ansible to collect facts like this, in addition to Product ID/SKUS, and SW version info, stash that info in a redis database (or any other useful way to store the data), then use that captured info to query the Cisco Support APIs.

EDIT:

Assuming that the responses I've gotten so far are correct, is anyone aware of or has experience with an open source tool that would be useful in collecting general HW inventory info for Cisco networks, specifically serial numbers, PIDs/SKUs, and software versions?



No comments:

Post a Comment