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)
4 Replies

Joerg_B
Participant

Nice Solution.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

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


0 Kudos

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