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

# sk130852 - When checking licenses using <code>cplic print</code> the output is very slow and CPM process does not start

| Property | Value |
|----------|-------|
| Solution ID | sk130852 |
| Date Created | 2018-07-16 |
| Last Modified | 2021-06-22 |
| Technical Level | General |
| Products | Security Management Server |
| Versions | R82.10, R82, R81.20, R82.x, R82.20 |

## Symptoms

- * When checking licenses using `cplic print` the output is very slow and CPM process does not start.
* "ps aux" shows many processes checking for a cpmp-mgmt-demo license  

  `
  admin 17793 0.0 0.0 3444 1352 ? S 09:10 0:00 /bin/sh /opt/CPsuite-R80/fw1/scripts/ngm_start.sh`  
  `
  admin 17795 2.0 0.0 2368 1172 ? Ss 09:13 0:00 /bin/sh /opt/CPsuite-R80/fw1/scripts/cpm.sh -s`  
  `
  admin 17798 0.0 0.0 1564 408 ? S 09:13 0:00 sleep 2`  
  `
  admin 17799 0.0 0.0 2368 584 ? S 09:13 0:00 /bin/sh /opt/CPsuite-R80/fw1/scripts/cpm.sh -s`  
  `
  admin 17800 86.0 0.3 192424 45524 ? R 09:13 0:00 cplic print`  
  `
  admin 17801 0.0 0.0 1736 504 ? S 09:13 0:00 grep -i cpmp-mgmt-demo`  
  `
  admin 17802 0.0 0.0 2060 644 ? S 09:13 0:00 awk {print tolower($3);exit}`  
  `
  `

## Cause

*$MDS_FWDIR/scripts/ngm_start.sh* starts CPM in a loop. When CPM starts, it checks the license on the server to see if it is a demo mode server. If cplic print takes a while to run, the loop does not wait and stops/starts CPM continuously.

## Solution

This problem was fixed. The fix is included in:

* **[Security Management R80.20.M2](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk123473)**

Check Point recommends to always [upgrade to the most recent version](https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doShowproductpage&productTab=overview&product=184).  

<br />

If you do not wish to upgrade, the following **workaround**is available:

Backup and modify the *$MDS_FWDIR/scripts/cpm.sh* file and comment out the check for demo mode license.

For R80 and R80.10:

`# check if we are running in demo mode`  
`#export DEMO_MODE='cplic print | grep -i 'cpmp-mgmt-demo' | awk '{print tolower($3);exit}''`  
`#if [ "$DEMO_MODE" = "cpmp-mgmt-demo" ]; then`  
`# NGM_DEMO_MODE="demo_setup=TRUE"`  
`#fi`

For R80.20 (the check is one long line):

`# timeout cplic check (demo mode)`  
`# cplic check operate in a subshell meanwhile, the watcher wait 2s and then kill first subshell (if not finished)`  
`#( if cplic check 'mgmt-demo' | grep -q 'license valid'; then echo cpmp-mgmt-demo; fi > $TMP_FILE ) & get_lic=$! ; ( sleep 2s && kill -HUP $get_lic) 2>/dev/null & watcher=$! ; wait $get_lic 2>/dev/null && pkill -HUP -P $watcher`

---

# 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
