Skip to content

joubbi/command_parser_show_interfaces_status

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

command_parser_show_interfaces_status

This is a command parser for Ansible network-engine.

It issues the Cisco IOS command 'show interfaces status' and parses the output.

The file show_interfaces_status.yml is a playbook using the parser. It can be used as an example and should be self-explanatory.

Inspiration came from this great blog: https://termlen0.github.io/2018/06/26/observations/

Example

Here is an example of how the output might look like:

 "Fa4": {
            "data": {
                "duplex": "auto",
                "interface": "Fa4",
                "name": "test interface4     ",
                "speed": "auto",
                "status": "notconnect",
                "type": "10/100BaseTX",
                "vlan": "1"
            }

Licensed under the Apache License Version 2.0

Written by farid@joubbi.se

http://www.joubbi.se/monitoring.html

About

Template for the Ansible network-engine command parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published