Auto DHCP renew when tracking change state

I looking to find a way to do a shut and no shut until the tracking change state. For spoke router using a DHCP connection to the Internet. When there is a problem with the connection, the modem will give a private ip adresse and by just doing a shut and then a no shut it fix the issue but I would like to do it automaticaly. I have already tried with a event manager applet but when the tracking change state it will execute only the commands only once but I would like it to do it every 10 minutes until the tracking change state again. Maybe with tcl script but don't realy know where to start.

You can do what you want using three applets (two top-level applets, and one nested applet).
event manager environment quote "event manager applet track-down event track 1 state down action 001 cli command "enable" action 002 cli command "config t" action 003 cli command "event manager applet track-timer" action 004 cli command "event timer watchdog time 180 name track_timer" action 005 cli command "action 1.0 cli command enable" action 006 cli command "action 2.0 cli command $quote config t$quote" action 007 cli command "action 3.0 cli command $quote interface Fa0/0$quote" action 008 cli command "action 4.0 cli command shut" action 009 cli command "action 5.0 cli command $quote no shut$quote" action 010 cli command "action 6.0 cli command end"event manager applet track-up event track 1 state up action 1.0 cli command "enable" action 2.0 cli command "config t" action 3.0 cli command "no event manager applet track-timer" action 4.0 cli command "end"
The above config will periodically shut/no shut interface Fa0/0 every three minutes until the tracked object comes back up.

Similar Messages

  • When I change state the UI does not update

    I have some code that uses state changes to manage the buttons in a login screen:
            <mx:states>
                    <!-- Default state: the LoginWindow accepts input from the user -->
                    <!--  Login
                            login is in progress.
                            No input allowed other than the "Cancel" button
                    -->
                    <mx:State name="{STATE_LOGIN}">
                            <mx:SetProperty target="{loginForm}" name="enabled" value="false"/>
                            <mx:SetProperty target="{loginButton}" name="enabled" value="false"/>
                            <mx:SetProperty target="{cancelLoginButton}" name="enabled" value="true"/>
                            <mx:SetProperty target="{statusLabel}" name="text"
                                                            value="{resourceManager.getString(ResourceNames.BUNDLE_NAME,
                                                            ResourceNames.LOGIN_CONNECTING_STATE)}"/>
                    </mx:State>
    The problem is that when I change the state by setting currentState to STATE_LOGIN the UI change does not happen right away. In fact it doesn't take place until the login event is complete, creating a race condition.
    However, I've been able to work around this problem by explicitly setting the values of loginButton.enabled and cancelLoginButton.enabled in my program:
              loginButton.enabled = false;
              cancelLoginButton.enabled = true;
    When I do this, the buttons are enabled in the right way.
    Why does explicitly setting the button enabled flags work, but the state change, which should do the same thing, not?

    Nope, that's not it. I just now tried changing the state values to constant values and it did the same thing. Also, BTW, the state eventually does change even with the binding expressions -- it just doesn't change until after the login is done (I also tried putting the call to the login in a callLater; made no difference). But, as I said, when I assign to the enabled fields the change happens right away.

  • Pages io7 in track change mode: hangs?

    Hello,
    Using the latest version of Pages io7, I encounter regular freezes: in track change mode, whenever I select a word, the normal selection feature appears (the word gets blue) and the app hangs/freezes for a few seconds before being able to do anything: type a letter, delete the selection or widen the selection.
    Thanks for help!
    Pierre

    I have this problem too and not just when tracking changes. Pretty much any time selecting words and trying to modify the selection is incredibly slow. Fully exiting and restarting the application sometimes seems to help, but really that's not a fix. Have tried all Apple technical help suggestions, including reset and removing/reinstalling pages. Only thing left is completely wiping the iPad and starting from scratch, and I don't have time to do that at the moment (I use the iPad for work.)

  • How to track changes when a contact updates contacts address section?

    I'm creating a workflow to create an integration event when a contact updates its contacts address section (number/street, address2, address3 city, state, zip).
    Record Type: Contact
    Trigger Event: When Modified record saved
    Workflow Rule Condition: None
    Action Type: Integration Event
    When I go to configure the workflow action, I don't see the address on the track changes list. How do I specifiy the address section to be tracked when it's modified?
    Thanks

    The best way would be to create a trigger in the database that would update the history table whenever the data was changed. The next best would be to use a stored procedure. I would not try to do this with server side scripting.

  • Why do Track Changes no longer show up when document is saved as .doc?

    I've used iWork for many years to collaborate with people in numerous other organizations who almost all use MS Office and are mostly on Windows. This year, the documents I send them, supposedly saved in Office formats, cause freezes, don't open, and even when they do, don't show Track Changes any more. That makes collaboration on document creation almost impossible. Workarounds? Solutions?
    Does anyone know if Apple is going to do a real update to iWork to bring it in line with current MS Office versions? If not, I'm going to have to give up on it and that will take endless work since I'm going to have to create new templates and sample docs from scratch. Anything I convert and import from iWork causes problems and the Open Office/ Libre Office suites don't even accept iWork docs at all. I hate to go back to using Microsoft products.

    I was still on Leopard when it started this spring (I suspect it started with updates others did for MS Office). I never used Snow Leopard or Lion on my desktop. Documents sent to collaborators or cllients started not opening or freezing or being Read Only through I had not sent Read Only docs. I hoped the upgrade to iWork that was available once I bought Mountain Lion would help and it did in terms of documents opening but not for editing.
    This happens with Pages and Numbers and I'm hearing it from others, and hearing they are also having this problem with Keynote. I'm about to collaborate on a presentation for a third party webinar and suspect it won't be worth developing it in Keynote from what I'm hearing. The problems have by now happened with dozens of collaborators in different organizations, countries, etc., including people with high level tech skills, so it's definitely at my end.
    I have tried on another computer (my laptop, which had the problem during Snow Leopard and still does under Mountain Lion). as well as other accounts; that doesn't make a difference.
    Throughout I've run whatever the latest iWork version was, but the upgrades have been minimal. It appears Apple plans to let iWork die.

  • Office for Mac 2011: Tips for speeding up Word when using tracked changes and comments?

    I run a fresh installation of Office for Mac 2011 (v. 14.4.1) on a brand new Macbook Pro 13" Retina 2.4GHz with 16GB RAM running 10.9.2. The Office package is fully up-to-date.
    I mainly use Word and find that it is extremely slow when I track changes. Documents need not be particularly large - even in a 30-page document after a few pages of tracks typing becomes a pain, in particular in comment bubbles where the text shows up letter-by-letter and only finish several seconds after I've stopped typing. Other programs run at the same time do not suffer from this horrible lag.
    I have searched and seen that this is not uncommon so it appears that Microsoft's coders are not particularly well versed in coding for Mac.
    My question is if other users have found ways to improve the situation, for instance by trashing plists or something like that? This is really driving me crazy
    Many TIA
    Philip

    You might try looking/posting here.
    Microsoft Support – Office for Mac
    Microsoft Support – Office for Mac (2)

  • InCopy CC crashes when using track changes

    Hi
    We have had a lot of problems with InCopy chrasing.
    We are using the package system.
    It seems to happen when clients are using Track changes, they open the file and if i opens in Story mode it just spins and won't works. If ou open it in Layout mode it seems fine but as soon as you go to Story mode it spins again.
    If the track changes are accepted the package will work fine again.
    Does Adobe have any updates for this it's becoming very frustating and clients don't want to use InCopy.
    Thanks
    Louise

    I don't think there is anything specific in the upgrade that addresses tracked changes, sorry.
    If you need to keep a version of the INDD file with all the tracked changes (before you accept them, to reduce problems), then I'd suggest you make a whole new version of the project. Archive the old one with all the tracked changes intact, and wipe out the tracking markup by accepting all changes in the new doc.
    1. The ID user makes sure all stories are checked in and up to date (easiest via the Assignments panel)
    2. They unlink all the InCopy stories ... select them in the Assignments panel and click the Unlink icon at the bottom (trash can)
    3. Do a Save As to the InDesign file into a new folder with a new name ("v2" appended, for example, or "_changes-accepted").
    4. In the new file, re-export all the stories to InCopy format, saving them to a new subfolder.
    5. Check out all the stories at once via the Assignments panel
    6. Go to the Type menu and choose Track Changes > Accept All Changes > In This Document
    7. Archive the old INDD file with its linked InCopy files (that have the changes)
    8. Tell users to continue working on the new INDD file.
    Alternatively, InCopy users can export each story showing the tracked change markup to PDF, archiving that for auditors, before accepting all changes.
    AM

  • How to check when MPD changes track?

    I want to log every time when MPD changes song, but I can't find out how. Anyone got any ideas?

    koper wrote:
    here is the code in C that prints out name of the song when mpd changes it.
    #include <unistd.h>
    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <fcntl.h>
    #include <libmpd.h>
    #include <debug_printf.h>
    #define RED "\x1b[31;01m"
    #define DARKRED "\x1b[31;06m"
    #define RESET "\x1b[0m"
    #define GREEN "\x1b[32;06m"
    #define YELLOW "\x1b[33;06m"
    void status_changed(MpdObj *mi, ChangedStatusType what)
    if(what&MPD_CST_SONGID)
    mpd_Song *song = mpd_playlist_get_current_song(mi);
    if(song)
    printf(GREEN"Song:"RESET" %s - %s\n", song->artist, song->title);
    int main()
    int run = 1, iport = 6600;
    char *hostname = getenv("MPD_HOST");
    char *port = getenv("MPD_PORT");
    char *password = getenv("MPD_PASSWORD");
    MpdObj *obj = NULL;
    if(!hostname) {
    hostname = "localhost";
    if(port){
    iport = atoi(port);
    obj = mpd_new(hostname, iport,password);
    mpd_signal_connect_status_changed(obj,(StatusChangedCallback)status_changed, NULL);
    mpd_set_connection_timeout(obj, 10);
    if(!mpd_connect(obj))
    mpd_send_password(obj);
    do{
    mpd_status_update(obj);
    }while(!usleep(100000) && run);
    return 1;
    to compile it:
    gcc source_code -o output_file -lmpd -I/usr/include/libmpd-1.0/libmpd/
    the code it's actually a modified example from libmpd site:
    https://svn.musicpd.org/MOVED/libmpd/tr … testcase.c
    So this wakes up every 0.1 seconds....?  there goes your battery life...

  • Someone in Australia was using my email address and when I changed email names to reinstall Itunes it only gives me states from Australia.  Is there some cache on my system that should be cleared or removed?

    Someone in Australia was using my email address and when I changed email names to reinstall Itunes it only gives me states from Australia.  Is there some cache on my system that should be cleared or removed?

    Good luck.    I have been trying to report to Apple Support about a Bogus Email I received today, which said I had made a purchase. Naturally, I was to cancel this bogus purchase by giving out personal details etc to them. 
    The real question is: how did they get my email as someone who had purchased from Itunes?. I cannot believe that ti si coincidence.
    HAVE the Australian Apple IDs [where users have supplied their email addresses] been compromised?
      My report about Spam was the same as reported in 2010, when the reply was: Apple knows all about this.  What has been done about that spam from this address:
    http://www.thepeakdistrictholidaycottage.co.uk/blog/wp-admin/au/apple//index.htm l?securitycenterlogin&hc=1&hm=au%601d72f%2Bj2b2vi%3C265securitycenterlogin&hc=1& hm=au%601d72f%2Bj2b2vi%3C265securitycenterlogin&hc=1&hm=au%601d72f%2Bj2b2vi%3C26 5

  • Dialog box when in "Track Changes"

    When I am using track changes and try to save my document...before I can actually save the document I get a box that alerts me that "I am in Track Changes and do I really want to save the document".  I use track changes all the time and
    this box is MOST annoying.  It also pops up when I need to print the document.  I feel the program is calling me stupid everytime I want to save or print.  I cannot find anything in the help system that will "turn off" this feature. 
    Please help.

    Hi,
    Which version of Microsoft Word are you using?
    If you are using Word 2010 or Word 2013, please go to File > Options > Trust Center > Trust Center Settings > Privacy Options and clear the checkbox before "Warn before printing, saving or sending a file that contains tracked changes or comments."
    If you are using Word 2007, the option is available in
    Office Button > Word Options > Click on Trust Center > Trust Center setting >Privacy Options.
    Hope this helps.
    Best Regards,
    Steve Fan
    TechNet Community Support

  • Is there a way to retain the track changes from a Microsoft Word document when working on a IPAD word processing App?

    I am going on a work trip and want to be able to collaborate with my colleagues, almost all of whom will be using Microsoft Word on Microsoft Windows laptops and I want to draft and collaborate on documents.  The approach we always take to such collaboration is to use the track changes feature in Microsoft Word that shows changes and who made the changes.As best I could tell apples Pages software ignores the notations added by the track changes features and accepts all changes to the document making it difficult to see what changes were made and by whom.
    I would appreciate any suggestions to address this challenge.

    I noted from some similar topics that Pages seems to support track changes but that while it reflects deletions made in Microsoft Word, it does not appear to show them -- is there a way to fix this problem?

  • Microsoft word 2008 crashes abruptly when trying to use track changes

    Hi,
    I believe this may be related to recently downloading Yosemite:
    Every time I try to use Microsoft Word (2008) with "track changes" on, Word shuts off abruptly.
    Has any one else had this problem?  Is there a way to fix it?
    I've already tried Disk Utility - disk & disk permissions repair.
    Help would be greatly appreciated.
    Thanks.

    You should note that this forum is for troubleshooting Apple Software Update for Windows, a software package for Windows designed to update Apple products that run on Windows, and not related to Microsoft Office or your question in any way. If you have issues or questions about Office, it's probably best you post Office related questions on Microsoft's own forums for their Mac products.
    http://www.officeformac.com/productforums

  • Name of track changes to modified date when importing mp4

    I have two .mp4 files: (both names listed below are the filenames)
    Valentines Day Torin.mp4 with a modified filed date of 02/15/2010
    Phoebe Confirmation Entrance.mp4 with a modified date of 03/18/2010
    When I import the Valentines Day Torin file, the filename stays the same.  The "Name" field is also the filename. This is what I want.
    When I import the Phoebe Confirmation Entrance, the filename stays the same. The "Name" field is changed to "Mar 18, 2010 3:52pm".
    Anyone know why?
    Also, does anyone know how to get iTunes to stop changing the modified date on files when you change any info in the "Get Info" area.
    I find it quite hard to import a lot of home videos into Itunes.  File name length limitations, changing of modified dates, just can't figure this out..
    I have all my videos in order according to the modified date since titles can't be more than 36 characters, but can't figure out an easy way to sort chronologically.
    Thanks,
    Derek

    Check the file withEXIF Viewer or Reveal to see what the EXIF Capture Date is. iPhoto uses that for photos from digital cameras.
    OT

  • Track Changes colors not working when story contains table

    Can anyone duplicate this problem/bug, or let me know if it is just my machine?
    Steps to reproduce
    Make sure your Edit > Preferences > Story Editor has non-black text colors defined for Added Text, Deleted Text, and Moved Text.
    Create document, and draw a text box
    Inside the text box, Right-click > Fill with Placeholder Text
    With the cursor in the text box, turn on Track Changes and Show Changes from the Track Changes pallette:
    Open the Story Editor with Ctrl/Cmd-Y
    Cut/paste, delete, and insert some text.
    Confirm colors appear in Story Editor as defined in step 1:
    Now insert a table anywhere in the story. For me, all non-black text coloring (bg stays fine) disappears:
    Is this an InDesign bug, or something I'm experiencing on my own machine? I've been able to duplicate the issue in InDesign CS6, InDesign CC and InCopy CC on my Win7 Pro 64-bit machine.

    I'd recommend filing a bug report here to make sure it gets reported:
    Adobe - Feature Request/Bug Report Form

  • What is the security code i have to state togeheter with my creditcard number when i change paymentinfo??

    When i change my paymentinformation under card number i should enter a securitycode, but i have no idea what code that is..?

    It is asking you to enter the CVV number.

Maybe you are looking for

  • Plan table output

    Hello guys, I am on a 9.2.0.7.0, and i am trying to get explain plan for one select that is reading some table through the db link at the remote sight. Unfortunately, i am getting this output :   1* select * from table(dbms_xplan.display) PLAN_TABLE_

  • Can we refresh RSPCM transaction in background ??

    Hi guys, I am working in BI 7 landscape, where there are around 120 process chains. I have included all these chains in the RSPCM transaction to monitor the daily loads. But the problem is that it take around 8 minutes or more to get refreshed in for

  • Playing, Pausing, Stopping Audio in a Timeline

    I don't use Flash that much so the question may sound simple, but how do I pause audio in a timeline?  I have added the audio, play and stop button.  When I test it works fine, but I can't figure out how to add the pause button, or the play/pause but

  • Optimizing images for Help and Print/PDF

    i'm struggling with how to optimize graphics so they look good in both Help and print/pdf output. I use Snag-it to Capture and save as PNG 300 dpi. I often put the images in Vision and add callouts and save as PNG. From RH I generate a printed output

  • Re: No Order Confirmation Email / Cannot Find Order Online

    I am having the same issue as the creator of this thread I just bought the Rocketfish™ - Wii U InvisiShell - Transparent at 12:41am but except I choosed to have it shipped and I have not yet recieved a text or an order confirmation e-mail stating tha