var clients =plugins.maintenance.getConnectedClients();application.output('There are '+clients.length+' connected clients.');for (var i =0; i <clients.length; i++){var client = clients[i];application.output('Client details:');application.output(' ID: '+client.getClientID());application.output(' Application type: '+client.getApplicationType());application.output(' Host address: '+client.getHostAddress());application.output(' Host identifier: '+client.getHostIdentifier());application.output(' Host name: '+client.getHostName());application.output(' User name: '+client.getUserName());application.output(' Used UID: '+client.getUserUID());application.output(' Open solution: '+client.getOpenSolutionName());application.output(' User login time and date: '+client.getLoginTime());application.output(' User idle since: '+client.getIdleTime());application.output(' Status line: '+client.getStatusLine());}
var clients =plugins.maintenance.getConnectedClients();application.output('There are '+clients.length+' connected clients.');for (var i =0; i <clients.length; i++){var client = clients[i];application.output('Client details:');application.output(' ID: '+client.getClientID());application.output(' Application type: '+client.getApplicationType());application.output(' Host address: '+client.getHostAddress());application.output(' Host identifier: '+client.getHostIdentifier());application.output(' Host name: '+client.getHostName());application.output(' User name: '+client.getUserName());application.output(' Used UID: '+client.getUserUID());application.output(' Open solution: '+client.getOpenSolutionName());application.output(' User login time and date: '+client.getLoginTime());application.output(' User idle since: '+client.getIdleTime());application.output(' Status line: '+client.getStatusLine());}
var clients =plugins.maintenance.getConnectedClients();application.output('There are '+clients.length+' connected clients.');for (var i =0; i <clients.length; i++){var client = clients[i];application.output('Client details:');application.output(' ID: '+client.getClientID());application.output(' Application type: '+client.getApplicationType());application.output(' Host address: '+client.getHostAddress());application.output(' Host identifier: '+client.getHostIdentifier());application.output(' Host name: '+client.getHostName());application.output(' User name: '+client.getUserName());application.output(' Used UID: '+client.getUserUID());application.output(' Open solution: '+client.getOpenSolutionName());application.output(' User login time and date: '+client.getLoginTime());application.output(' User idle since: '+client.getIdleTime());application.output(' Status line: '+client.getStatusLine());}
var clients =plugins.maintenance.getConnectedClients();application.output('There are '+clients.length+' connected clients.');for (var i =0; i <clients.length; i++){var client = clients[i];application.output('Client details:');application.output(' ID: '+client.getClientID());application.output(' Application type: '+client.getApplicationType());application.output(' Host address: '+client.getHostAddress());application.output(' Host identifier: '+client.getHostIdentifier());application.output(' Host name: '+client.getHostName());application.output(' User name: '+client.getUserName());application.output(' Used UID: '+client.getUserUID());application.output(' Open solution: '+client.getOpenSolutionName());application.output(' User login time and date: '+client.getLoginTime());application.output(' User idle since: '+client.getIdleTime());application.output(' Status line: '+client.getStatusLine());}
var clients =plugins.maintenance.getConnectedClients();application.output('There are '+clients.length+' connected clients.');for (var i =0; i <clients.length; i++){var client = clients[i];application.output('Client details:');application.output(' ID: '+client.getClientID());application.output(' Application type: '+client.getApplicationType());application.output(' Host address: '+client.getHostAddress());application.output(' Host identifier: '+client.getHostIdentifier());application.output(' Host name: '+client.getHostName());application.output(' User name: '+client.getUserName());application.output(' Used UID: '+client.getUserUID());application.output(' Open solution: '+client.getOpenSolutionName());application.output(' User login time and date: '+client.getLoginTime());application.output(' User idle since: '+client.getIdleTime());application.output(' Status line: '+client.getStatusLine());}
var clients =plugins.maintenance.getConnectedClients();application.output('There are '+clients.length+' connected clients.');for (var i =0; i <clients.length; i++){var client = clients[i];application.output('Client details:');application.output(' ID: '+client.getClientID());application.output(' Application type: '+client.getApplicationType());application.output(' Host address: '+client.getHostAddress());application.output(' Host identifier: '+client.getHostIdentifier());application.output(' Host name: '+client.getHostName());application.output(' User name: '+client.getUserName());application.output(' Used UID: '+client.getUserUID());application.output(' Open solution: '+client.getOpenSolutionName());application.output(' User login time and date: '+client.getLoginTime());application.output(' User idle since: '+client.getIdleTime());application.output(' Status line: '+client.getStatusLine());}
getLastAccessedTime()
Gets the last date and time when a user has physically accessed the application. NGClient only!
Returns:Date a date object or null if the client doesn't support this
Sample
var clients =plugins.maintenance.getConnectedClients();application.output('There are '+clients.length+' connected clients.');for (var i =0; i <clients.length; i++){var client = clients[i];application.output('Client details:');application.output(' ID: '+client.getClientID());application.output(' Application type: '+client.getApplicationType());application.output(' Host address: '+client.getHostAddress());application.output(' Host identifier: '+client.getHostIdentifier());application.output(' Host name: '+client.getHostName());application.output(' User name: '+client.getUserName());application.output(' Used UID: '+client.getUserUID());application.output(' Open solution: '+client.getOpenSolutionName());application.output(' User login time and date: '+client.getLoginTime());application.output(' User idle since: '+client.getIdleTime());application.output(' Status line: '+client.getStatusLine());}
getLoginTime()
The time and date the user logged into the system.
var clients =plugins.maintenance.getConnectedClients();application.output('There are '+clients.length+' connected clients.');for (var i =0; i <clients.length; i++){var client = clients[i];application.output('Client details:');application.output(' ID: '+client.getClientID());application.output(' Application type: '+client.getApplicationType());application.output(' Host address: '+client.getHostAddress());application.output(' Host identifier: '+client.getHostIdentifier());application.output(' Host name: '+client.getHostName());application.output(' User name: '+client.getUserName());application.output(' Used UID: '+client.getUserUID());application.output(' Open solution: '+client.getOpenSolutionName());application.output(' User login time and date: '+client.getLoginTime());application.output(' User idle since: '+client.getIdleTime());application.output(' Status line: '+client.getStatusLine());}
getOpenSolutionName()
The name of the solution that is currently open by the client.
var clients =plugins.maintenance.getConnectedClients();application.output('There are '+clients.length+' connected clients.');for (var i =0; i <clients.length; i++){var client = clients[i];application.output('Client details:');application.output(' ID: '+client.getClientID());application.output(' Application type: '+client.getApplicationType());application.output(' Host address: '+client.getHostAddress());application.output(' Host identifier: '+client.getHostIdentifier());application.output(' Host name: '+client.getHostName());application.output(' User name: '+client.getUserName());application.output(' Used UID: '+client.getUserUID());application.output(' Open solution: '+client.getOpenSolutionName());application.output(' User login time and date: '+client.getLoginTime());application.output(' User idle since: '+client.getIdleTime());application.output(' Status line: '+client.getStatusLine());}
getStatusLine()
This returns the status line of a NGClient (other clients don't have a value for this)
Returns:String a string that is the status line as reported on the admin page.
Sample
var clients =plugins.maintenance.getConnectedClients();application.output('There are '+clients.length+' connected clients.');for (var i =0; i <clients.length; i++){var client = clients[i];application.output('Client details:');application.output(' ID: '+client.getClientID());application.output(' Application type: '+client.getApplicationType());application.output(' Host address: '+client.getHostAddress());application.output(' Host identifier: '+client.getHostIdentifier());application.output(' Host name: '+client.getHostName());application.output(' User name: '+client.getUserName());application.output(' Used UID: '+client.getUserUID());application.output(' Open solution: '+client.getOpenSolutionName());application.output(' User login time and date: '+client.getLoginTime());application.output(' User idle since: '+client.getIdleTime());application.output(' Status line: '+client.getStatusLine());}
getUserName()
The name of the user who is logged in at this client.
var clients =plugins.maintenance.getConnectedClients();application.output('There are '+clients.length+' connected clients.');for (var i =0; i <clients.length; i++){var client = clients[i];application.output('Client details:');application.output(' ID: '+client.getClientID());application.output(' Application type: '+client.getApplicationType());application.output(' Host address: '+client.getHostAddress());application.output(' Host identifier: '+client.getHostIdentifier());application.output(' Host name: '+client.getHostName());application.output(' User name: '+client.getUserName());application.output(' Used UID: '+client.getUserUID());application.output(' Open solution: '+client.getOpenSolutionName());application.output(' User login time and date: '+client.getLoginTime());application.output(' User idle since: '+client.getIdleTime());application.output(' Status line: '+client.getStatusLine());}
getUserUID()
The ID of the user who is logged in at this client.
var clients =plugins.maintenance.getConnectedClients();application.output('There are '+clients.length+' connected clients.');for (var i =0; i <clients.length; i++){var client = clients[i];application.output('Client details:');application.output(' ID: '+client.getClientID());application.output(' Application type: '+client.getApplicationType());application.output(' Host address: '+client.getHostAddress());application.output(' Host identifier: '+client.getHostIdentifier());application.output(' Host name: '+client.getHostName());application.output(' User name: '+client.getUserName());application.output(' Used UID: '+client.getUserUID());application.output(' Open solution: '+client.getOpenSolutionName());application.output(' User login time and date: '+client.getLoginTime());application.output(' User idle since: '+client.getIdleTime());application.output(' Status line: '+client.getStatusLine());}