nv-l

RE: Instances for Sub-Interfaces

2000-03-22 08:21:30
Subject: RE: Instances for Sub-Interfaces
From: "Julio Leal" <jjllmm AT hotmail DOT com>
To: nv-l AT lists.tivoli DOT com
Date: Wed, 22 Mar 2000 14:21:30 CET
For Cisco frame relay subinterfaces we use these variables:

.iso.org.dod.internet.mgmt.mib-2.transmission.frame-relay.frCircuitTable.frCircuitEntry.frCircuitReceivedOctets

.iso.org.dod.internet.mgmt.mib-2.transmission.frame-relay.frCircuitTable.frCircuitEntry.frCircuitSentOctets

From: owner-nv-l AT tkg DOT com
Date: 21/03/2000 21:02:29
Subject: RE: [NV-L] Instances for Sub-Interfaces




Use the mib browser to look at the actual variables you want. You will
probably find that the agent does not report certain variables for sub
interfaces, only for the primary interfaces. I've seen this on Cisco
frame relay subinterfaces. It won't report packets, but it will report
ifInOctets, for instance. If you tell snmpCollect to get values for all
interfaces and it comes back with only a few, chances are the
agent on the device does not have the data to give us.

Cordially,

Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Detroit

---------------------- Forwarded by Leslie Clark/Southfield/IBM on
03/21/2000 08:59 PM ---------------------------

Jean.M.SCHMIDT AT odot.state.or DOT [email protected] on 03/21/2000 07:52:05 PM

Please respond to IBM NetView Discussion <nv-l AT tkg DOT com>

Sent by:  owner-nv-l AT tkg DOT com


To:   NV-L AT UCSBVM.ucsb DOT edu
cc:
Subject:  RE: [NV-L] Instances for Sub-Interfaces



Thanks for the response but how do I get subinterface information? Please
see explanation below.

When I run the command:
     snmpget $NODE .1.3.6.1.2.1.2.2.1.2.$INDEX
I received error:
     snmpget: This variable does not exist:
.iso.org.dod.internet.mgmt.mib2.interface.ifTable.ifEntry.ifDesc.

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
interface:

     snmpget  $NODE .1.3.6.1.2.1.2.2.1.2.$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 .1.3.6.1.2.1.4.20.1.2 | 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
http://www.tkg.com



_________________________________________________________________________

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

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



_________________________________________________________________________

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



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com


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