Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

ONELINER - All Physical Interface States in one Overview

Jump to solution

This oneliner (see spoiler) shows you all states of all physical interfaces:

Spoiler
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:
Physical_Interface_status.JPG

Or use this tool for much more information on all your gateways :
Easy View Tool - View System Info for All Gateways Simultaneously

1 Solution

Accepted Solutions
Highlighted

Hi @Martin_Raska,

Thanks.  

Here is a collection of oneliners from the forum. 
One-liner collection

Maybe this will help.

 

 

View solution in original post

6 Replies
Highlighted
Iron

Hello @HeikoAnkenbrand 

This is a nice summary of all interface parameters.

 

0 Kudos
Highlighted

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.

0 Kudos
Highlighted

Hi @Martin_Raska,

Thanks.  

Here is a collection of oneliners from the forum. 
One-liner collection

Maybe this will help.

 

 

View solution in original post

Highlighted
Platinum

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.

Kind regards,
Jozko Mrkvicka
0 Kudos
Highlighted

Hi @JozkoMrkvicka,

I only use interface from "fw ctl affinity -l" which are used for Check Point gateways. All unused interfaces are not displayed.

Tags (1)
Highlighted

Now with R80.40 update.

Tags (1)
0 Kudos