DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Configuring the Simple Network Management Protocol (SNMP)

Getting routing information for a given network

The getmet(1Msnmp) 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:

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


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004