The Configuration File
Prev
Next

Chapter 4. The Configuration File

Now an example config file:

PingAddresses = 192.168.100.0/255.255.255.0;192.168.100.10-192.168.199.19;192.168.200.1;192-192.168-168.100-199.0-9;
PingNames = bb_mail;
AllowedAddresses = 192.168.0.0/255.255.0.0
BroadcastNetwork = 192.168.100.0/255.255.255.0
SearchUsingNmblookup = 1                #also try nmblookup
FirstWait = 30                          #30 hundredth seconds
SecondWait = -1                         #only one try
#SecondWait = 60                         #try twice, and the second time wait 0.6 seconds
UpdatePeriod = 300                      #update after 300 secs
DeliverUnnamedHosts = 0                 #don't publish hosts without name
MaxPingsAtOnce = 256                    #send up to 256 ICMP echo requests at once

PingAddresses

This is probably the most important entry.

Here you say which addresses will be pinged. You can specify multiple ranges, they are divided by semicolons.

There are four possible ways to define addresses:

net address/network mask

192.168.100.0/255.255.255.0, that is, an IP address and the assigned network mask.

This doesn't have to be the network address and netmask of your machine. For example, if you have 10.0.0.0/255.0.0.0 as your own address, you could specify 10.1.2.0/255.255.255.0 if you are only interested in these addresses. The combination IP address-network mask must be divided by a slash “/” and the address does not have to be a real network address, it can also be a host address of the desired network, that is, 10.12.34.67/255.0.0.0 is the same as 10.0.0.0/255.0.0.0 .

a range of IP addresses

For example: 192.168.100.10-192.168.199.19

An IP-address where pinging will start and an IP-address where pinging will end.

Both addresses must be divided by a “-”.

In this example this would produce 199-100+1=100, 100*256=25.600, 25.600+(19-10+1)=25.590 addresses

An IP address, as represented by ranges of each of the four decimal numbers

An IP address can be represented by its four decimal numbers, and you can specify ranges four each of these four numbers: 192-192.169-171.100-199.0-9

In this example all IP addresses with first number 192, second number from 168 to 168, third number from 100 up to 199 and last number from 0 up to 9 will be pinged. This would give 1*1*100*10=1.000 addresses.

This is probably only useful in very seldom cases. Here you have to provide ranges for every four numbers, always divided by “-”.

Single IP addresses or host names

The IP address or host name of any machine you are particularly interested in.

It is also valid to leave this entry empty.

Prev
Next
Home


Would you like to comment or contribute an update to this page?
Send feedback to the TDE Development Team