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

Gaia fw interfaces detailed info

the_rock
MVP Diamond
MVP Diamond

This script provides detailed info on the currently configured interfaces.

Lab example:

[Expert@CP-GW:0]# ./cp_topology_report.sh
Writing report to: cp_topology_report_CP-GW_20260120-131201.txt
./cp_topology_report.sh: line 88: $2: unbound variable
[Expert@CP-GW:0]# more cp_topology_report_CP-GW_20260120-131201.txt
Check Point Topology Report - 20260120-131201

====================================================================
== System / Version
======================================

...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

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.




0 Kudos
7 Replies

Bob_Zimmerman
MVP Gold
MVP Gold

I see the example output, but not a link to the script. Where is it?

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

the_rock
MVP Diamond
MVP Diamond

Sorry about that, just uploaded it.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Vincent_Bacher
MVP Silver
MVP Silver

Strange. Tryed to run this script and got following error


   ./cp_topology_report.sh Writing report to: cp_topology_report_***_20260121-104132.txt ./cp_topology_report.sh: line 88: $2: unbound variable
  

Analysing the script i see following:


   IFACES="$(ip -o link show | awk -F': ' '{print $2}' | cut -d'@' -f1 | grep -v '^lo$' || true)"
  

For my understanding, the single quotes in '{print $2}' break the outer single quotes of the bash -lc '...' block.
In my case this cause

...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Vincent_Bacher
MVP Silver
MVP Silver

I had a long and completely unnecessary meeting where I just had to listen. So I played around with the co-pilot a bit, and he added an output in a spruced-up HTML format to your script for me. 😄

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


the_rock
MVP Diamond
MVP Diamond

Fair enough, thank you!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Vincent_Bacher
MVP Silver
MVP Silver

Does it work on your end?

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


the_rock
MVP Diamond
MVP Diamond

Yes sir!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos