OLSRv2Info Plugin

From OLSR.org Wiki

The OLSRv2Info Plugin allows access to the content of the OLSRv2 database through telnet.

The plugin does implement seven main commands, each of them is handled by the Viewer plugin, you will find details about how to use the commands there.

telnet commands

originator

The originator command displays the current originator address of the local node

Key Content
originator originator IP address of local node

old_originator

The old_originator command displays earlier originator addresses of the local node.

Key Content
old_originator earlier originator IP address of local node
old_originator_vtime time until old originator IP will be removed from the database

lan

The lan command displays the list of locally attachet network prefixes of the local node. They are prefixes that are not part of the OLSRv2 mesh but can be reached through this node.

Key Content
lan IP prefix of LAN
domain number of domain
domain_metric name of domain link metric
domain_metric_out human readable outgoing link metric
domain_metric_out_raw numeric outgoing link metric
domain_distance routing distance for LAN entry
domain_active true if LAN entry is active for this domain

node

The node command displays the list of known mesh nodes.

Key Content
node Originator IP address of node
node_vtime validity time of node entry
node_ansn answer set number of node entry

attached_network

The attached_network command displays the list of locally attached network prefixes of other mesh nodes.

Key Content
node Originator IP address of node
attached_net attached network prefix
attached_net_ansn answer set number of attached network entry
domain number of domain
domain_metric name of domain link metric
domain_metric_out human readable outgoing link metric
domain_metric_out_raw numeric outgoing link metric
domain_distance routing distance for LAN entry

edge

The edge command displays the list of all known connections between mesh routers.

Key Content
node Originator IP address of node
edge Originator IP address of neighbor of the node
edge_ansn answer set number of edge entry
domain number of domain
domain_metric name of domain link metric
domain_metric_out human readable outgoing link metric
domain_metric_out_raw numeric outgoing link metric

route

The route command displays the current routing table set by OLSRv2.

There is one thing that is easy to mix up. route metric is a field of the routing table and is used as a priority to select the routing table entry. The OLSRv2 path metric is the sum of the OLSRv2 link metrics and is a value that says how costly the connection to the destination is. OLSRv2 optimizes routes for better path metrics.

Key Content
route_dst destination IP/prefix
route_gw gateway (next hop) to destination
route_src_ip source IP used for outgoing connections
route_src_prefix source IP prefix for route selection
route_metric routing metric (not OLSRv2 path metric!) as set in the routing table
route_table output table for routing entry
route_proto routing protocol value
route_if outgoing interface for routing entry
route_ifindex outgoing interface index for routing entry
domain number of domain
domain_metric name of domain link metric
domain_metric_out human readable outgoing path metric
domain_metric_out_raw numeric outgoing path metric

configuration

This plugin has no configuration options.