We had multiple sites and i want to add a ping sensor to them via command so I need to know what is a command to add a ping sensor for a device in PowerShell environment.


Article Comments

Check out PRTGapi. You'll need to use the clone function:

# Clone a ping sensor into the device with ID 1001
$newSensor = Get-Sensor ping -count 1 | Clone-Object -DestinationId 1001

The installation/setup guide can be found here :)


Jan, 2020 - Permalink