Close-RDMSession not working as expected

Resolved

Close-RDMSession not working as expected

avatar

RDM Version 2020.3.24.0 64-Bit

I'm trying to use my standard shell in conjuction with RDMs log features.
So I start a new session "invisibly" like this:

$s = get-rdmsession -name foobar
open-rdmsession -id $s.id -Silent $True


This works, and I appear in RDM as "logged in" to the machine.
After closing my SSH connection, I attempt to close the RDM Session aswell:

close-rdmsession -id $s.id -force


However, this appears to have no effect - I can still see the session running in the "Opened Sessions" window, and I need to close it there manually.
The created session does also not appear if I run

Get-RDMOpenedSession


Am I doing something wrong? I currently need to mark the session as closed "by hand" in the "Opened Sessions" list.

All Comments (1)

avatar

Hello Panki,

I was able to reproduce your issue, even by closing the PowerShell window, the session remains open in RDM under Opened Sessions. I also noticed that Get-RDMOpenedSession does not return the session even if you run it just after opening one. I will report both issues to our engineering team so they can have a look.

A workaround, for now, is to create a PowerShell entry in RDM that starts the session, when that session is closed, the session is closed as well.

Best regards,

Richard Boisvert