OSPFQUERY(1)

NAME
ospfquery - query a router MIB for ospf and routing table information

SYNOPSIS
ospfquery [ -d ] [ -afgilmnr ] router [ community_name ]

DESCRIPTION
ospfquery will query the MIB of a target router for information in the ospf MIB (RFC 1253) and display it in a way that will help an administrator or developer debug and maintain a collection of ospf routers.

For instance, it will show the current set of OSPF neighbors and the neighbor state, the interface network types, as well as the designated and backup designated routers.

The router argument can be the host name or IP address of the router you wish to query and the optional community_name will be the SNMP community name which defaults to public.

OPTIONS

-a  show each individual link state advertisement. (Currently only shows router and network links.)

-d  debugging. Part of the CMU snmp debugging code that shows each snmp packet. This can be used with any of the other options.

-f  show the ipForwardingTable MIB. (RFC 1354)

-g  reserved for future use.

-i  show the ospf interface table.

-l  show the ospf link state database.

-m  reserved for future use.

-n  show the ospf neighbor table.

-r  show the ipRouteTable. (RFC 1213 - MIB II)

SEE ALSO
ripquery(1) (GateD), CMU SNMP

AUTHOR
Tom Pusateri (pusateri@cs.duke.edu)

BUGS
ospfquery does not show all entries in the link state database or the virtual link table.

Querying a router that is not running ospf or querying the ipForwardingTable from a router that does not support it will sometimes produce a line of random junk.

If ospf is not enabled, you cannot query the routing table.