Hi.
I would like to check ip-adsress range in one test (for example from 192.168.1.100 to 192.168.1.254) using ping. In %Reply% variable i want to recieve ip-address of changed status of host. Is it possible in HostMonitor? May be using ActiveScript test or using existing extended application?
Thank you.
Check ip range.
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Re: Check ip range.
Quote from manual:Dubolomov wrote:I would like to check ip-adsress range in one test (for example from 192.168.1.100 to 192.168.1.254) using ping.
================================
Please note, a range of IP addresses (e.g. 123.123.123.1 - 123.123.123.254) rather than a single address can be specified. In this case, HostMonitor will create a separate test for each of the addresses within that range.
================================
Does it suit your needs?
It is hard to implement, I think. ActiveSctript or Shell Script migt be useful, but I do not think it is a good idea. What is the reason you want to implement such functionality?Dubolomov wrote:In %Reply% variable i want to recieve ip-address of changed status of host. Is it possible in HostMonitor? May be using ActiveScript test or using existing extended application?
Regards,
Max
Re: Check ip range.
I would like to control new hosts except existing. For example test ip range from 192.168.1.1 to 192.168.1.254 except known hosts (192.168.1.1 - GW, 192.168.1.10-192.168.1.38 - users and printers, 192.168.1.100 - WiFi).KS-Soft Europe wrote:It is hard to implement, I think. ActiveSctript or Shell Script migt be useful, but I do not think it is a good idea. What is the reason you want to implement such functionality?
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Re: Check ip range.
In such case, the simpliest way is to setup ping test with specified range as 192.168.1.1 to 192.168.1.254, and after HostMonitor creates a separate test for each of the addresses, deletes test with 192.168.1.1, 192.168.1.10-192.168.1.38, etc. adresses manually.Dubolomov wrote:I would like to control new hosts except existing. For example test ip range from 192.168.1.1 to 192.168.1.254 except known hosts (192.168.1.1 - GW, 192.168.1.10-192.168.1.38 - users and printers, 192.168.1.100 - WiFi).
From your previous request, I have understood, you want to control such IP range in one test, right? I think, you may create simple cmd script using "for" command to loop over the IP range, ping each item, parse results using "find" command and store results in one text file. Of course, this file should have been overwritten after each test performing. The problem is to match status of current attempt with previous. Hovewer, you may do it using conjunction of "type filename | find "IP" | find status" commands or something like that. If you are experienced in .bat files, you are able to figure it out.
Regards,
Max
Last edited by KS-Soft Europe on Sat Aug 26, 2006 3:21 am, edited 1 time in total.