Getting routing information for a given network
The
getmet(ADMN)
command is used to retrieve routing information for
a given IP net or subnet. The information retrieved includes
the values of all
instances of the following objects:
ipRouteDest,
ipRouteMetric1,
ipRouteMetric2,
ipRouteMetric3, and ipRouteMetric4.
The effect of specifying the optional
argument partial_IP_address is that
only those routing table entries whose destination addresses
match this argument are retrieved. By default, all entries in the
routing table are displayed.
The following shows the results of two getmet invocations:
Example 8-9 getmet example
# getmet paris public Route to: 0.0.0.0 metric1: 2, metric2: 0, metric3: 0, metric4: 0 Route to: 127.0.0.1 metric1: 0, metric2: 0, metric3: 0, metric4: 0 Route to: 132.147.0.0 metric1: 1, metric2: 0, metric3: 0, metric4: 0 Route to: 132.147.118.0 metric1: 1, metric2: 0, metric3: 0, metric4: 0 Route to: 132.147.246.0 metric1: 0, metric2: 0, metric3: 0, metric4: 0# getmet paris public 132.147 Route to: 132.147.0.0 metric1: 1, metric2: 0, metric3: 0, metric4: 0 Route to: 132.147.118.0 metric1: 1, metric2: 0, metric3: 0, metric4: 0 Route to: 132.147.246.0 metric1: 0, metric2: 0, metric3: 0, metric4: 0
See also: