Apart from using a DNS Service, is there a way of getting an Xserve to notify an administrator of a change of external IP address?

I have an Xserve running 10.5.8 which is I want to notify me when its external IP address changes.
Is there a way to get it to do this?

Here is my finished solution using applescript.
If it is of use to anyone else please feel free to use/improve it.
global OLD_IP
global Current_IP
global IP_text
set OLD_IP to ""
set Current_IP to ""
set Test_text to ""
---on run get the current external IP address & set it as the Base IP to compare to
do shell script "curl -s checkip.dyndns.org"
set Pub_IP to result
set OLD_IP to Pub_IP as string
---show the address
display dialog "IP is: " & return & OLD_IP giving up after 2
on idle
    try
        set IP_Changed to false
        set Current_IP to ""
        ---get the current external IP address
        do shell script "curl -s checkip.dyndns.org"
        set Pub_IP to result
        set Current_IP to Pub_IP as string
        if Current_IP is equal to OLD_IP then
            set IP_Changed to false ---if it is the same then it hasn't changed (false)
        else
            set IP_Changed to true ---if it is different then it has changed (true)
        end if
        if IP_Changed is true then ---if there is a difference the email the change to administrator(s)
            set target_string to Current_IP as string
            set replacement_string_1 to "<html><head><title>Current IP Check</title></head><body>"
            set replacement_string_2 to "</body></html>"
            my replace_and_select(target_string, replacement_string_1, replacement_string_2) ---removes HTML coding
            tell application "Mail"
                set Mail_to_1 to "[email protected]"
                set Mail_from to "[email protected]"
                set theName to "Administrator"
                set theAddress to Mail_to_1
                set theSubject to "Server Public IP Address"
                set theBody to IP_text
                set newMessage to make new outgoing message with properties {subject:theSubject, content:theBody & return & return}
                tell newMessage
                    set visible to true
                    set sender to Mail_from
                    make new to recipient at end of to recipients with properties {name:theName, address:theAddress}
                    activate
                    send
                end tell
            end tell
            set OLD_IP to Current_IP ---set Base IP to the new one ready for next test
        end if
    end try
    return 3600 ---wait one hour before repeating the test
end idle
on replace_and_select(target_string, replacement_string_1, replacement_string_2)
    set this_text to target_string as string
    set this_offset to the offset of the replacement_string_1 in this_text
    set this_offset_2 to the offset of the replacement_string_2 in this_text
    set this_offset_3 to this_offset + (length of the replacement_string_1)
    if this_offset is not 0 then
        set IP_text to items this_offset_3 thru (this_offset_2 - 1) of target_string as string
    end if
       return
end replace_and_select

Similar Messages

  • 1TB is missing from my hard drive. Is there a way to get them back without wiping my drive and reformatting everything?

    I installed Windows 8 on my 3TB Fusion Drive, now about 1TB is missing from my hard drive. Is there a way to get them back without wiping my drive and reformatting everything?

    No, I assigned 100GB to the Bootcamp partition. So my Macintosh HD should be still about 3TB but it only shows 2.2 TB. And when I try to put the Bootcamp partition back, it also shows that I would have about 2.3 TB combined. So almost a TB has just disappeared. It doesn't show up anywhere.
    Also when I installed Windows 8 I saw about 800GB (which is most certainly my missing space) show up as Free space. Now my question would be If it is possible to get them back without wiping the whole drive.

  • So here's my problem. I just used the "reset all settings" option, and accidentaly restored an old backup. It deleted all my photos and contacts, but for some reason I still have all the apps from after the backup date, is there a way to get it all back?

    So here's my problem. I just used the "reset all settings" option, and accidentaly restored an old backup. It deleted all my photos and contacts, but for some reason I still have all the apps from after the backup date,and it also kept the notes from after the backup. The "reset all settings" option clearly says no loss of data or media, so I don't understand why some stuff got deleted. My question is, is there a way to get it back?

    If you still can find a recent backup listed in iTunes/Edit/Preferences/Devices, use this one to restore from.
    If there are no recent backups listed, your data is gone. Only if you included the iTunes backup folder into your computer backup routine, you could be able to restore this folder and find one of your latest backups listed again.
    iTunes: About iOS backups

  • When I download something from the Web, the "Downloads" window opens, but the window remains blank. Before it used to at least show the name of the file and I could open the file from the "Downloads" window. Is there a way to get this functionality back?

    I'm running Windows XP which is updated to latest version (which I think might be Service Pack 3, but not positive.) Mozilla Firefox is version 5.0. I tend to use Google as my search engine so most of the stuff I download comes through sites found through Google, which is also updated.
    At some time in the past (maybe a few versions ago) when I would download a file from the Web, the "Downloads" window would open and in the window would be displayed the name of the file I was downloading or had just completed downloading. I think I used to be able to then click on that file name and the file (or the installation file if needed to start the new program) would open. I am currently using Firefox 5.0 (the "About Firefox" screen says this is up to date) and when I download a file or document, the "Downloads" window appears on the screen as it always has in the past, but it remains blank, i.e., nothing appears in the downloads box. I don't remember making any configuration changes, etc., that may have caused the window to remain blank, but I could be mistaken. I know how to find the items I've downloaded (My Documents / Downloads) and can usually guess what the name of the downloaded file might be, but it used to be much easier when something (anything) showed up in the downloads window.
    I'd love for someone to tell me about a simple fix for this. I'm willing to be quite embarrassed that I did something I shouldn't have.'''

    In Firefox Options / Privacy be sure "Remember download history" is checked. To see all of the options on that panel, "Firefox will" must be set to "Use custom settings for history".
    To find your OS information, on your Windows desktop, right-click the My Computer icon, choose Properties, under System on that small window is info about your OS.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • I have just installed Family Tree Maker 2012. It recommends use of Firefox 3.6, but that doesn't seem to be available from the download page. Is there any way to get this version?

    I currently use Chrome as my web browser and am not able to access the Ancestry.com website using it. Every attempt to sync my records fails and the manual suggests use of Internet Explorer or Firefox 3.6 However, the current download available is not 3.6 but appears to be Version 8...? (based on the first question on the Contact Us screen, which relates to having upgraded from 3.6)

    You are welcome :)

  • I accidentally set up my new iPhone 4S as a new phone instead of backing up from my iPhone 3.  Is there any way to get all my texts

    I accidentally set up my new iPhone 4S as a new phone instead of using the backup I had from my old iPhone 3.  Is there anyway to get my texts & contacts from that old backup now?

    Neither of the above two posts will help you. If you want to restore your new phone from the backup of your old phone, you will have to start from scratch. On your new phone: Settings>General>Reset>Erase All Content & Settings. Once done, you'll now be able to restore the backup of your old phone to your new phone.

  • I have an iPhone 3g. I cannot retrieve the photos from the photo library. Is there a way to get them off the iPhone?

    I am using a Windows 64 bit premium, the phone is the 3g 16gig, and I cannot retrieve the photos from the photo library. I can retrieve the camera roll. How do I get the photos from the photo library?

    I'm sorry I was not clear, I am extremely frustrated with iPhones right now. That is the reason my new phone is an Android!
    I have a camera roll folder on the iPhone that has 346 photos that I took with the iPhone. I was able to retrieve those simply by connecting the iPhone to the computer. I have a second folder on the iPhone that is called Photo Library that has 818 photos that I wanted to retrieve from my iPhone. These photos were placed onto the iPhone from a sync, but my computer crashed and I had to format the hard drive. Doing so obviously caused me to loose all of my photos on my computer. The photos on the iPhone in the Photo Library are associated to the old computer folder library so it will not sync to the new computer. I was trying to retrieve those photos, but was not having any luck.
    UPDATE! I remembered that I had backed up the computer hard drive to an external hard drive before the crash. I located ALL of the photos on that hard drive that I was trying to retrieve from the iPhone Photo Library.
    *NOTE* If anyone has an answer to how to retrieve these photos, please post as my father is also have issues trying to retrieve photos the same way only he did not have his backed up.

  • I need version 3.6.16 for an at home online job. I am unable to find it anywhere from a secure source. Is there a way to get a link to download it? The ChaCha Toolbar only works with this older version. Thanks!

    I need the older version 3.6.16 for my at home based job for ChaCha. Their toolbar only works with this version and they say it is more compatible with this. And I have not been able to find a secure link to download this older version. Can you give me a secure link or is it possible to download this older version securely?

    If you only need Firefox 3.6 for just one thing then you may be better off using a portable version of Firefox as it will not impact your Firefox 6.0.2 install. You can install it on hard disk or on a usb flash drive. Firefox 3.6.22 is the current security update as 3.6.16 is old.
    http://portableapps.com/apps/internet/firefox_portable/localization#legacy36

  • If I failed to accept the offer for free apps on my iPhone 5s, is there any way to get iPhoto free?

    If I failed to accept the offer for free apps on my iPhone 5s when I first used the App Store, is there any way to get iPhoto free?

    Try the advice in this link:
    http://www.imore.com/how-get-all-iwork-apps-iphoto-and-imovie-free-eligible-ipho ne-or-ipad
    if...... you accidentally dismissed the popup the first time you launched the App Store on your new device, you can also view all of them in one place in the App Store by following these steps:
    Launch the App Store app from the Home screen of your iPhone or iPad.
    From the Featured tab, scroll down and tap on the New to the App Store? tile under Collections.
    Once again, scroll down towards the bottom and tap on the tile for Apps made by Apple.
    Here you can see a list of all the apps Apple makes. Tap any one of them to view more information on them or tap on the price to download them.

  • Is there any way to find out wn was a table deleted apart from using audit

    Is there any way to find out wn was a table deleted apart from using audit
    Oracle version 9.2.0.7

    SQL> SHOW USER
    USER is "SCOTT"
    SQL> CREATE TABLE test_delete AS SELECT * FROM emp;
    Table created.
    SQL> DELETE FROM test_delete;
    14 rows deleted.
    SQL> COMMIT;
    Commit complete.
    SQL> conn sys@orclsb as sysdba
    Enter password: ******
    Connected.
    SQL> ALTER SESSION SET nls_date_format='DD-MON-RRRR HH24:MI:SS';
    Session altered.
    SQL> BEGIN
      2     DBMS_LOGMNR.START_LOGMNR (
      3           starttime => '02-FEB-2011 17:51:00',
      4           endtime   => '02-FEB-2011 17:54:00',
      5           options   => dbms_logmnr.DICT_FROM_ONLINE_CATALOG+
      6                        dbms_logmnr.continuous_mine +
      7                        dbms_logmnr.no_sql_delimiter +
      8                        dbms_logmnr.print_pretty_sql
      9                                  );
    10  END;
    11  /
    PL/SQL procedure successfully completed.
    SQL> set line 10000
    SQL> SELECT scn ,timestamp
      2         ,commit_timestamp, username
      3  FROM v$logmnr_contents
      4  WHERE
      5   username = 'SCOTT'
      6  AND  TABLE_NAME='TEST_DELETE';
           SCN TIMESTAMP            COMMIT_TIMESTAMP     USERNAME
       2309736 02-FEB-2011 17:53:20                      SCOTT
       2309739 02-FEB-2011 17:53:20                      SCOTT
       2309769 02-FEB-2011 17:53:59                      SCOTT
       2309774 02-FEB-2011 17:53:59                      SCOTT
       2309774 02-FEB-2011 17:53:59                      SCOTT
       2309774 02-FEB-2011 17:53:59                      SCOTT
       2309774 02-FEB-2011 17:53:59                      SCOTT
       2309774 02-FEB-2011 17:53:59                      SCOTT
       2309774 02-FEB-2011 17:53:59                      SCOTT
       2309774 02-FEB-2011 17:53:59                      SCOTT
       2309774 02-FEB-2011 17:53:59                      SCOTT
           SCN TIMESTAMP            COMMIT_TIMESTAMP     USERNAME
       2309774 02-FEB-2011 17:53:59                      SCOTT
       2309774 02-FEB-2011 17:53:59                      SCOTT
       2309774 02-FEB-2011 17:53:59                      SCOTT
       2309774 02-FEB-2011 17:53:59                      SCOTT
       2309774 02-FEB-2011 17:53:59                      SCOTT
       2309774 02-FEB-2011 17:53:59                      SCOTT
    17 rows selected.
    SQL>

  • I'm in syria and they blocked me from using any VPN service please help without VPN i can't open the store help please ( using iphone 5 version 9.1.4 )

    I'm in syria and they blocked me from using any VPN service please help without VPN i can't open the store help please ( using iphone 5 version 9.1.4 )

    There is nothing that anyone here on a user forum can do to help you.  If it is a local issue in Syria, then you need to take it up with your phone company or authorities there who have prevented you from using VPN.
    Nobody here can help you.

  • Options apart from using the http binding adapter

    In calling secured restful web services, what are the options apart from using the http binding adapter from BPEL/SOA 11.1.1.4.
    Pointers to examples highly appreciated.

    Hi,
    Have a look at this...
    http://technology.amis.nl/2009/12/15/the-oracle-soa-suite-11g-httpbinding-or-another-way-to-call-restful-services-from-soa-composite-applications/
    Cheers,
    Vlad

  • My mac book is not working so i can no longer use my mac to back up my note in my phone and unfortunately i dont have outlook on my pc is there a way to get all my old notes from my 3gs to my 4s iphone?

    my mac book is not working so i can no longer use my mac to back up my note in my phone and unfortunately i dont have outlook on my pc is there a way to get all my old notes from my 3gs to my 4s iphone?

    Reset, hold both home and power buttons until the iPhone begins to start, try this a few times if necessary. If still problem, you may have to just Restore your iPhone to get it working. In the future sync your iPhone with iTunes routinely and when it contains important data, iCloud when set correctly will do this for you continuously.

  • HT1766 I just got a 5s and had taken some pictures. Then I plugged it into my PC and set it up using my previous backup from my iPhone 4. Now the pictures I had taken are gone, is there any way to get them back?!

    I just got a 5s and had taken some pictures. Then I plugged it into my PC and set it up using my previous backup from my iPhone 4. Now the pictures I had taken are gone, is there any way to get them back?!

    Sorry no as you wipe the current data when you restore from your backup.

  • Digital audio input via mini jack/toslink from ADA, monitored via USB audio output... is this do-able? I know digital audio input should be okay but how do I monitor it, apart from using the internal speakers?

    Digital audio input via mini jack/toslink from ADA converter, monitored via USB audio output to amplifier... is this do-able? I know digital audio input should be okay but how do I monitor it, apart from using the internal speakers?

    You can output audio thru HDMI, with appropriate adapter.
    You can use additional cheap external usb audio for monitoring.

Maybe you are looking for

  • Table for finding out all the G/L accounts of a financial statement version

    Hi all,   is there any table to find out the G/L accounts which will come under the tree of financial statement version(OB58). Please help.

  • Synchronous messages for SOAP adapter.

    Hi All, I wanna expose an interface in XI as a WebService.My requirement is to invoke a webservice which takes some input and hands it over to a DataBase and gets something from it(DB) and hands it over to the application which had called this WebSer

  • How to retrieve Post Parameter

    Hi All, I am new to JSF..I need to retrieve Post parameters from plain HTML pages. Once i receive the post parameter in JSF then i need to validate one of the parameter and redirect user to diffrent pages based on the parameter value. What is the bes

  • Providing Web Service

    Hi, I generated a WSDL for peoplesoft delivered CI. I tried to test the WSDL in SOAPUI. I am able to get a response message for it. But, the response message has just empty tags with no data in it. As expected, the WSDL invokes the right service oper

  • HT1766 What kind of trade in can I get for my iPad 3G 64G

    I have a Wi-Fi 3G and I am looking to upgrade.  What kind of pricing am I looking at as a trade in?