NAME

ciscoospf2yaml - convert Cisco OSPF LSDB to YAML file

SYNOPSIS

ciscoospf2yaml [-B boundary] [-E external] [-h] [-I selfid] [-N network] [-R router] [-S summary] [ospf.yaml]

DESCRIPTION

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.

Optionally one output file can be given on command line, otherwise stdout is used.

The options are as follows:

-B boundary

File describing the AS boundary routers summary-LSAs. It can be obtained with show ip ospf database asbr-summary.

-E external

File describing the AS-external-LSAs. It can be obtained with show ip ospf database external.

-h

Show help message and exit.

-I selfid

File describing the router from witch the LSDB has been taken. It can be obtained with show ip ospf.

-N network

File describing the network-LSAs. It can be obtained with show ip ospf database network.

-R router

File describing the router-LSAs. It can be obtained with show ip ospf database router.

-S summary

File describing the network summary-LSAs. It can be obtained with show ip ospf database summary.

EXAMPLES

ciscoospf2yaml | ospf2dot | dot

DIAGNOSTICS

The program dies if an error occurs. Typical errors are ssh failure or parsing errors of the LSDB files.

SEE ALSO

OSPF::LSDB::Cisco, OSPF::LSDB::YAML, OSPF::LSDB

ospf2dot(1),

AUTHOR

Alexander Bluhm