public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Grant Edwards <grante@visi.com>
To: ecos-discuss@sources.redhat.com
Subject: [ECOS] SNMP shows zero tx packets?
Date: Wed, 03 Jan 2001 13:15:00 -0000	[thread overview]
Message-ID: <20010103151945.A31920@visi.com> (raw)

I implimented the statistics ioctl() in my Ethernet driver and
I've got the SNMP daemon running -- since I don't have stdio, I
had to change 'printf(stderr,' 'to diag_printf(' in the log
routine, but other than that it worked right out of the box., 

All seems well except for two thing

 1) the tx packet count is always zero.  I get what looks like
    reasonable numbers for rx packets and rx bytes and also for
    tx bytes, but tx packets is always 0.

    I checked my ether_drv_stats struct I'm returning, and it
    has non-zero numbers filled in for tx_count, tx_complete,
    tx_good, but SNMP reports:

interfaces.ifTable.ifEntry.ifOutOctets.1 = Counter: 0
interfaces.ifTable.ifEntry.ifOutOctets.2 = Counter: 19405      <== right
interfaces.ifTable.ifEntry.ifOutUcastPkts.1 = Counter: 0
interfaces.ifTable.ifEntry.ifOutUcastPkts.2 = Counter: 0       <== wrong
interfaces.ifTable.ifEntry.ifOutNUcastPkts.1 = Counter: 0
interfaces.ifTable.ifEntry.ifOutNUcastPkts.2 = Counter: 0
interfaces.ifTable.ifEntry.ifOutDiscards.1 = Counter: 0
interfaces.ifTable.ifEntry.ifOutDiscards.2 = Counter: 0
interfaces.ifTable.ifEntry.ifOutErrors.1 = Counter: 0
interfaces.ifTable.ifEntry.ifOutErrors.2 = Counter: 0
interfaces.ifTable.ifEntry.ifOutQLen.1 = Gauge: 0
interfaces.ifTable.ifEntry.ifOutQLen.2 = Gauge: 4

    Anybody else notice something like this?  (I'm using a CVS
    snapshot from a few weeks back).

2)  I've also noticed that the system uptime is always zero...

Everything else (UDP,TCP,IP) looks like it's working!!

-- 
Grant Edwards
grante@visi.com

             reply	other threads:[~2001-01-03 13:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-03 13:15 Grant Edwards [this message]
2001-01-04  0:15 ` Andrew Lunn
2001-01-04  0:33   ` Andrew Lunn
2001-01-04  5:28     ` Gary Thomas
2001-01-04  8:22       ` Grant Edwards

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010103151945.A31920@visi.com \
    --to=grante@visi.com \
    --cc=ecos-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).