This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

IP address
#5
You should use new Visu Smile

What task exactly do you have? Do you need IP list to be configurable or do you simply want to display the status for each IP?

If the list is fixed you can make a resident script that pings each address and updates the status. You can add as many IP/group address pairs to the ips table.
Code:
ips = {
  ['192.168.0.1'] = '0/0/1',
  ['192.168.0.2'] = '0/0/2',
}

function ping(ip)
  local res = os.execute('ping -c 2 -W 5 ' .. ip)
  return res == 0
end

for ip, addr in pairs(ips) do
  res = ping(ip)
  grp.checkwrite(addr, res)
  os.sleep(1)
end
Reply


Messages In This Thread
IP address - by ALEJANDRO - 17.02.2026, 12:06
RE: IP address - by Daniel - 17.02.2026, 12:44
RE: IP address - by ALEJANDRO - 04.03.2026, 09:54
RE: IP address - by Daniel - 04.03.2026, 09:56
RE: IP address - by admin - 04.03.2026, 10:20
RE: IP address - by ALEJANDRO - 04.03.2026, 10:36
RE: IP address - by Daniel - 04.03.2026, 10:42
RE: IP address - by admin - 04.03.2026, 10:43
RE: IP address - by ALEJANDRO - 04.03.2026, 10:45
RE: IP address - by Daniel - 04.03.2026, 10:47
RE: IP address - by ALEJANDRO - 05.03.2026, 14:35
RE: IP address - by Daniel - 05.03.2026, 14:36
RE: IP address - by ALEJANDRO - 05.03.2026, 14:42
RE: IP address - by Daniel - 05.03.2026, 14:46
RE: IP address - by ALEJANDRO - 05.03.2026, 14:55
RE: IP address - by Daniel - 05.03.2026, 15:07
RE: IP address - by ALEJANDRO - 05.03.2026, 15:52
RE: IP address - by Daniel - 05.03.2026, 15:54
RE: IP address - by ALEJANDRO - 09.03.2026, 09:42
RE: IP address - by Daniel - 11.03.2026, 08:43

Forum Jump: