How to force off a GUI user?

Everything about Control-M Enterprise Manager Server installation or setup.
Post Reply
pjatsl

How to force off a GUI user?

Post by pjatsl » 06 Dec 2011 11:21

Can anyone tell me how to force off a GUI user? I have deleted these users from Control-M, but when I use the CTL command to look at GUI users (PGUI) they are still there.

User avatar
meuser
Nouveau
Nouveau
Posts: 4
Joined: 23 Nov 2010 12:00

Post by meuser » 09 Dec 2011 7:58

Hi,

following is for
Control-M/Enterprise Manager 6.3.01
Control-M/Enterprise Manager 6.2.01
Control-M/Enterprise Manager 6.1.03
Control-M/Enterprise Manager 6.1.02
Control-M/Server for UNIX and Microsoft 6.3.01

In case there is a need to obtain information on all currently opened clients and viewpoints, number of jobs currently in memory of the GUI Server process (not in the Database) and List of Datacenters currently defined in EM, there are 5 commands which are used to retrieve this information:

PGUI - Retrieves all currently connected GUI clients. The information that is obtained:
User ID, User Name, Host Name, GUI Type and Login Time/Date

PUSERS - Retrieves all currently connected clients (not only EM GUI), including Control-M/Desktop, XML utilities and CLI's
User ID and list of viewpoints open for each specific EM GUI client

PVIEW - Retrieves the list of currently opened viewpoints.

PJOBCOUNT - Retrieves the current number of jobs which resides in the GUI Server memory. This can be used when GUI Server seems to be taking up a lot of memory.

PCTMREPOSITORY - Retrieves the list of currently defined Datacenters in EM. The one that are connected to Gateways will also have the indication of the current active net name.


Remarks:
PVIEW and PGUI are available since the Enterprise Manager 6.1.02 release, where as PUSERS, PCTMREPOSITORY and PJOBCOUNT are only available since 6.1.02 Fix Pack 4 and up.

Usage:
The commands provided in this resolution are for Support use only and are subject to being dropped from the product without prior notification.

The RSI utility is available on Windows platforms only. To use this utility do a search for RSI.exe on your Windows platform. Change to the directory in which the RSI.exe resides and execute it there.

Commands can be initiated via "CTL" or "RSI"

ecs ctl -U <user_name> -P <password> -M <machine_name> -C GUI_Server -cmdstr PGUI

ecs ctl -U <user_name> -P <password> -M <machine_name> -C GUI_Server -cmdstr PUSERS

ecs ctl -U <user_name> -P <password> -M <machine_name> -C GUI_Server -cmdstr PVIEW

ecs ctl -U <user_name> -P <password> -M <machine_name> -C GUI_Server -cmdstr PJOBCOUNT

ecs ctl -U <user_name> -P <password> -M <machine_name> -C GUI_Server -cmdstr PCTMREPOSITORY

For Microsoft Windows platforms, omit the ecs at the beginning of the command line above. It is only required on UNIX based CONTROL-M/Enterprise Manager Servers.


A user session may be killed with the KICK command.

From the CONTROL-M/Enterprise Manager Unix Server:
1. Run the following commands to get list of active sessions and UID's. The UID is the number in the first column.
ecs ctl -U <emuser> -P <empass> -C GUI_Server -M <machine> -cmdstr PGUI

2. Then run the following to kill the session. The following command assumes a UID 1.
ecs ctl -U <emuser> -P <empass> -C GUI_Server -M <machine> -cmdstr "KICK 1"

From the CONTROL-M/Enterprise Manager Windows Server:
1. Run the following commands to get list of active sessions and UID's. The UID is the number in the first column.
ctl -U <emuser> -P <empass> -C GUI_Server -M <machine> -cmdstr PGUI

2. Then run the following to kill the session. The following command assumes UID 1.
ctl -U <emuser> -P <empass> -C GUI_Server -M <machine> -cmdstr "KICK 1"

Hope this helps.
See also https://kb.bmc.com/render/KCSRenderCont ... 3413234574

User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

Post by philmalmaison » 12 Dec 2011 4:49

Hi,
this is because they were connected at the time you delete users.
recycle the GUI server on CCM will automatically disconnect all clients.

Regards,
Philmalmaison

Post Reply