LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 02-21-2008, 03:41 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
ifconfig - RX/TX ?


Linux ifconfig allow to display sent and received bytes or packets (Rx/Tx) form each interface and it looks like this:
Code:
eth0      Link encap:Ethernet  HWaddr 00:0C:29:C3:5B:BB
          inet addr:159.107.89.132  Bcast:159.107.89.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fec3:5bbb/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:381 errors:0 dropped:0 overruns:0 frame:0
          TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:41594 (40.6 KiB)  TX bytes:10430 (10.1 KiB)
          Interrupt:18 Base address:0x1080
What I am trying to have on Solaris 10 is to display sent and received packet/bytes from each NIC. Problem is that Solaris ifconfig looks quite diffrent:
Code:
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
        inet 159.107.88.150 netmask ffff0000 broadcast 159.107.255.255
        ether 0:b:5d:f3:e4:84
...and it does not display RX/TX in any form.
Is there any way to see that parameters using standard solaris (command line) tools ?

Bytes or packets - doesnt matter for me - just need to have those valuse.
 
Old 02-21-2008, 03:48 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Code:
netstat -i 5
will show you input and output packets every 5 seconds.

For bytes, you'll need to use the kstat command. eg:
Code:
kstat -n hme0 5
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 07:58 AM
Ifconfig mrodriguez Linux - Newbie 2 02-16-2005 12:17 PM
Oh where or where has ifconfig gone thotFree Linux - Software 3 11-13-2003 12:27 AM
Ifconfig ! mesta Linux - Software 2 02-04-2003 09:18 AM
ifconfig Astro Slackware 6 01-08-2003 04:30 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration