Typically, this function is not required as by default, Opengear supports multiple concurrent connections to console ports. However it is possible using the commands below.
To terminate serial console connections (aka pmshell sessions), you must have CLI access to the Opengear, i.e. be part of user or admin group, or be logged in as the root user.
Note that to terminate other users' sessions, you must be part of the admin group and prepend the command with sudo, or be logged in as the root user.
To terminate a specific user's (e.g. someuser) sessions directly to a specific console port (e.g. port 2), run:
pkill -u someuser -f "pmshell -l port02"
To terminate all sessions directly to a specific console port, omit the -u argument:
pkill -f "pmshell -l port02"
To terminate all serial console sessions, including those initiated from the chooser menu, run:
pkill -f pmshell
To terminate all sessions by a specific user including console and CLI, run:
pkill -u someuser