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

Delete Changes

Hi everyone,

I have one session that is locked, but it’s very old.
Is there any way to delete this session without impacting the changes of my colleagues?

0 Kudos
9 Replies
Vincent_Bacher
Advisor
Advisor

Just have a look at the session list if there are db locks.
In R82 it looks like this:

 

locks.png

Once checked and there are no locks (remember in R81 it looked bit different but you see if something is locked) you may disconnect the session safely. (right click)

disc.png

 


In case there are locks, you may takeover the session and check.

Once session is taken over, you can check the changes.
I usually enable the session pane 

session-pane.png

Then when opening session pane you see the list of activities at the top and the details at the bottom and you can verify and decide if you want to discard or publish this session.

 

activity.png


Right clicking you can open the affected object or rule or whatsoever.

But honestly said, if this is a very old session, it's unlikely that the changes are very important, right? 🙂

and now to something completely different - CCVS, CCAS, CCTE, CCCS, CCSM elite
0 Kudos
Danny
MVP Platinum
MVP Platinum

In SmartConsole > Manage & Settings > Sessions > View Sessions simply discard the old session or take it over and then discard it.

0 Kudos
RemoteUser
Advisor

It's pretty strange because i see that session is locked, but i don't see that in the  Sessions > View Sessions 

0 Kudos
the_rock
MVP Platinum
MVP Platinum

Hey bro,

Try mgmt cli as per below:

https://sc1.checkpoint.com/documents/latest/APIs/#cli/show-session~v2.0.1%20

example in my lab:


[Expert@CP-MANAGEMENT:0]# mgmt_cli show session --format json
Username: admin
Password:
{
"uid" : "cf2fc778-d8a7-4a18-9f9b-0a8eadad841c",
"type" : "session",
"domain" : {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"domain-type" : "domain"
},
"state" : "open",
"user-name" : "admin",
"description" : "",
"last-login-time" : {
"posix" : 1763132728324,
"iso-8601" : "2025-11-14T10:05-0500"
},
"expired-session" : false,
"application" : "WEB_API",
"changes" : 0,
"in-work" : true,
"ip-address" : "127.0.0.1",
"locks" : 0,
"email" : "",
"phone-number" : "",
"connection-mode" : "read write",
"session-timeout" : 600,
"connected-server" : {
"uid" : "a475d4ab-c341-9a40-9ea3-6baa1b8aded4",
"name" : "CP-MANAGEMENT",
"type" : "checkpoint-host",
"domain" : {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"domain-type" : "domain"
},
"icon" : "NetworkObjects/management",
"color" : "red"
},
"workflow-state" : "open",
"workflow-history" : "",
"comments" : "",
"color" : "black",
"icon" : "Objects/worksession",
"tags" : [ ],
"meta-info" : {
"lock" : "unlocked",
"validation-state" : "ok",
"last-modify-time" : {
"posix" : 1763132728330,
"iso-8601" : "2025-11-14T10:05-0500"
},
"last-modifier" : "admin",
"creation-time" : {
"posix" : 1763132728307,
"iso-8601" : "2025-11-14T10:05-0500"
},
"creator" : "admin"
},
"read-only" : true,
"available-actions" : { }
}
[Expert@CP-MANAGEMENT:0]#

 

btw, you dont see anything below?

 

Screenshot_1.png

Best,
Andy
0 Kudos
the_rock
MVP Platinum
MVP Platinum

@RemoteUserUltimately, just tell people you will do cprestart on the mgmt, will kick everyone out of smart console, wait few mins, run api status to make sure its successful, thats it.

Best,
Andy
0 Kudos
Vincent_Bacher
Advisor
Advisor

The good old-fashioned sledgehammer approach.

and now to something completely different - CCVS, CCAS, CCTE, CCCS, CCSM elite
0 Kudos
the_rock
MVP Platinum
MVP Platinum

Sometimes, thats the BEST approach lol

Best,
Andy
0 Kudos
Vincent_Bacher
Advisor
Advisor

by the way
bestfirewall.png

and now to something completely different - CCVS, CCAS, CCTE, CCCS, CCSM elite
(1)
the_rock
MVP Platinum
MVP Platinum

hahaha

Screenshot_1.png

Best,
Andy

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events