- CheckMates
- :
- Products
- :
- Quantum
- :
- Management
- :
- Re: Force clearing disconnected sessions
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Are you a member of CheckMates?
×- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Force clearing disconnected sessions
Hi.
I've a management server R81 Take 36.
I've an admin session stuck - can't login with that user or even discard, take over or publish.
Just getting "Internal error".
cpm.elg show lots of different errors around it.
Trying to remove it from mgmt_cli, results in the following error:
"Runtime error: Tried to open non existing session with id <SOME GUID>"
Any ideas? or just TAC?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please open a TAC request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please open a TAC request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Im pretty sure cpstop;cpstart or reboot would fix that. However, if that was done, then I guess you may need to contact TAC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Zombie Thread Alert. Same deal on 81.10 JHF 95. Reboot did not fix it on a MDM. Setting up to call TAC.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried below command?
Andy
mgmt_cli -r true show sessions details-level full -f json | jq -r '.objects[] | select(."user-name" != "WEB_API") | .uid' | while read -r uid; do mgmt_cli -r true disconnect uid $uid; done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We did and got
"Runtime error: Tried to open non existing session with id <SOME GUID>"
The guid response is not in the worksession data.
mgmt_cli -r true disconnect uid UID -d DOMAINID
and
mgmt_cli -r true disconnect uid UID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is Provider 1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MDM, yes. We will need TAC on this one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ah, sorry, if its MDM, then not sure, hope TAC can help. I have some time later, I will set up MDM in the lab and test myself, if I make progress, will let you know either way.
Keep us posted.
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
K, though Im working on really difficult Fortigate vpn issue, Im in parallel doing the MDS lab. I got it going, so will see how far I get. Will update you little later on the progress.
Kind regards,
Andy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is from my R81.20 jhf 26 mgmt lab
Andy
[Expert@CP-management:0]# mgmt_cli -r true show sessions details-level full -f json | jq -r '.objects[] | select(."user-name" != "WEB_API") | .uid' | while read -r uid; do mgmt_cli -r true disconnect uid $uid; done
message: "OK"
---------------------------------------------
Time: [10:05:57] 19/10/2023
---------------------------------------------
"Publish operation" succeeded (100%)
[Expert@CP-management:0]#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It works great, but the problem is this particular UID is broken. You get a generic "An internal error has occurred" dialog box, so went to expert cli and it fails with better information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
K, just ran it on MDS level, worked 100%
See below.
Andy
[Expert@CP-Provider1:0]# uptime
11:17:49 up 14 min, 1 user, load average: 1.03, 1.24, 1.00
[Expert@CP-Provider1:0]# mgmt_cli -r true show sessions details-level full -f json | jq -r '.objects[] | select(."user-name" != "WEB_API") | .uid' | while read -r uid; do mgmt_cli -r true disconnect uid $uid; done
message: "OK"
---------------------------------------------
Time: [11:18:16] 19/10/2023
---------------------------------------------
"Publish operation" succeeded (100%)
[Expert@CP-Provider1:0]# mdsstat
CPM: Check Point Security Management Server is running and ready
+------+--------------------+-----------------+-------------+-------------+-------------+-------------+-------------+
| Type | Name | IP address | FWM | FWMHA | FWD | CPD | CPCA |
+------+--------------------+-----------------+-------------+-------------+-------------+-------------+-------------+
| MDS | - | 172.16.10.242 | up 11869 | up 11880 | up 11867 | up 7792 | up 17354 |
+------+--------------------+-----------------+-------------+-------------+-------------+-------------+-------------+
Total Domain Management Servers checked: 0 0 up 0 down
Tip: Run mdsstat -h for legend
[Expert@CP-Provider1:0]#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, I would also recommend open a TAC case , because your database need afixup to remove different table entries.
There additional scripts available to do the rudimentary cleanup, but do it with TAC 🙂
Gero
