Re: Instances

2000-03-21 10:38:15
Subject: Re: Instances
From: Ray Schafer <schafer AT tkg DOT com>
To: nv-l AT lists.tivoli DOT com
Date: Tue, 21 Mar 2000 09:38:15 -0600
Jean.M.SCHMIDT AT odot.state.or DOT us wrote:

> How do I know which instance relates to which interface?

Here is a way to do it:

If  the INDEX variable is set to the index of the interface, and NODE is the
IP address or hostname of the node, this will return the name of the

     snmpget  $NODE .$INDEX

It used the interface description MIB.

If you want to get the IP address of the interface (assuming there is one -
there doesn't have to be!)

     snmpwalk $NODE . | grep "INTEGER: $INDEX"\
           | cut -d. -f5-8 | cut -f1 -d:

Hope that helps..

Ray Schafer                   | schafer AT tkg DOT com
The Kernel Group              | Distributed Systems Management

<Prev in Thread] Current Thread [Next in Thread>