Community discussions

MikroTik App
 
mverhoef
just joined
Topic Author
Posts: 1
Joined: Wed Jun 18, 2014 4:36 pm

Dude monitoring ISP IP addresses

Tue Jun 24, 2014 6:03 pm

Hello,
I have created a map in the dude where we monitor the network devices from the ISP by ping.
Now i want to add the provider name to the shapes, we have 2 providers and i can read the providername with powershell:

$IPAdres	= 'xxx.xxx.xxx.xxx'
$DNS		= [System.Net.Dns]::GetHostByAddress("$IPAdres").HostName

If($DNS -match "ziggo")

{
   'Ziggo'
}
ElseIf ($DNS -match "kpn") 

{
	'KPN'
}
Else
{
Write-Host 'provider unknown'
}
Is there a way to add a script likt this with a function / probe and add it in the Appearance of the shape ?
 
lebowski
Forum Guru
Forum Guru
Posts: 1619
Joined: Wed Aug 27, 2008 5:17 pm

Re: Dude monitoring ISP IP addresses

Fri Jun 27, 2014 7:11 pm

A shape will not run a script, but your ISP object could just be a device, then you can use a function on the label, that function could run your script.

Who is online

Users browsing this forum: No registered users and 27 guests