开发者

How to convert netstat -in output on Sunos

开发者 https://www.devze.com 2022-12-10 12:36 出处:网络
On Sunos netstat -in gives me below output. NameMtuNet/DestAddressIpktsIerrs OpktsOerrs Collis Queue lo0832 127.0.0.0127.0.0.开发者_开发技巧120026 020026 000

On Sunos netstat -in gives me below output.

Name  Mtu  Net/Dest      Address        Ipkts  Ierrs Opkts  Oerrs Collis Queue 
lo0   832 127.0.0.0     127.0.0.开发者_开发技巧1      20026 0     20026 0     0      0     
nxge0 100 192.168.0.0  192.168.0.31 40957 0     465768 0     0      0

Is it possible to change the input/output values to volume i.e. in KB, etc. OR Please advise if there is any other way to find how much data (in Kb or Mb) transmitted from my NIC.


You can get these values on Solaris by using kstat.

eg:

kstat -c net -n nxge0 | grep bytes64

PS: There's nothing in /proc which isn't process related, unlike Linux.


You can't get that info from netstat, but there's probably something in the /proc filesystem that will give the statistics.

0

精彩评论

暂无评论...
验证码 换一张
取 消