RE: Instances for Sub-Interfaces

2000-03-21 19:52:05
Subject: RE: Instances for Sub-Interfaces
From: Jean.M.SCHMIDT AT odot.state.or DOT us
To: nv-l AT lists.tivoli DOT com
Date: Tue, 21 Mar 2000 16:52:05 -0800
Thanks for the response but how do I get subinterface information? Please
see explanation below.

When I run the command: 
        snmpget $NODE .$INDEX
I received error:
        snmpget: This variable does not exist:

When I do an "snmpwalk nodename" I receive:
        interfaces.ifTable.ifEntry.ifDesc.1: Ethernet
        interfaces.ifTable.ifEntry.ifDesc.2: Serial 0
        interfaces.ifTable.ifEntry.ifDesc.3: Serial 1
        interfaces.ifTable.ifEntry.ifDesc.4: Token Ring
        interfaces.ifTable.ifEntry.ifDesc.5: Serial 1.1
        interfaces.ifTable.ifEntry.ifDesc.6: Serial 1.2

This gives me the instance number that relates to an interface. However,
when I access MIB Data Collection window and select show data only instances
1 through 4 display. How do I obtain collection data for only Serial 1.1 or
Serial 1.2?

-----Original Message-----
From: Ray Schafer [mailto:schafer AT tkg DOT com]
Sent: Tuesday, March 21, 2000 7:38 AM
To: IBM NetView Discussion
Subject: Re: [NV-L] Instances

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


NV-L List information (unsubscribing, policies, posting, digest version,
searchable archives): http://www.tkg.com/nv-l

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