In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "what is the use of Linux's ifstat command". The editor shows you the operation process through an actual case, the operation method is simple and fast, and it is practical. I hope this article "what is the use of Linux's ifstat command" can help you solve the problem.
Linux common command ifstat command, just like iostat/vmstat describes other system conditions, is a tool for counting the activity status of network interfaces. Ifstat tools system is not installed by default, you need to download the source package, recompile and install, the process is relatively simple.
Download http://gael.roualland.free.fr/ifstat/ (official website) wget http://gael.roualland.free.fr/ifstat/ifstat-1.1.tar.gz compile and install tar-zxvf ifstat-1.1.tar.gz cd ifstat-1.1. / configure # will be installed to / usr/local/bin/ directory make by default; make install Note: execute which ifstat output / usr/local/bin/ifstat
Option-l monitors the loop network interface (lo). By default, ifstat monitors all non-loop network interfaces for activity. After using, it is found that adding-l parameter can monitor all network interface information, not just lo interface information, that is to say, adding-l parameter will increase the status information of lo interface than not adding-l parameter. -a monitors the status information of all network interfaces that can be detected. Using discovery, there is one more plip0 interface information than adding the-l parameter. Search and find that this is a parallel port (there is a PLIP (Parallel Line Internet Protocol) in the network device. It provides parallel ports.)-z hides interfaces where traffic is not available, such as those interfaces that are enabled but not used-I specifies the interface to be monitored, followed by the network interface name-s equals to-d snmp: [comm@] [#] host [/ nn]] parameter, querying a remote host through SNMP-h to display short help information-n turns off displaying periodic header information (that is, When you run ifstat without the-n parameter, the name of the network interface will appear at the top. When it is not displayed on one screen, the name of the interface will appear again, indicating which network interface the traffic information is displayed. Add the-n parameter to turn off the periodic display interface name, showing it only once)-t adds a timestamp at the beginning of each line (can tell us the specific time)-T reports the full bandwidth of all monitoring interfaces (the last column has a total, showing in traffic for all interfaces and out traffic for all interfaces Simply add the in traffic of all interfaces, out traffic)-w with the specified column width, rather than automatically enlarge the column width to adapt to the length of the interface name-W automatically wrap if the content is wider than the width of the terminal window-S keeps status updates on the same line (no scrolling, no wrapping) Note: this is very convenient if you don't like screen scrolling. Similar to bmon display-b shows bandwidth in kbits/s instead of kbytes/s-Q quiet mode Warning message does not appear-v displays version information-d specifies a driver to collect status information instance [root@flow_video] # ifstat-tT Time eth0 eth2 eth3 eth4 Total HH:MM:SS KB/s in KB/s out KB/s in KB/s out KB/s in KB/s Out KB/s in KB/s out KB/s in KB/s out 16:53:04 0.84 0.62 1256.27 1173.05 0.12 0.18 0.00 0.00 1257.22 1173.86 16:53:05 0.57 0.40 0.57 0.76 0.00 0.00 0.00 1.14 1.17 16:53:06 1.58 0.71 0.42 0.78 0.00 0.00 0.00 2.01 1.48 16:53:07 0.57 0.40 1.91 2.61 0.00 0.00 0.00 2.48 3.01 16:53:08 0.73 0.40 924.02 1248.91 0.00 0.00 924.76 1249.31 about "what is the use of Linux's ifstat command"? Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.