- CheckMates
- :
- CheckMates Toolbox
- :
- Scripts
- :
- Re: ONELINER - All Physical Interface States in on...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


This oneliner (see spoiler) shows you all states of all physical interfaces:
echo;echo "Interface MAC Driver Duplex Speed MTU CPU IRQ RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR";printf '%.s-' {1..169};echo;fw ctl affinity -l -v |grep Interface | awk '{system("ethtool " $2 " | grep Duplex")} {system("ethtool " $2 " | grep Speed ")} {system("ethtool -i " $2 " | grep driver ")} {system("netstat -I" $2 " | grep " $2)} {system ("ifconfig " $2 " | head -n 1")} {print $2 " " $4 " " $6 }' |xargs -n 26 | sed s/\):// | awk '{printf "%-12s %-19s %-6s %-6s %9s %5s %3s %4s %15s %10s %10s %10s %15s %10s %10s %10s \n", $7, $23 , $6, $2, $4, $8, $26, $25, $10 , $11 , $12, $13, $14, $15, $16, $17} ' |sort;echo
Output:
Or use this tool for much more information on all your gateways :
Easy View Tool - View System Info for All Gateways Simultaneously
This oneliner (see spoiler) shows you all states of all physical interfaces:
Output:
Or use this tool for much more information on all your gateways :
Easy View Tool - View System Info for All Gateways Simultaneously
Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


Hi @Martin_Raska,
Thanks.
Here is a collection of oneliners from the forum.
One-liner collection
Maybe this will help.
Hi @Martin_Raska,
Thanks.
Here is a collection of oneliners from the forum.
One-liner collection
Maybe this will help.
;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


Heiko,
it would be great if you put all one-liners into one script to have them in one place, what do you think? Great job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


Hi @Martin_Raska,
Thanks.
Here is a collection of oneliners from the forum.
One-liner collection
Maybe this will help.
Hi @Martin_Raska,
Thanks.
Here is a collection of oneliners from the forum.
One-liner collection
Maybe this will help.
;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


It will show interfaces which are UP, or also interfaces which are down ?
Would be great to display all interfaces (up/down) and mention if particular interface is up or down.
Jozko Mrkvicka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


Hi @JozkoMrkvicka,
I only use interface from "fw ctl affinity -l" which are used for Check Point gateways. All unused interfaces are not displayed.
Hi @JozkoMrkvicka,
I only use interface from "fw ctl affinity -l" which are used for Check Point gateways. All unused interfaces are not displayed.
;- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content


