ciscoospf2yaml - convert Cisco OSPF LSDB to YAML file
ciscoospf2yaml [-B boundary] [-E external] [-h] [-H user@host] [-I selfid] [-N network] [-R router] [-S summary] [ospf.yaml]
ciscoospf2yaml takes the OSPF link state database of a Cisco IOS router and converts it into a YAML file.
The several input files containing the LSDB can be passed via command line. If a file is not given, ssh to the router is invoked gather the information dynamically. For that the user ospf must be allowed to log into the Cisco router.
ospf
Optionally one output file can be given on command line, otherwise stdout is used.
The options are as follows:
File describing the AS boundary routers summary-LSAs. It can be obtained with show ip ospf database asbr-summary.
File describing the AS-external-LSAs. It can be obtained with show ip ospf database external.
Show help message and exit.
The specified user and host are used for ssh login otherwise cisco is used as host name.
cisco
File describing the router from witch the LSDB has been taken. It can be obtained with show ip ospf.
File describing the network-LSAs. It can be obtained with show ip ospf database network.
File describing the router-LSAs. It can be obtained with show ip ospf database router.
File describing the network summary-LSAs. It can be obtained with show ip ospf database summary.
ciscoospf2yaml | ospf2dot | dot
The program dies if an error occurs. Typical errors are ssh failure or parsing errors of the LSDB files.
OSPF::LSDB::Cisco, OSPF::LSDB::YAML, OSPF::LSDB
ospf2dot
Alexander Bluhm
To install OSPF::LSDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OSPF::LSDB
CPAN shell
perl -MCPAN -e shell install OSPF::LSDB
For more information on module installation, please visit the detailed CPAN module installation guide.