number devices.system.sessionCount

From wiki.netio-products.com
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