Number devices.system.sessionCount: Difference between revisions

From wiki.netio-products.com
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…“
 
No edit summary
 
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>


number devices.system.sessionCount
 
<i>number</i> <code>devices.system.sessionCount</code>
 


=== Value ===
=== Value ===

Latest revision as of 18: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