Identity Awareness - IDC Problems
Examples
of information to include would be:
- cpinfo -y all
- enabled_blades
- fw stat
- cpinfo from gateway and cpinfo / migrate export from
management server
- Screen shots of the issue
- any debug outputs or traffic captures which have been
collected.
Checking where the issue resides and provide this extra info to TAC.
Type the following commands on both
- PDP (Policy Decision Point - acquires identity from identity sources and shares identity with other gateways). PDP - The process on the Security Gateway responsible for collecting and sharing identities.
- PEP (Policy Enforcement Point - received identity via identity sharing, redirects users to captive portal ) to see where the identity is known. PEP - The process on the Security Gateway responsible for enforcing network access restrictions. Decisions are made according to identity data collected from the PDP.
- AD Query - AD Query is the module responsible for acquiring identities of entities (users or computers) from the AD (Active Directory). AD Query was called Identity Logging in previous versions and in some cases is also referenced as AD Log. The adlog is the command line process used to control and monitor the AD Query feature.
test_ad_connectivity- A utility that runs connectivity tests from the Security Gateway to an AD domain controller.
or alternatively:
pdp m ip <PROBLEMATIC IP>
pdp m user
pdp m ip
pdp show connections
pdp connections
pdp connections pep
pep sh u q cid <PROBLEMATIC IP>
or alternatively:
pep sh u q usr <PROBLEMATIC USERNAME>
pep show user all | wc -l
pep show user
pep show user query
adlog a dc IP
1. cpinfo from both PDP and PEP (if these are different machines)
2. log files:
$FWDIR/log/pdpd.elg*
$FWDIR/log/pepd.elg*
[Expert@myFW-int01]# ls -lh $FWDIR/log/pdpd*
-rw-rw-r-- 1 admin root 8.2M May 6 22:40 /opt/CPsuite-R77/fw1/log/pdpd.elg
[Expert@myFW-int01]#
adlog debug is already turned on
Debug is now turned ON
The following topics were added:
topic severity
=====================
+ all all
[Expert@myFW-int01]# pep d s all all
Debug is now turned ON
The following topics were added:
topic severity
=====================
+ all all
[Expert@myFW-int01]# adlog a d off
adlog debug is turned off
[Expert@myFW-int01]# pdp d unset all all
And the command that has to be run on both cluster members at the same time:
cat $FWDIR/lib/nac_tables.def | grep dynamic | cut -d ' ' -f1 | awk '{ print ("-t "$0"")}' ORS=" " | awk '{print "fw tab " $0 "-x -y"}' | bash ; fw kill pdpd ; fw kill pepd
AD Query can run either on a Security Gateway that has been enabled with Identity Awareness or on a Log Server.
test_ad_connectivity utility runs over both the LDAP and WMI protocols. It is usually used by the SmartDashboard Identity Awareness first time wizard, but you can run it manually on the Security Gateway when needed.2. Click on Identity Awareness -> Identity Sharing
3. Check box to enable sharing of identities
4. Publish and install policy
Checkpoint will also run debug commands to further investigate the issue. Running debug commands can be disruptive.
fw tab -t pdp_sessions -t pdp_super_sessions -t pdp_encryption_keys -t pdp_whitelist -t pdp_timers -t pdp_expired_timers -t pdp_ip -t pdp_net_reg -t pdp_net_db -t pdp_cluster_stat -t pep_pdp_db -t pep_networks_to_pdp_db -t pep_net_reg -t pep_reported_network_masks_db -t pep_network_to_ips -t pep_network_to_ips_stats -t pep_port_range_db -t pep_async_id_calls -t pep_client_db -t pep_identity_index -t pep_revoked_key_clients -t pep_src_mapping_db -t pep_log_completion -x -y; fw kill pdpd; fw kill pepd
pdp
# pdp [command]... <parameter>Parameter | Description |
|---|---|
<none> | Display available options for this command and exit |
debug | Control debug messages |
tracker | Tracker options |
connections | pdp connections information |
network | pdp network information |
status | pdp status information |
control | pdp control commands |
monitor | Display monitoring data |
update | Recalculate users and computers group membership (deleted accounts will not be updated) |
ad | Operations related to AD Query |
timers | Show pdp timers information |
pdp monitor
# pdp monitor <parameter> <option>Parameter | Description |
|---|---|
all | Display information for all connected sessions |
user <user name> | Display session information for the given user name |
ip <IP address> | Display session information for the given IP address |
machine <computer name> | Display session information for the given computer name |
mad | Display all sessions that relate to a managed asset (i.e. all sessions that successfully performed computer authentication) |
client_type [unknown|portal|"Identity Agent"|"AD Query"] | Display all sessions connecting via the given client type Possible client types are:
|
groups <group name> | Display all sessions of users / computers that are members of the given group name |
cv_ge <version> | Display all sessions that are connected with a client version that is higher than (or equal to) the given version |
cv_le <version> | Display all sessions that are connected via a client version that is lower than (or equal to) the given version. |
pdp monitor ip 192.0.2.1Note - The last field "Published " indicates whether the session information was already published to the Gateway PEPs whose IP addresses are listed. |
pdp connections
# pdp connections <parameter>Parameter | Description |
|---|---|
pep | Shows the connection status of all the PEPs that should be updated by the current PDP |
pdp control
# pdp control <parameter> <option>Parameter | Description |
|---|---|
revoke_ip <IP address> | Log out the session that is related to the given IP. |
revoke_pt_key <session id.> | Revoke the packet tagging key if one exists. |
sync | Force an initiated synchronization operation between the PDPs and the PEPs. When running this command, the PDP will inform its related PEPs the up-to-date information of all connected sessions. At the end of this operation, the PDP and the PEPs will contain the same and latest session information. |
pdp network
# pdp network <parameter>Parameter | Description |
|---|---|
info | Display a list of networks known by the PDP. |
registered | Display the mapping of a network address to registered gateways (PEP module). |
pdp debug
# pdp debug <parameter> <option>Parameter | Description |
|---|---|
on | Turn on the debug logs (should be followed by the command "set" to determine the required filter). |
off | Turn off the debug logs. |
set <topic name> [critical|surprise|important|events|all]… | Filter the debug logs that would be written to the debug file according to the given topic and severity For debug it is recommended to run: pdp debug set all allNote that you can place a number of topics and severity pairs. For example: topicA severityA topicB severityB ... |
unset <topic name>… | Unset a specific topic or topics. |
stat | Show the status of the debug option. |
reset | Reset the debug options of severity and topic. The debug is still activated after running this command. |
rotate | Rotate the log files (increase the index of each log file) so that the current log file that will be written is the PDP log. For example, pdpd.elg becomes pdpd.elg.0 and so on. |
ccc [on|off] | Allows enabling or disabling writing of the CCC debug logs into the PDP log file. |
Important - Activating the debug logs affects the performance of the daemon. Make sure to turn off the debug after you complete troubleshooting. |
pdp tracker
# pdp tracker <parameter>Parameter | Description |
|---|---|
on | Turns on logging of TRACKER events in the PDP log. |
off | Turns off the logging of TRACKER events in the PDP log. |
pdp status
# pdp status <parameter>Parameter | Description |
|---|---|
show | Display PDP information. |
pdp update
# pdp update <parameter>Parameter | Description |
|---|---|
all | Recalculate group membership for all users and computers. |
pdp ad associate
# pdp ad associate ip <ip> u <username> d <domain> [m <machine>] [t <timeout>] [s]Parameter | Description |
|---|---|
ip <ip> | IP address for the identity. |
u <username> | Username for the identity. |
m <machine> | Computer that is defined for the identity. |
d <domain> | Domain of the ID server. |
t <timeout> | Timeout setting for the AD Query (default is 5 hours). |
s | Associates u <username> and m <machine> parameters sequentially. First the <machine> is added to the database and then the <username>. |
pdp ad disassociate
# pdp ad disassociate ip <ip> {u <username>|m <machine>} [r {probed|override|timeout}]Parameter | Description |
|---|---|
ip <ip> | IP address for the identity |
u <username> | Username for the identity |
m <machine> | Computer that is defined for the identity |
t <timeout> | Timeout setting for the AD Query (default is 5 hours) |
r {probed|override|timeout} | Reason that is shown in the SmartView Tracker logs |
pep
# pep [command]... <argument>Parameter | Description |
|---|---|
tracker | Tracker options. |
show | Display PEP information. |
pep show
# pep show <parameter> <option>pep show user
# pep show user allParameter | Description |
|---|---|
all | Display all sessions with information summary. |
# pep show user query <parameter>Parameter | Description | ||
|---|---|---|---|
usr <username> | Display session information for the given user name. | ||
mchn <computer name> | Display session information for the given computer name. | ||
cid <IP> | Display session information for the given IP. | ||
uid <uidString> | Display session information for the given session ID. | ||
pdp <IP> | Display all session information that was published from the given PDP IP. | ||
ugrp <group> | Display all sessions of users that are members of the given user group name. | ||
mgrp <group> | Display all sessions of computers that are members of the given computer group name. | ||
Note - You can use multiple query tokens (parameters) at once to create a logical "AND" correlation between them. For example, to display all users that have a sub string of "jo" AND are part of the user group "Employees" then you can use: # pep show user query usr jo ugrp Employees | |||
pep show pdp
# pep show pdp <parameter>Parameter | Description |
|---|---|
all | List all the PDPs that are connected to the current PEP with the relevant information. |
id <IP> | Display connection information of the given PDP IP. |
pep show stat
Important - Each time the daemon starts, it loads the policy and the two timers (Daemon start time and Policy fetched at) will be very close. |
# pep show statpep show network
# pep show network <parameter>Parameter | Description |
|---|---|
pdp | Shows information about mapping between the network and PDPs. |
registration | Shows which networks this PEP is registered to. |
pep debug
adlog
adlog a <argument> (see below for options)adlog l <argument>. Note: the l in adlog l is a lowercase L.adlog a and adlog l are identical.# adlog {a|l} <command>… <argument>Parameter | Description |
|---|---|
<none> | Display available options for this command and exit. |
{a|l} | Set the working mode: adlog l - if you are using a Log Server (identity logging)adlog a - if you are using AD Query for Identity Awareness. |
query | See sections below. |
debug | |
dc | |
statistics | |
control | |
service_accounts |
adlog query
adlog [a|l] query <argument>Parameter | Description |
|---|---|
ip <IP address> | Filters identities relating to the given IP. |
string <string> | Filters identity mappings according to the given string. |
user <user name> | Filters identity mappings according to a specific user. |
machine <computer name> | Filters identity mappings according to a specific computer. |
all | No filtering, shows the entire identity database. |
adlog a query user joadlog dc
adlog [a|l] dcadlog statistics
adlog [a|l] statisticsadlog debug
adlog [a|l] debug <parameter>Parameter | Description |
|---|---|
on | Turn on debug. |
off | Turn off debug. |
mode | Show debug status (on/off). |
extended | Turn on debug and add extended debug topics. |
adlog control
adlog [a|l] control <parameter>Parameter | Description |
|---|---|
stop | Stop AD Query. New identities are not acquired via AD Query. |
reconf | Send a reconfiguration command to AD Query, which means it resets to policy configuration as was set in SmartDashboard. |
adlog service_accounts
adlog [a|l] service_accountstest_ad_connectivity
$FWDIR/bin/test_ad_connectivity <parameter_1 value_1> <parameter value_2> … <parameter_n value_n>$FWDIR/conf/test_ad_connectivity.conf . Parameters set in the test_ad_connectivity.conf file are overridden by ones provided in the command line.Important - Parameters set in $FWDIR/conf/test_ad_connectivity cannot contain whitespaces and cannot be within quotation marks. |
–oparameter (see below).Parameter | Mandatory? | Description |
|---|---|---|
-d <domain name> | Mandatory | Domain name of the AD, for example ad.checkpoint.com |
-i <DC IP> | Mandatory | IP of the domain controller that is being tested. |
-u <user name> | Mandatory | Administrator user name on the AD. |
-o <filename> | Mandatory | Output filename relative to $FWDIR/tmp. For example, if you specify -o myfile, the output will be in $FWDIR/tmp/myfile |
-c <password clear> | Either this or -a should be specified | User’s password. |
-a | Either this or -c should be specified | For entering password via stdin. |
-t <timeout> | Mandatory | Total timeout in milliseconds. |
-D <user DN> | Optional | Use this for LDAP user DN override (the utility won’t try to figure out the DN automatically). |
-l | Optional | Run LDAP connectivity test only (no WMI test). |
-w | Optional | Run WMI connectivity test only (no LDAP test). |
-s | Optional | SSL Parameters file path. |
-L | Optional | Timeout for the LDAP test only. If this timeout expires and the LDAP test doesn’t finish, both tests fail. |
-h | Optional | Show help. |


