Ascend Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (ASCEND) snmp question



On Mon, Feb 23, 1998 at 05:53:42PM -0600, Robert Fournerat wrote:
> 
> For you snmp experts out there, I'm trying to get the value 

Not an expert, just infected ;)

> of a single specific variable from from the following table:
> 
> internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifInOctets
> 
> but querying this OID yeilds a table containing all of the 
> interfaces (which, on a MAX, is quite a few...).  Yea, I know
> I can grep for the specific interface, but I'd rather just
> query the interface I want.  So I thought I could get to the 
> value for a specific interface by appending it's interface 
> number to the OID - for example:
> 
> internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifInOctets.11
> 
> but this does not work for me.  Does anyone know how to
> get a single value from this table?

Your assumption is correct, this is the way to query the value of
ifInOctets in the ifTable in the row with ifIndex 11. And for me it
works:

beck@micky:~ > scotty2.1.7 
% snmp session -address mymax -community public
snmp0
% snmp0 get "internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifInOctets.11"
{1.3.6.1.2.1.2.2.1.10.11 Counter32 1145}
% 

The numeric OID is 1.3.6.1.2.1.2.2.1.10.11, it is of type Counter32 and
the current value is 1145.

What SNMP query software are you using ?

-- 

Kanther-Line: PGP SSH IDEA MD5 GOST RIPE-MD160 3DES RSA FEAL32 RC4

+-o-+--------------------------------------------------------+-o-+
| o |               \\\- Brain Inside -///                   | o |
| o |                   ^^^^^^^^^^^^^^                       | o |
| o | Andre' Beck (ABPSoft) beck@ibh-dd.de XLink PoP Dresden | o |
+-o-+--------------------------------------------------------+-o-+
++ Ascend Users Mailing List ++
To unsubscribe:	send unsubscribe to ascend-users-request@bungi.com
To get FAQ'd:	<http://www.nealis.net/ascend/faq>


References: