Nginx
1
Вклад в тег
snmpwalk -v2c -c ReadComm 192.168.168.1 1.3.6.1.2.1.2.2.1.8 | sed '/25/,/5121/d' | awk '{print $1,"\t",$4}' | awk 'gsub("iso.3.6.1.2.1.2.2.1.8.","") {if($2==1) $2="Up"; print $1,"\t",$2}' | awk '{if($2==2) $2="Down"; print $1,"\t",$2}' > /var/tmp/tkd_1/new