Executing multiple IOS commands one after the other with a delay

Hi -
As part of my monitoring solution, I have scheduled scripts running on my routers to do various tasks, now I am trying to do trace route to about 10 routers from a seed router to track the path of the trace and if it changes i would be alerted.
What I am having difficulty is doing one trace commands from a text file. Example follows:
Trace 10.10.10.1
Trace 10.20.10.1
Trace 10.30.10.1
The command will stop right after the first line, is there a way in IOS to do a “wait” statement between each command to get this going?
Regards
Daya Rajaratnam

Correct, you need 12.3(2)T or higher (for router IOS).  Tcl is also available in many other non-router platforms.  Yes, you do need to be enabled. for tclsh.  For EEM, though, you do not need to be enabled.  You can register an EEM policy, then anyone on the box can execute it.  EEM is also built around Tcl, so the same code could be added to such a policy.  For example:
::cisco::eem::event_register_nonenamespace import ::cisco::eem::*namespace import ::cisco::lib::*array set cliarr [cli_open]set output {}foreach host [list x.x.x.x y.y.y.y z.z.z.z] {    append output [cli_exec $cliarr(fd) "traceroute $host"]    after 3000}cli_close $cliarr(fd) $cliarr(tty_id)puts $output
EEM Tcl policies require 12.3(14)T or higher for router IOS.

Similar Messages

  • Fastest way to add multiple images, one after the other, in DW5.5

    There has to be a faster way to add multiple images, one after the other, in a web page rather than just dragging each from the Files tab w/in DW 5.5
    I was a little surprized I couldn't select multiple images and just drag a block and have DW just insert an img tag with empty alts and the source path but maybe there is some options I just haven't found?
    I tried using Bridge to generate a quick html slideshow/gallery but it creates skads of divs and such... I just have to update an older site and was looking for an efficient way to add a bunch of images (random names ugh so just copying-pasting one and changing names is still more manual) that lie next to each other, no breaks inbetween....seems an ideal automated situation.
    I'd settle for an external script or app or something because they come in blocks of 25 approx and I have all my actions in PS set up to size appropriately which is nice so I just wondered if there was something good for this low-level production task.
    Thanks

    Thanks. Yes, I started writing a script but I just wondered if there were hidden gems in DW....so many programs do more than they are intended to do nowadays, I had to ask people who use it more!
    Actually, the fastest was to just dupe one line of code, paste x amount and then just use the pick-wip to point and drag. That at least cut the menu out of the equation.
    I thought I remembered doing a batch insert years ago..maybe in GoLive or before Adobe had DW? DW and GoLive are the only GUI html editors I've ever used..but, may it was just something out of an ealier photoshop...they've taken good stuff out and put good stuff in so many times that I can only remember so much!

  • How do you get iTunes purchased songs to automatically play one after the other

    How do you get iTunes purchased songs to play automatically one after the other without having to hit play for each song ? Also I lost all my pictures on my iPad when I installed iOS 7 upgrade. Any way to get them back? Thanks. Dr Ron.

    Hi Dr. Ron,
    By your question, I am wondering if you are playing your music from the iTunes app rather than the Music app?
    In the Music App, you can go to any of the options at the bottom and click on a song to play and it will then continue to play the songs in that category. You can also select "Shuffle" to shuffle them.
    As for your Photos, did you have them backed up anywhere?
    Cheers,
    GB

  • I have a long numbers document, that I'd like to make more print friendly. It is a list of my DVD's that I just listed one after the other (1-200) when I tried to print it, it would be 18 pages, can I change it to be more like columns side by side to save

    I have a long numbers document, that I'd like to make more print friendly.
    It is a list of my DVD's that I just listed one after the other (1-200) when I tried to print it, it would be 18 pages,
    can I change it to be more like columns side by side to save paper?

    S,
    I assume that you also have Pages on your computer (or some other capable WP program). I also assume that you have eliminated any unnecessary columns, so you have a 1-column table in Numbers.
    When it comes time to print, Copy the entire Table: Click on the table name in the Sheets Pane and Command-C.
    Switch to Pages, open a blank WP template and set the number of columns to 3 or so. With the Text Insertion Cursor flashing on the first line of the first column of the blank template, Command-V. Your table should paste into the Pages document as an Inline Object and will Wrap on the page as you desire. Then Print in Pages.
    Jerry

  • IPhone 5. Prior to the iPhone 5, I could listen to podcasts one after the other without doing anything. Now it will only play one podcast at a time, then I have to click on the next one. Not a great feature when driving. TIA, Sarah

    iPhone 5. Prior to the iPhone 5, I could listen to podcasts one after the other without doing anything. Now it will only play one podcast at a time, then I have to click on the next one. Not a great feature when driving. TIA, Sarah

    How do I get it to just play through all the podcasts that I've downloaded just like my 1st gen?
    Group and order your podcasts to a playlist. Then play them from the playlist.

  • Playing movie clips one after the other

    Hello, I am trying to figure out how to play several movie clips one after the other. Each clip has animation in it. When I drag the clip on the main timeline the timeline plays the frame but does not play the contents of the movie. how do I get it to play the contents of the first movie then play the contents of the second movie which is in frame 2 and so on?
    Thank you

    do you mean in the authoring environment you don't see nested movieclips play when scrubbing the timeline?  if yes, that cannot be changed.  if you used graphic symbols (instead of movieclips), you can see nested graphics play when scrubbing a parent timeline (if the parent timeline has sufficient frames).

  • Formatting on several websites is incorrect. Everything loads on the left hand side one after the other. Clearing 'Everything' from history works temporarily...

    Formatting on several websites is incorrect. Everything loads on the left hand side one after the other. Clearing 'Everything' from the search history fixes the problem temporarily, for a very short time. I've been using Firefox for years and I've only recently been getting this problem. It's been happening on both Windows 7 and 8. I'm not sure if this has anything to do with it but this problem has only arose since I upgraded to fiber power broadband, 100Mb. The link below is just one of many.

    Thanks for the advise. I already tried Safe Mode and the problem persists though...

  • Editing pictures from a file one after the other

    I am not sure pow to ask the question. I just upgraded to Photoshop 10 from 3.  Now, when I am editing a few days worth of pictures one after the other, I go to open the next file (picture) the computer takes me back to the top (first one listed) each time.  Many times I am editing over 100 pictures in the file, and now have to scroll down each time and that takes forever. I have to remember what number picture I was on.  In my earlier version, the compiter "held" the spot where I was so  it was easy to select trhe next picture to edit.  Any words of wisdom to make this work lije it did earlier?  THANKS.
    Dick [email protected]

    Hi ,
    If you are talking about the issue related to Opening File Browser of PSE Editor File menu >> Open.
    Please USE organizer.
    First import all your images of that particular folder to your catalog and then intiitalte your workflow from Organizer to edit them in the Editor.
    Organizer scolling bar will not move after editing by PSE Editor.

  • Why am I getting an error when I place two OAM files one after the other in different pages?

    Why am I getting an error when I place two OAM files one after the other in different pages? They do not load or play correctly.  They are both configured to play automatically with a .125 second delay and both have a white rectangle "poster" over for a hidden effect.

    Thanks for the idea, Scott! I initially tried your idea, but my OAM files were still not loading correctly.  I tried other combinations of OAM files, and it seems to work fine.
    Back to my original OAM files: I made sure that my elements in my Edge Animate project had different names. I originally copied parts of some elements from one to another, and I think it was confusing to DPS to read it. 

  • Can you set the i pod to play albums one after the other as it seems to stop once its played the one album!! :-(

    can you set the i pod to play albums one after the other as it seems to stop once its played the one album!! :-( thanks

    Unfortunately that is the way the interface is designed. If you select an album from the albums menu, then it plays an album, optionally shuffled and/or repeated. If you select from the artists menu then you should be able to shuffle the albums or songs by that artist or have them played in sequence, again with options to repeat. You can also cue up a number of songs or albums with the On-the-Go playlist feature.
    iPod classic manual
    tt2

  • Podcasts - getting them ALL to play (one after the other)...

    I have several podcasts on my ipod (video and audio). How can it to play them in succession (the first one ends, the 2nd postcast starts, and so on..). I have CNN news for a video podcast. I watch one day of news. It ends then stops and brings me back to the main menu of the podcast. I have to scroll down and goto the 2nd day and watch. Then repeat. I'd like to just watch them all in row, one after the other. How can I do this???
    My own   Windows XP  

    I started doing this some time ago and it worked very well. However, this last week or so when I go to Music:Playlist:Podcast and play (not select) it doesn't play now. Before it would go through one podcast after another. I may have changed a shuffle/repeat setting but the other playlists work. I recently installed iQuiz a great 'game' but there were reports of it changing settings.
    Any thoughts? David

  • Have clips automatically plan continuously one after the other...

    I have created a iDVD project. In this project I have 8 different clips that I want to have play one after the other without having to go back to the title and choose the next clip. Is there a way to have them play as in "Play All". Thank you in advance.
    Jim K.

    I assume you already have your petal design replicated with a Circle arrangement and the Align Angle option checked. You will also need to check 3D.
    Go to Behaviors > Replicator and add the Sequence Replicator.
    In Sequence Replicator:  Add > Position. Dial down the Position pane and ramp up the Z parameter (you need to go up to at least 2400 to start behind the default camera view.) Set the Sequencing to From and the Unit Size to Object.  Adjust the Spread to taste. You can change the direction of the sequence by going back into the Replicator inspector and selecting Build Style: Counter Clockwise from the dropdown menu.

  • Play local videos one after the other

        Hi - I'm setting up 10 videos locally in Dreamweaver to play one after the other.  By local I mean everything is on a the computer and you just open up the HTML page in Chrome and it works.  When the HTML opens in Chrome, I got the first video to auto play and loop too.  But after video #1 ends, I need it for the 2nd video to start, then third, and so on until the 10th is over then it goes back to #1 again.
    The code I have on the local HTML page is and it works for one video is:
    <video width="720" height="406" controls autoplay loop>
      <source src="1E.mp4" type="video/mp4">
      <object data="1E.mp4" width="720" height="406">
      </object>
    </video>
    ...but I just can't figure out how to get the other 9 videos in there so they play after #1 then loop back to #1 again.
    Does anyone have any idea how to do this?  Thanks.

    Hooking up the computer to the TV is the easy part :-)
    I tried getting a windows media playlist set up and although I like that player, it seemed difficult to make a simple playlist in it.  Unless I wasn't reading the instructions correctly, I couldn't get it to work.
    I also like QT but it seems like you need to buy the QT Pro version as the basic player doesn't seem to allow for playlists (unless i'm missing something).
    If I could get either of the above to work and play these videos locally over and over I'm set.  But because I had problems with WMV and you have to pay for QT Pro that's why I'm trying to build something locally in DW.

  • Having Images load one after the other

    Hi, i am currently creating a tetris game and was wondering how exactly i would go about creating some sort of a timer that would allow me to have my images load one after the other and fall at specified interval. I appreciate any help. here is my code:
    import javax.swing.*;
    import java.awt.*;
    public class Tetris extends JPanel {
    Image image; // Declare a name for the Image object.
    Image image1;
    Image image2;
    Image image3;
    // Create a constructor method
         public Tetris(){
    super();
    // Load an image file into the Image object. This file has to be in the same
    image = Toolkit.getDefaultToolkit().getImage("Block1.png");
    image1 = Toolkit.getDefaultToolkit().getImage("Block2.png");
    image2 = Toolkit.getDefaultToolkit().getImage("Block3.png");
    image3 = Toolkit.getDefaultToolkit().getImage("Block4.png");
    // The following methods are instance methods.
    /* Create a paintComponent() method to override the one in
    JPanel.
    public void paintComponent(Graphics g){
    // Draw our Image object.
    g.drawImage(image,30,30,30,30, this);
    //g.drawImage(image1,30,30,30,30, this);
    //g.drawImage(image2,70,70,70,70, this);
    //g.drawImage(image3,80,80,80,80, this);
         public static void main(String[] args) {
         JFrame frame = new JFrame("Tetris");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.setSize(200,500);
    Tetris panel = new TetrisDemo();
    frame.setBackground(Color.WHITE);
    frame.setContentPane(panel);
    frame.setVisible(true);
    }

    Can you clarify what you mean by Images loading one after the other? For this, you might want to take a look at MediaTracker
    If by "fall", you mean having blocks which drop periodically, you should check out javax.swing.Timeer

  • Playing Podcasts one after the other

    I subscribe to a few podcasts that are "song of the day" They download and I play the songs but I would like to play them one after the other like I do with normal songs in my library.
    I play one song then have to go back in iTunes and click to play the next ...
    I try highlighting a bunch and no luck. Then made a playlist of the podcast songs and again only one will play.
    Any thoughts?
    Thanks

    the fiend wrote:
    I think the video iPod only ever plays one at a time.
    I see. Thanks for the info! At least now I know I'm not just missing a simple menu setting somewhere.
    Are you (by any chance) saying that you have a video iPod, not a Classic?
    actually I have both I have a Classic in my car, and a video one for travel. Both have the same issue but since it turns out they handle this differently, I wanted to know if the workaround posted for the Classic might have a counterpart in the video one... Thanks again!
    Mike

Maybe you are looking for