Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Updated instruction for IP params and typos fixed
  • Loading branch information
mszeu authored Nov 13, 2024
1 parent c079edc commit 058951a
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
# Pinger
**Pinger** is a simple PowerShell script that pings the specified list of hosts, at regular intrervals, for the specified time.
**Pinger** is a simple PowerShell script that pings the specified list of hosts at regular intervals for a specified time.

If the time specified through the parameter **Seconds** is zero that the script never terminates and CTRL-C is needed to terminate it.

It is possible to specify the delay between the pings using the optional parameter **Delay**.

If **Delay** is not specified the default value is **160** seconds.
If **Delay** is not specified, the default value is **160** seconds.

The script is given **AS IS** and it is under the **AGPL Aferro license 3.0**.

For more information about the license terms please refer tot the **LICENSE** file distributed with the project.
## Usage

**\Pinger.ps1** **Ip1**,**Ip2**,...,**Ipn** [**-Delay** seconds] [**-Seconds** seconds]
- **Ip1**,**Ip2**,...,**Ipn**: the list of coma separated addresses to ping (e.g.: *10.0.0.1,10.0.0.2,10.0.0.10*)
- **-Delay**: the delay in seconds between one ping operation to the other one. If is not specified the default is 160 seconds
- **-Seconds**: for how long to do execute the program. If is not specified, or if zero is specified it will execute for ever.
- **Ip1**,**Ip2**,...,**Ipn**: the list of coma-separated addresses to ping (e.g.: *10.0.0.1,10.0.0.2,10.0.0.10*)

Optionally, you can add a description using this format: IP:Description. Example: 10.0.0.1:server1,10.0.0.3:serverTwo,.. etc.
- **-Delay**: the delay in seconds between one ping operation and the other one. If it is not specified, the default is 160 seconds
- **-Seconds**: for how long to do execute the program. If it is not specified, or if zero is specified it will execute for ever.

## Example

**.\Pinger.ps1** "192.168.51.10","192.168.51.30","192.168.51.50","192.168.51.70","192.168.51.90" **-Seconds** 0 **-Delay** 15
**.\Pinger.ps1** "192.168.51.10:ServerX","192.168.51.30:HSMPED01","192.168.51.50","192.168.51.70:MACOSSrv","192.168.51.90" **-Seconds** 0 **-Delay** 15

0 comments on commit 058951a

Please sign in to comment.