show interface statistics for up interfaces only

From cpwiki.net
Revision as of 16:23, 25 February 2015 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Check Point Profressional Services

this will only work from the BASH shell, NOT csh.

[root@myfw ~]# clish -c "show interfaces" | grep -B 1 "    Up" | grep "Physical Interface" | grep -v -E "loop0|Tunnel" | awk '{print $3}' | while read LINE; do clish -c "show interface $LINE statistics"; done