Difference between revisions of "Number devices.system.sessionCount"
Jump to navigation
Jump to search
(Založena nová stránka s textem „{{DISPLAYTITLE:number devices.system.sessionCount}} Returns the number of active sessions (administrative connections to the socket). <b>The property is re…“) |
|||
| Line 2: | Line 2: | ||
Returns the number of active sessions (administrative connections to the socket). <b>The property is read only!</b> | Returns the number of active sessions (administrative connections to the socket). <b>The property is read only!</b> | ||
| − | + | ||
| + | <i>number</i> <code>devices.system.sessionCount</code> | ||
| + | |||
=== Value === | === Value === | ||
Latest revision as of 19:38, 18 April 2017
Returns the number of active sessions (administrative connections to the socket). The property is read only!
number devices.system.sessionCount
Value
number number of active sessions
Usage
-- report if someone else logged to the socket
if devices.system.sessionCount>1 then
local message = string.format("Timestamp: %d", os.time())
mail("admin@netio.eu", "Socket s0312 compromised!", message)
end