number devices.system.sessionCount

From wiki.netio-products.com
Revision as of 01:03, 16 April 2017 by Jturon (talk | contribs) (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…“)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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