This is the summary concerning the query displaying additional tcp/ip values from the kernel:
Thank you to all respondents as the solutions and suggestions were varied.
It would appear that netstat -k is the easiest. In my case it dumps all the values
which I was interested in that are defined in the qe.h / hme.h header files etc.
Respondents:
Robert.Rose
Shaun O'Connor
Brad Young
Peter Polasek
Mark Mellman
Birger
Robert Montjoy
---------------------------------------------------------------------------
SE toolkit respondents.
From: "Rose, Robert" <Robert.Rose@ag.gov.au> for SE toolkit that Cockroft mentions in his book
---------------------------------------------------------------------------
netstat -k respondents (undocumented parameter)
From: "Shaun O'Connor" <soc@ms.com>
From: Brad Young <bbyoung@amoco.com>
From: Peter Polasek pete@cobra.brass.com
>From mellman@surfcity.ne.mediaone.net un-documented netstat -k.
Command: netstat -k
Output:
Lots'O detailed stuff
.
.
le0:
ipackets 519427 ierrors 0 opackets 459585 oerrors 1 collisions 15
defer 993 framing 0 crc 0 oflo 0 uflo 0 missed 0 late_collisions 0
retry_error 0 nocarrier 0 inits 7 notmds 0 notbufs 0 norbufs 0
nocanput 0 allocbfail 0 rbytes 523680546 obytes 82556807 multircv 0 multixmt 0
brdcstrcv 53860 brdcstxmt 723 norcvbuf 0 noxmtbuf 0
More detailed stuff...
-----------------------------------------------------------------------------
Other sources of info respondents.
Look up Adrian Cockroft's articles in SunWorld Online.
He has a column about performance related issues. Quite a few articles
are dedicated to a tool called SymbEl. This is a kind of C-like
interpreted language with direct access to the kernel stuff.
Perhaps some of the ready-made SymbEl programs will do what you want.
If not, SymbEl could be the easiest platform to do what you want.
Birger
----------------------------------------------------------------------------
And also a thank you to Robert Montjoy who sent an example program of how
to determine the values from the kernel.
>From Rob_Montjoy@ececs.uc.edu
----------------------------------------------------------------------------
Original query: (Shortened for brevity)
Hello,
I am currently looking for a way to dump the values for errors etc for the
ethernet interfaces.
I am aware that netstat gives the following:
Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue
hme0 1500 xxx.xxx.xxx.xxx somehost 24306377 18 29949941 84 171107 0
^ ^ ^
I am interested in finding more information as to the type of error which was logged
as Ierrs, Oerrs and if possible the collision type.
Digging around in the header files I find there are other values which appear to
get registered ie...
I would like some help in determining how to display some of what appears to be error
values such as hme_sqerr,hme_lenerr, etc.
I suspect one would need to use adb on the kernel as I have not found any way to
display the values using ndd unfortunately I have been unsuccessful in my attempts
at using adb.
Any pointers as to its usage other than the PANIC book by Drake / Brown would be
appreciated.
This is from the hme.h file as an example:
kstat_t *hme_ksp; /* kstat pointer */
kstat_t *hme_intrstats; /* kstat interrupt counter */
/*
* These three are used for qfe devices. All the four hme devices
* on single QFE board point to single qfe structure, hme_qfe.
*/
--- : The views expressed are those of the : author and are not those of: Jim Coby : Control Data Systems Inc. email : James.E.Coby.Jr@cdc.com phone : 1-800-345-6628 U.S. & Canada : 612-482-3434 International WWW Support Services page : http://www.cdc.com/support
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:13 CDT