mirror of
https://github.com/wifinigel/MikrotikScripting.git
synced 2025-07-20 10:57:41 +02:00
initial commit
This commit is contained in:
commit
c782dde326
61 changed files with 1457 additions and 0 deletions
10
scripts/ch10-06-error_check.rsc
Normal file
10
scripts/ch10-06-error_check.rsc
Normal file
|
@ -0,0 +1,10 @@
|
|||
# ch10-06-error-check.rsc
|
||||
:local WebSites { "badname1234.com"; "google.com"};
|
||||
:foreach SiteName in=$WebSites do={
|
||||
:do {
|
||||
:local SiteIpAddress [/resolve $SiteName];
|
||||
:put "Site IP for $SiteName is $SiteIpAddress";
|
||||
} on-error {
|
||||
:put "Name lookup failed for $SiteName"
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue