Re: SNMP variable of *IP* octets and not layer#2 octets

2001-03-08 Thread Sasa Milic


Take a look at local.linterfaces.lifTable table. There you will
find:

   lifEntry  OBJECT IDENTIFIER ::= { lifTable 1 }

   locIfipInPkts OBJECT IDENTIFIER ::= { lifEntry 42 }
   locIfipOutPktsOBJECT IDENTIFIER ::= { lifEntry 43 }
   locIfipInOctets   OBJECT IDENTIFIER ::= { lifEntry 44 }
   locIfipOutOctets  OBJECT IDENTIFIER ::= { lifEntry 45 }


Above variables reflect output from command

show interface interface accounting

and in the locIfEntry there are entries for other supported protocols,
also. I'm using above variables since IOS 10.3, so yoy don't need
anything special (plain IP feature set works).

Hope this helps.

Sasa



Christian Hammers wrote:
 
 Does anybody know a SNMP variable (regardless which IOS it would need)
 that counts only IP bytes (non-IP is filtered anyway so we can ignore
 it).

_
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]



Re: SNMP variable of *IP* octets and not layer#2 octets

2001-03-08 Thread Christian Hammers

On Thu, Mar 08, 2001 at 01:24:37PM +0100, Sasa Milic wrote:
 Take a look at local.linterfaces.lifTable table. There you will
 find:
locIfipInPkts OBJECT IDENTIFIER ::= { lifEntry 42 }
locIfipOutPktsOBJECT IDENTIFIER ::= { lifEntry 43 }
locIfipInOctets   OBJECT IDENTIFIER ::= { lifEntry 44 }
locIfipOutOctets  OBJECT IDENTIFIER ::= { lifEntry 45 }
But they do not seem to be correct, too! 
When I send a ping like this:
ping -c 1 -s 1 212.117.XXX.YYY
then I would assume that the locIfipInPkts increases by 1 and the 
locIfipInOctets increases by 20(IP)+8(ICMP)+1(DATA) = 29 bytes. But it does
in fact increase by 1 packet but 33 bytes! Exactly the same 4 mistyrious bytes
I always have "too much" in the normal "show interface" byte counter and which
I assumed to be the HDLC overhead (although I don't know how to come to 4 bytes
for it...)
I verified the 29 bytes with ethereal and tcpdump on both sides. The remote
host *gets* only 29 bytes and not 33!

Any ideas? Does it be correct at your side? 

bye,

 -christian-

-- 
Christian HammersWESTEND GmbH - Aachen und Dueren Tel 0241/701333-0
[EMAIL PROTECTED] Internet  Security for ProfessionalsFax 0241/911879
   WESTEND ist CISCO Systems Partner - Premium Certified

_
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]



SNMP variable of *IP* octets and not layer#2 octets

2001-03-07 Thread Christian Hammers

Hello

All SNMP variables that are known to me, including the show interface
command, show me the number of octets (bytes) that passed at layer#2
i.e. including the HDLC/PPP header.

Does anybody know a SNMP variable (regardless which IOS it would need)
that counts only IP bytes (non-IP is filtered anyway so we can ignore
it).

thanks in advance,

 -christian-

_
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]