How can I execute a command every 10 seconds in a specific time-frame

Hello,
I would like to create a script which in a specific time-frame collects some outputs and also pings every 10 seconds.
To collect the outputs every minute from 22:00PM to 22:10PM I have the following:
event manager applet snmp_output
event timer cron cron-entry "0-10/1 22 * * *" maxrun 30
action 010 cli command "enable"
action 020 cli command "show clock"
action 030 cli command "terminal exec prompt timestamp"
action 040 cli command "show snmp stats oid | append bootdisk:show_snmp_stats_oid.txt "
action 045 wait 5
action 050 cli command "show snmp pending | append bootdisk:show_snmp_pending.txt "
action 055 wait 5
action 060 cli command "show snmp sessions | append bootdisk:show_snmp_sessions.txt "
acionn 065 wait 5
action 070 cli command "end"
To confirm connectivity to the device doing the SNMP polls I would like to execute a ping every 10 seconds in the same timeframe.
Cron seems only to support minutes. Is it possible to combine a watchdog timer + a cron timer?
Can this ping function be incorporated in the SNMP output applet or will I have to write a new one?
Will I need TCL here (I have no experience in TCL)?
Best regards,
Tim

If you wanted the pings to run in parallel, you could have this applet configure another applet to do the pinging, then remove it on the last run.  This will require an amount of programmatic logic, though.  If you wanted to keep things a bit simpler, add another applet that runs at 22:00 that configures a watchdog pinging applet, then a third applet that runs at 22:10 that removes the pinging applet.
When it comes to embedded quotes when you configure your nested pinging applet, you'll need to use $q to stand for the embedded quotes.  You'll also need to configure:
event manager environment q "

Similar Messages

  • How can i execute OS command in ODI?

    hi all,
    i have an exe file
    and
    i want to execute this file in ODI with scheduling?
    how can i do this?
    thanks.
    Eser

    Take a look in the documentation for the ODIOSCommand tool - which you use in a package.

  • How can I execute a command inside of a VM client from the VM host?

    Hi!
    I'm working on a set of scripts to automate MOC classroom installations using MDT and PowerShell. Sofar I've been able to automate everything except for the Rearm needed within the VM Clients. Is there any command (preferably PowerShell) that I can Launch
    on the VM host with which I can execute a command within the VM Client?
    Regards,
    Gerrit Deike
    If you think your to small to make a differnce, try going to bed with a mosquito in the room...

    If you wanted the pings to run in parallel, you could have this applet configure another applet to do the pinging, then remove it on the last run.  This will require an amount of programmatic logic, though.  If you wanted to keep things a bit simpler, add another applet that runs at 22:00 that configures a watchdog pinging applet, then a third applet that runs at 22:10 that removes the pinging applet.
    When it comes to embedded quotes when you configure your nested pinging applet, you'll need to use $q to stand for the embedded quotes.  You'll also need to configure:
    event manager environment q "

  • How can I get a listing of web orders entered by specific time period

    How can I get a listing of all the orders which has been entered via website using webtools.
    We need to make sure that all the orders which has been entered from website it is synced to B1 instead of looking at the synch error messages. The problem is that when I run the report from Webtools it displays all the orders even the ones which got entered in B1 and got synched to Webtools.
    Tkx

    Try running this query. This will give you a listing of all orders that were placed using a theme. Any orders that were synched from Business One should not appear in this list. It should only contain orders placed through the website.
    SELECT     *
    FROM         OrderMaster
    WHERE      ServerID <> ''

  • How can I execute a command after kernel-upgrade/mkinitcpio

    Because of the archlinux specific kernelnaming-policy there's a problem when using grub2. The created menu looks nasty because grub-mkconfig can't find the proper kernel-version. (Bugreport: https://bugs.archlinux.org/task/25453)
    Even if this is fixed we need to recreate the grubconfig always when a new kernel-version is installed.
    What I want now is executing grub-mkconfig after each kernel-installation/mkinitcpio, without repackaging the kernel. Is such a hook possible?
    Last edited by fsckd (2012-02-21 17:36:20)

    Rorschach wrote:
    Because of the archlinux specific kernelnaming-policy there's a problem when using grub2. The created menu looks nasty because grub-mkconfig can't find the proper kernel-version. (Bugreport: https://bugs.archlinux.org/task/25453)
    Even if this is fixed we need to recreate the grubconfig always when a new kernel-version is installed.
    What I want now is executing grub-mkconfig after each kernel-installation/mkinitcpio, without repackaging the kernel. Is such a hook possible?
    This is not necessary unless Versioned Kernel Installs are supported by pacman. I have added a new patch to https://www.dropbox.com/sh/jth3mchm3hob … src.tar.gz that solves the issue. No need for pacman or mkinitcpio hooks (for now).

  • How to migrate data from one database to another for a specific time frame

    Hi
    This is the scenario:
    We have 2 databases:
    PTT : THis has data from march 11 to March 19 that was created when the production was down due to a crash
    PROD : THis was recovered after March 19. Hence has no data created between March 11 and March 19
    How do I transfer this data from March 11 to March 19 from PTT to PROD so that Production can be up to date asap.
    Please let meknow the methods to get this done
    Regards
    Gayathri

    Hi,
    You could use EXP/IMP to move the data from PTT to PROD. But, you should be careful with sequences, modification to the same data.....
    eg Customer Address was updated between Mar 11 - 19, again the same customers was updated after 19 Mar, under this situation if you load the data from PTT you would be wrongly updating the data.....
    You have to study well and apply changes...........

  • How can i execute vb scripts in java program

    hi
    how can i execute any batch files or any other exe files (vb scripts) from java programs
    thanks

    Hi,
    You use Runtime.exec to execute commands / exe-files. See the documentation (and remember that it will only work on windows):
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
    /Kaj

  • How can I execute program after using F4_Filename function?

    Hi all,
    I'm a new user on the forum. I've been working with ABAP and SAP for a few weeks. I wrote a program for importing data from excel file to SAP using BDC. During searching this forum I found information about F4_Filename function which allows users to browse the disc for a file. I'd like to add this function to my program. I have a parameter for a file name but this is an ordinary static string field. When I added the code which I found in the message on this forum the rest of program doesn't execute.
    This is simple program for example:
    REPORT  Z_TEST8_AB.
    DATA f_name TYPE STRING.
    PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
    f_name = p_file.
    write:/ f_name.
    This program works correctly. There is a field for parameter. I can change the default name for a file.
    After all, I can run the program (F8) and rest of the code is executed. The field for parameter dissapears from the screen and the file name is displayed. ( command write)
    Now I added a function F4_Filename
    REPORT  Z_TEST8_AB.
    DATA f_name TYPE STRING.
    PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
           exporting
                program_name  = syst-repid
                dynpro_number = syst-dynnr
                field_name    = 'p_file'
           importing
                file_name     = p_file.
    f_name = p_file.
    write:/ f_name.
    I can browse a computer for a file now but after selecting the file I can't run the rest of the code. When I click on the icon or press key F8 the field for parameter doesn't dissapier and the command write is not executed.
    What do I do wrong?
    Could anyone suggest me a solution? How can I executed the code after using this function?
    Thanks in advance.
    Regards,
    Arek.

    Hi arkadiusz,
    1. simple
    2.
    <b>start-of-selection.</b>
    f_name = p_file.
    write:/ f_name.
    regards,
    amit m.

  • How can I execute external application?

    Hi friends I want printing my barcodes a laser printer (Kyocera) it isn't a barcode printer. So I think (and I look kyocera web page my model doesn't support barcode printing in sap) print my barcodes using an external system. Before SAP we are using JollyPrint application for printing barcodes. It is using an Excel file.
    I can create a excel file for this application. I must execute this (JollyPrint-it is a label application) application when I press a button. How can I execute this application?
    Thanks
    Mehmet
    P.S. I have been writing this message with details may be somebody can give me a simple way for this

    Well, I can suggest you following steps. May be it works for you .
    -Create an external OS command in SM69
    -Test OS command in SM49 ( <u><i>about OS command if you search in SDN you’ll get lot of material</i></u> )
    -Create a Script at your OS level, I’m assuming you might have some UNIX flavor or Sun solaria’s.
    -Create a Shell script , which execute the printer job from OS .
    -Shell script will have parameters . ( e.g. printer name, destination etc )
    -set the path of shell script directory in SM69 ( the command you just created )
    -Execute shell script using your ABAP program ( use FM "SXPG_COMMAND_EXECUTE" )
    In the ABAP  program you can pass the parameters and execute the command from ABAP as a result your job will start printing on the required destination. Moreover, you can also capture the spool at OS level .
    FYI
    For UNIX script, if you search in www.google.com ( UNIX forums) . you’ll get shell script .
    Hope this’ll give you idea!!
    <b>P.S award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • How can I execute a bash script by double clicking in finder

    Hello!
    How can I execute a bash script using finder? Or better: How can I create an alias, which executes my bash script?
    Thanks Johann

    Add the suffix command in your script name. E.g. Script.command.

  • How can i execute excelsheet without giving path in java

    Hi,
    How can i execute excelsheet without giving path in java, through this code, you can open the notepad but
    I want whereever the excel is installed in your machine , fine and open excelsheet without given absolute path.
    class ExecuteCommand{
    public static void main(String d[]){
         Runtime r = Runtime.getRuntime();
         Process p= null;
         try{
         p = r.exec("notepad");
              catch(Exception e){
                   System.out.println("error");
    If you know please send me your idea and code samples.
    regards
    Mohan kumar

    just execute the exelfile with the Windows "start" command:
    Runtime.exec("cmd /c start "+excelFileName);But this requires that Excel is the default application for the Excel file type (*.xls). You can test this by simply typing "start myTestExcel.xls" in a dos box.

  • HOW CAN I EXECUTE DINAMIC SENTENCES FROM FORMS

    HOW CAN I EXECUTE DYNAMIC SENTENCES FROM FORMS.
    Ex.
    I would like to execute this commands from table SENTENCES
    COL1
    set_item_property (item1, enabled , property_true )
    set_item_property (item2, enabled , property_true )
    set_item_property (item3, enabled , property_false )
    Regards
    Message was edited by:
    jcruizcarrera
    Message was edited by:
    jcruizcarrera

    ... but you could imagine a sort of workaround...
    PROCEDURE Set_Item
        PC$Item     In Varchar2
       ,PN$Property In Number
       ,PC$Value    In Varchar2
    ) IS
    BEGIN
       Set_Item_Property( PC$Item, PN$Property, PC$Value ) ;
    END;That you can call like this:
      Set_Item( 'BL.BUTTON', LABEL, 'Hello' ) ;Francois

  • How can i execute codedui scripts by using dll

    how Can I Execute Coded UI scripts by using the DLL from anywhere after creating the build 

    Hi yellesh,
    If you mean that you want to run your test with bat file, as far as I know, we could call the MSTEST command line.
    set mstestPath="C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE"
    %mstestpath%\mstest /testcontainer:AutomatedUITest.dll  /resultsfile:TestOutput.trx
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/29af65b3-598b-4205-80e6-35b942113f3b/how-to-run-coded-ui-scripts-trhu-bat-file?forum=vsautotest
    https://social.msdn.microsoft.com/Forums/en-US/42a5d8f2-fe58-4133-b09d-28fa0553ab1a/run-coded-ui-test-in-certain-moment-in-future?forum=vsautotest
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Sudo can't execute some commands[SOLVED]

    Hi Archers,
    I am using sudo and disable root account. There is some problems with sudo such as the following commands:
    #sudo echo "1234"  >/etc/rc.local
    # sudo cd /root
    I can't execute these commands with sudo, instead i have to login as root and execute the commands. So the question is how can I solve these problems?
    The Second issue is how can I give certain user the commands that they can execute. For example, user A is only allowed to use "ls" commands and not any other commands?
    Cheers
    Last edited by hungsonbk (2008-11-17 02:02:29)

    You can't use those commands because it aren't real commands, it are shell builtins and they are ran by your shell which is ran by your regular user.
    sudo echo foo > bar
    This runs the "echo" binary as root but the ">" part is handled by the shell, appropriate way to handle this:
    echo foo|sudo tee bar
    cd wont work neither, if it did you could cd to a directory you don't have permissions to and then you would be in their as regular user, unable to do anything... You should just work from outside /root or use sudo -s.
    For the user thing: man sudoers.
    Last edited by Ramses de Norre (2008-11-15 16:52:55)

  • How can i remove auto voice , every time i type is taking HELP

    How can i desative auto voice every time i type this computer is taking lol i need help i want to turn it off

    Hold the Command key and tap F5

Maybe you are looking for

  • Thunderbolt to dvi ?

    is there an adapter for going from TB on MacAir to a div displey?

  • If you close magic jack app and it's not running in the backround then the pod touch 4 wont' ring right?

       I might have put this question in the wrong catergory if you think it would be better asked in the app category please let me know but I know this is the general board for most main questions.     HERE'S WHAT I READ"    Most of the apps showing in

  • Contact form won't submit

    Hi everyone, I have the following code as my contact form but when I click the submit button, nothing happens, ie. it just stays on the same page and none of the data gets inserted into the CRM. I wondered if anyone can see any problems with the code

  • Reports 2.5 with embedded graphics

    When I run the report, the report server and graphic server automatically start. If I passe the parameter Oracle_Shutdown, the report server shutdown when the report close, but the graphic server will stay active. How can I shutdown the graphic serve

  • SCR.ZIP Where is it?

    may you help me? Where can I find file with j2ee classes sources? I have installed j2ee 5.0, but didn't find something. thnx!