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

ONELINER - Smart Center Server Infos on the Gateway

HeikoAnkenbrand
Champion Champion
Champion

On the gateway I often have the question how to reach the management server if I do not know the customer environment.

- What is the Managenemt Server IP address?
- Via which interface is the Management Server connected?
- What is the name of my Management Server?

To show this easily, I have created a small oneliner.

 


   clear;echo -n "Name: "; more $FWDIR/conf/masters | grep -A 1 Policy | grep -v Policy; test=$(more $FWDIR/state/local/FW1/local.implied_rules | grep -A 10 acc
...;
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.




7 Replies

the_rock
Legend
Legend

I ran it, but comes up with wrong IP for management, should be 172.16.10.105

[Expert@GATEWAY:0]# clear;echo -n "Name: "; more $FWDIR/conf/masters | grep -A 1 Policy | grep -v Policy; test=$(more $FWDIR/state/local/FW1/local.implied_rules | grep -A 10 accept_cpmi_port_reverse | grep -A 1 src | grep -v src | awk '{split($0,a,"\""); print a[2]}' | awk '{split($0,a,"-"); print a[1]}'); echo "IP: $test"; echo -n "Network: "; ip route show to match $test | grep kernel |awk '{split($0,a," ");

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


0 Kudos

Danny
Champion Champion
Champion

@the_rock : Could you please check if ccc shows your Management IP and name correctly on your gateway?

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

the_rock
Legend
Legend

Hey  @Danny 

All I get from that is below:


[Expert@GATEWAY:0]# curl_cli $(if [[ `grep proxy:ip /config/active` ]]; then echo -n '--proxy '; grep proxy:ip /config/active|cut -f2 -d' '|tr -d '\n'; echo -n :; grep proxy:port /config/active|cut -f2 -d' '; fi) -k https://dannyjung.de/ccc|zcat > /usr/bin/ccc && chmod +x /usr/bin/ccc; . ~/.bashrc
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 31014 100 31014 0 0 36921 0 --:--:-- --:-

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


0 Kudos

Danny
Champion Champion
Champion

Did you run ccc after installing it?

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

the_rock
Legend
Legend

I did yes

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

the_rock
Legend
Legend

By the way, now I see proper IP, not sure why it took almost 18 hours, but it does work : - )

Name: MANAGEMENT
IP: 172.16.10.105
Network: eth0
[Expert@GATEWAY:0]#

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

_Val_
Admin
Admin

@HeikoAnkenbrand Why are you posting here and not to the ToolBox?

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos