我正在嘗試運行tcpstat命令,該命令給出接收的請求數量爲icmp的輸出。同時我需要檢查計數,以便如果超過某個閾值,應該顯示一條消息。 我嘗試了這樣的事情 #!/usr/bin/perl
my @count= system "tcpstat -i eth1 -f icmp[0]==8 -o %C";
my $i=0;
while ($i<1000)
{
print "count o
我添加絲束邏輯接口測試用下面的命令: # set link on physical Device Up
sudo ip link set up dev eth0
# create logical Interfaces
sudo ip link add link eth0 dev meth0 address 00:00:8F:00:00:02 type macvlan
sudo ip li