Using ifconfig to get network statistics

Hopefully this is an easy one. I wish to use ifconfig to see the total number of packet errors. Normally on any *nix distro, I can type in just ifconfig or sometimes ifconfig -a and it will list this information. When I try to do this on a Mac, it gives me the MAC address, link state, connection speed, but no packet information. I can get this through the GUI Network Utility, but I like to check up on computers while users are using them, so I need to be able to SSH in and get this info through command line.

Thanks,

Josh

Posted on Oct 4, 2005 8:41 AM

Reply
4 replies

Oct 4, 2005 9:25 AM in response to Jeff Hubbach

With every distro I've used, doing a ifconfig would give output that looks like this:

eth0 Link encap 10Mbps Ethernet HWaddr 00:00:C0:90:B3:42
inet addr 172.16.1.2 Bcast 172.16.1.255 Mask 255.255.255.0
UP BROADCAST RUNNING MTU 1500 Metric 0
RX packets 3136 errors 217 dropped 7 overrun 26
TX packets 1752 errors 25 dropped 0 overrun 0

But either way, using netstat as you mentioned does the trick. Thanks for the help!

Oct 4, 2005 10:09 AM in response to Josh@uwgb

Hi Josh,

> With every distro I've used ...

The output you posted is from a Linux box and that's the only place I've seen it. While Linux is *nix, it's hardly "any distro", unless you count the fact that "distro" is Linux slang to begin with.
--
Gary
~~~~
All the passions make us commit faults; love
makes us commit the most ridiculous ones.
-- La Rochefoucauld

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Using ifconfig to get network statistics

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.