> Source: [sk165612](https://support.checkpoint.com/results/sk/sk165612)

# sk165612 - Gateway Object still exists in "Distributed Enforcement" under "Device Status" view after being deleted via SmartConsole

| Property | Value |
|----------|-------|
| Solution ID | sk165612 |
| Date Created | 2020-03-17 |
| Last Modified | 2021-05-11 |
| Technical Level | General |
| Products | Security Management Server |
| Versions | R82.10, R82, R81.20 |
| OS | Gaia |

## Symptoms

- * The PEP gateway has been removed from the SmartConsole, but the gateway object is still showing up under the PDP gateway or gateway cluster -\> Device information -\> Device Status -\> Identity Awareness -\> Distributed Enforcement
* The PEP gateway is sharing the identity from the PDP gateway.

## Cause

Status from "Distributed Enforcement" was reading from FWM cache by SmartView Monitor. The FWM cache failed to be updated after object removed from the SmartConsole.

<br />

## Solution

1. Make a backup ([sk91400 - System Backup and Restore feature in Gaia](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk91400)) of the Security Management server or backup the management database using "*migrate export* " command.   
   For Multi-Domain Management server, use "*mds_backup* ".  

2. Verify the object is deleted from the Postgresql:  

   *\[Expert@HostName:0\]#psql_client -c "select objid,name,objclass,deleted from dleobjectderef_data where name='NAME' and dlesession=0;"*   

   The "deleted" field should be **"t"** .  

   Example:  

   *\[Expert@HostName:0\]#psql_client cpm postgres*   
   *cpm=# select objid,name,objclass,deleted from dleobjectderef_data where name='FFDFW' and dlesession='0';*   

   *-\[ RECORD 1 \]----------------------------------------------------------*   
   *objid \| 00000014-002d-004e-a48a-13c7a4ee6574*   
   *name \| FFDFW*   
   *objclass \| com.checkpoint.objects.classes.dummy.CpmiInstalledPackages*   
   ***deleted \| t**cpm=#\\q*   

3. If the "deleted" field show **"f"** , then using the following API command remove the object from the database.   

   *\[Expert@HostName:0\]#mgmt_cli -r true delete-generic-object uid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx*   

4. If the object is still showing up under *"Distributed Enforcement"* , then restart the FWM process.  

   Logout from the SmartConsole Clients.  

   **For Security Management server:** *\[Expert@HostName:0\]#for PROC in $(pidof fwm);do kill -9 $PROC;done*   

   Wait for few minutes the FWM should start itself.   

   **For Multi-Domain Server:** Find the FWM pid for the specific customer (CMA) from the output of *\[Expert@HostName:0\]#mdsstat*   

   and run:  

   *\[Expert@HostName:0\]#kill -9 \<FWM_PID_for_CMA\>* Wait for few minutes the FWM should start itself.   

5. Verify if the object is still showing up under "Distributed Enforcement"

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
