Alert current IP address of LM2
Example: Alert current IP address of Logic Machine 2
Resident or Scheduled script
- require('json')
- res = io.readproc('if-json')
- res = json.decode(res)
- ip = res.eth0.inetaddr
- alert('Current LM IP is: %s', ip)
- require('json')
- res = io.readproc('if-json')
- res = json.decode(res)
- ip = res.eth0.inetaddr
- alert('Current LM IP is: %s', ip)