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

Easy Debug - ONELINER

HeikoAnkenbrand
MVP Diamond
MVP Diamond

This oneliner will do the work for you.
Use this onliner to start easy a debug without entering all debug commands by hand.

 


   echo 'clear; echo -n "Input debug filter: "; read dbfilter; function ctrl_c { fw ctl debug 0; rm /tmp/vd; exit 0;}; trap ctrl_c INT; fw ctl debug -buf 20480; fw ctl debug $dbfilter;echo -e "\e[7m"; echo " Stop VPN debug with CTRL-C "; echo -e "\e[0m"; fw ctl kdebug -f -T | tee /var/log/edebug.log; sleep 100000000;' > /tmp/vd; chmod 770 /tmp/vd; /tmp/vd
  
...;
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.




(1)
5 Replies

Joerg_B
Participant

Nice Solution.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Timothy_Hall
MVP Gold
MVP Gold

Hi Heiko, any chance you can add an option to include an automatic timeout as a sort of "dead-man's switch" for possible runaway debugs? 

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


the_rock
MVP Diamond
MVP Diamond

Gotta try this in the lab, for sure.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

the_rock
MVP Diamond
MVP Diamond

Just tested it, very good!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Timothy_Hall
MVP Gold
MVP Gold

Hi Heiko,

Here is some content from my upcoming Max Power 2026 book that you may want to integrate into this tool.  Some of these capabilities were added starting in R82.10; not sure if they will all be back-ported to Jumbo HFAs for prior versions:

In the latest Jumbo HFAs (PRJ-64355, PMTR-118923), a timeout in seconds can be configured via -T, which will automatically disable your debugging flags for you as a kind of "dead man’s switch" to avoid a runaway debug. Here is an example:

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