Check ip range.

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Dubolomov
Posts: 214
Joined: Thu Jun 01, 2006 10:27 am
Location: Russia

Check ip range.

Post by Dubolomov »

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.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Check ip range.

Post by KS-Soft Europe »

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.
Quote from manual:
================================
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?
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?
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?

Regards,
Max
Dubolomov
Posts: 214
Joined: Thu Jun 01, 2006 10:27 am
Location: Russia

Re: Check ip range.

Post by Dubolomov »

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?
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
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Check ip range.

Post by KS-Soft Europe »

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).
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.

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.
Dubolomov
Posts: 214
Joined: Thu Jun 01, 2006 10:27 am
Location: Russia

Post by Dubolomov »

Thank you, i'll try.
Post Reply