EEM variable for show command output and create a filename

I'm configuring EEM applet, example CPU High event. When it triggers the event, action is "show tech | redirect tftp://x.x.x.x/showtechoutput". The EEM event is working fine and triggered the show tech output into the tftp server. My question is, i'd like to add maybe date/time in the filename so it will not overwrite the file everytime there is a triggered event.
The EEM event variable i'm seeing in doc is "_event_pub_sec" but it won't work when i add after or before the filename. any idea?
thanks in advance ...

Adding $_event_pub_sec to the end of the filename should work:
action 1.0 "show tech | redirect tftp://x.x.x.x/showtech.$_event_pub_sec"
That said, TFTP is very particular about how files can be created.  Typically, a TFTP server will require the file to exist before a remote host can copy to it.  If the filename changes each second, this will not work.  Using a protocol like FTP or SCP may work better.

Similar Messages

  • Sending 'show' command outputs to console/terminal using EEM

    Hi Everyone,
    I'm new to EEM and was wondering if it would be possible to send 'show' commands  (like 'show interface' or 'show crypto ipsec sa') to the terminal/console session after every, let's say, 10 minutes using watchdog timer. I know how to send it to the flash but would like to know if something of this sort is possible.
    Any suggestions would be really appreciated!
    Regards,
    Nikhil

    Hi Nithakur,
    you can try the "action puts" from EEM
    event manager applet SHOWI
     event timer watchdog time 600
     action 1.0 cli command "enable"
     action 2.0 cli command "show int X/Y"
     action 3.0 puts "$_cli_result"
    for this to work, you would need to have "logging monitor informational" in your run and "terminal monitor" activated. The other option is to use IOS send command
    event manager applet SHOWI2
     event timer watchdog time 600
     action 1.0 cli command "enable"
     action 2.0 cli command "show int XY"
     action 3.0 set A "$_cli_result"
     action 4.0 cli command "send *" pattern "C:"
     action 5.0 cli command "$A\032" pattern "confirm"
     action 6.0 cli command "yes"
    Note that the \032 is an equivalent for CTRL+Z (^Z) so after you configure it, you will see this line as
     action 5.0 cli command "$A^Z" pattern "confirm"
    in your ruiining config.
    Regards,
    Alex

  • Sun Studio 11 do not parse make output and create link to file?

    Hi,
    Running Sun Studio 11 and can only get file links in the output window when I run a make command that uses CC -g (debug option). We have integrated other tools into our make system (flexlint, cppUnit..) and even though we make sure that the syntax is exactly the same as the compiler output and matches regular expression under tools->options->building->make settings->error expression, it doesn't work. Why do you have to debug compile to get sun studio to create a file link in the output window? Doesn't sun studio just parse the text from the make command?
    example of flexlint output for which no link is created:
    "/vobs/project/oss/fm/fm4/fm-fmalib/fmbal/fmaaulib/src/FMA_List.cc", line 440: Error 84: sizeof object is zero or object is undefined'�
    example of make debug output for which we do get a link:
    "/vobs/project/oss/fm/fm4/fm-fmalib/fmbal/SunOS5.10/inc/FMA_alarm_record.hh", line 1310: Warning (Anachronism):Info "static" is not allowed and is being ignored.
    Regards,
    Ola

    I'd second Maxim's suggestion: try NetBeans 5.5 with C/C++ Development Pack. The official release of NetBeans C/C++ Development Pack 5.5 has happened a few days ago. You can download it from
    http://www.netbeans.info/downloads/all.php?b_id=2284
    Some of the changes between the beta3 build and FCS are:
    * Significant performance improvements in the code parser resulting in faster results in the Class View and Code Completion
    * Programs now run in an external terminal (system dependent) by default. This allows better input control
    * Significant performance improvement in the debugging module
    * Significant functionality improvement in the debugging module
    * New project type "C/C++ Project From Existing Code" which simplifies creating a project from existing code
    * Macro support in code completion
    * Hyperlink navigation for macro usages and #include directives
    * Reformat code
    * Code folding
    * Code completion
    All these features will appear in next Sun Studio release, so you can
    consider NetBeans C/C++ Development Pack 5.5 as a preview of new
    Sun Studio IDE.

  • How can I use a variable for an interface log and error fle

    I want to use a variable for the interface's log and error file so that when I migrate from Dev to QA to Prod I don't have to do a lot of editing.
    Specifically on the "flow" tab for the "target", I want a variable to be the first part of the path for the log (\\sundev1\fnd1-hypd1) and join this with the rest (\update\log\logfile.log) within the LOG_FILE_NAME field.
    Thank you!

    Hi,
    It is quite simple....
    just use the <%=odiRef.getSchemaName("D")%> before the file name and configure both path in the topology linked to each context.

  • Table name for Customer Account Group and created by Data

    Dear Gurus,
    Kindly le t me know the table name having a list of Customer a/c groups and created by data. if there is no such table thn pls let me know the alternatives for fetching the same data.
    Wishes
    Abhishek

    hI
    Go to Se11 and give table name KNA1 and go to display
    you can able to see the Customer AccountGroup field :KTOKD
    Thanks
    Vasu

  • Table Name for Partner Determination Procedure and created by data

    Dear Gurus,
    kindly let me know the table name for a list of "Partner Determination Procedure" and "created by" data under a client.
    if there is no such  table for this, kindly let me know how can i fetch these details.
    Wishes,
    Abhishek

    Hi Abhishek,
    You can get your required information by combining these 2 table by using SQVI
    TPAER where it gives PartnDet.Proc and Part.funct.
    TPAR where it gives Part.funct inforamtion.
    By using these tables i.e. by using Common field Part.funct. - PARVW
    Regards
    Durga Sana

  • Has the options for custom command buttons and scripts been removed from speedgrade?

    I run alot of framecyclerDI machines and am looking to upgrade them but i cant seem to find any method of adding command bars and buttons like you could in the iridas versions of speedgrade i also cant see a way of executing any external scripts which for me is a big issue as i have a hell of alot of pipeline scripts that the artist could execute.... any ideas or have i just missed somthing ?.......(would love it if they added a python sdk)

    Hi Dennis,
    Thanks for replying,
    Its actually more the other way getting speed grade to control outher things.
    i.e
    take the in and out points and send the track to a dcp creator
    rendering and sending anotated frames directly into my databases notes system
    taking the shotname and seeing if theres is a new version avaliable and pull it from the server to the local machine drive/cache
    Theres a load more..but you get the idea .. using the buttons to execute these commands in the interface made these functions editor friendly...
    I can get round some of the issues by reading from the autosave.ircp and setting up a PYQT GUI but that seems like a bit of a hack.
    I understand the reasons to keep the UI uniform (editors dont like it when you move buttons) but Im suprised these options got removed as intergrating software into pre-existing pipelines would seem to be a selling point for any software..
    Are there any plans in the roadmap for speedgrade that would help me in the future?
    S.P.F

  • How to Install IHAT10.1.3 for both command line and web

    Hi,
    I am trying to install iHAT10.1.3 onto my linux x86 machine. However the instruction I am following in the README is not working for me. Can anyone give me an example of how to install and view iHat for command line and the web
    Cheers
    Jat

    What stage during the instructions are you encountering problems. Can you provide the error details if any?
    The 10.1.3 iHAT is only Web based using Flash at the client for displaying compopnents. Unlike the old iHAT, there is not thick client provided to invoke from the command line.
    null

  • "Command I" shortcut in Preview - designated for show/hide toolbar AND show inspector?

    In the Mac Preview App, I tried using the the 'command I' shortcut to show/ hide the toolbar, but it brings up the inspector instead. Is the shortcut is designated for both these functions?

    Actually the Toolbar hide/show isn't "cmd i" it's "cmd shift |"
    That little key on the far right edge between the "delete" and "return" keys. The same key that has "\" as the main function.
    KOT

  • ACE Sticky Connections, Show Conn Output and Show serverfarm

    Hi Community,
    I'm deploying a Cisco ACE module and I have some questions about sticky connections and about the output of the show conn command and show serverfarm command.
    I have the follwoing configuration:
    rserver host srv_1  ip address 10.4.11.14  inservicerserver host srv_2  ip address 10.4.11.18  inserviceserverfarm host farm_144  rserver srv_1 144    weight 1    inservice  rserver srv_2 144    weight 3    inservice
    sticky ip-netmask 255.255.255.255 address source st_host144
      timeout 10080
      serverfarm farm_144
    class-map match-all vip_144
      2 match virtual-address 10.4.11.208 tcp eq 143
    policy-map type loadbalance first-match lb_144
      class class-default
    policy-map multi-match policy_vip_webcache
      class vip_webcache_144
        loadbalance vip inservice
        loadbalance policy lb_144
        loadbalance vip icmp-reply active
        nat dynamic 411 vlan 411
    We can assume that service policy was applied at the interface vlan. So, let's go to the questions:
    1- If sticky is enabled the output command "show conn" should show just one entry by ip address?
    The real output is:
    DC01-ACE-01-PRIMARY-SW1/context_servidores# show conn | inc :143333046     1  in  TCP   411  10.2.158.87:3616      10.4.11.208:143       ESTAB 286390     3  in  TCP   411  10.2.158.87:3562      10.4.11.208:143       ESTAB310233     1  in  TCP   411  10.1.5.87:3424        10.4.11.208:143       ESTAB
    Look that the ip address 10.2.158.87 is shown 2 times. In same times, the same ip address is shown 4 times to the same VIP and the same port. Is it a normal behavior?
    2- According to the configuration, the srv_2 has weight 3 and srv_1 has weigth 1, but the output of show serverfarm show somethin strange:
    DC01-ACE-01-PRIMARY-SW1/context_servidores# show serverfarm farm_144 serverfarm     : farm_144, type: HOST total rservers : 2 state          : ACTIVE DWS state      : DISABLED ---------------------------------                                                ----------connections-----------       real                  weight state        current    total      failures    ---+---------------------+------+------------+----------+----------+---------   rserver: srv_1       10.4.11.14:144        1   OPERATIONAL     11         386        0   rserver: srv_2       10.4.11.18:144        3   OPERATIONAL     35         66         0
    We can see that the weight is working good, but the total of connections is higher at srv_1 than srv_2. Why?
    Somebody can help me to understand better this problem of if its a normal behavior?
    Thanks in advance!!

    Hi Gaurav,
    About question 1, I got some informations too. It's perfectly normal the client open 2 or more connections at the same time. The client's application is the responsable. We removed the ACE and put the client directly to the server and the result of the total connections opened was the same.
    About question 2, I made some "clears" on the serverfarm, the sticky database and after that, the numbers were more real.
    DC01-ACE-02-SECONDARY-SW1/context_servidores# sh serverfarm farm_webcache_144
    serverfarm     : farm_webcache_144, type: HOST
    total rservers : 2
    state          : ACTIVE
    DWS state      : DISABLED
                                                    ----------connections-----------
           real                  weight state        current    total      failures
       ---+---------------------+------+------------+----------+----------+---------
       rserver: srv_webcache_1
           10.4.11.14:144        1   OPERATIONAL     1025       15499      4436
       rserver: srv_webcache_2
           10.4.11.18:144        2   OPERATIONAL     1794       33471      471
    DC01-ACE-02-SECONDARY-SW1/context_servidores#
    Anyway thank you very much for your feedback.
    Plínio Monteiro

  • Custom Infotype : Only for Disply Mode Change and Create Should be disable

    Dear Experts,
                        I Created a custom infotype in PM01 for Exit process , my client requirement is this infotype  only shows the details .
    Could you please tell me how to disable the Create and change button in PA30 Screen ?
    Regards,
    Sivakumar.A

    hi siva
    In PM01 itself you have option module pool, select that option go to screen program.
    there select field->dbl clk-> screen attributes pop up will come.
    there you have to change the input/output option
    Regards
    Deva

  • EEM TCL for interface commands

    I am working on a script that will make interface changes.  I am trying to do the following:
    1) save the output from the following command:  #show cdp nei detail | i Interface
    2) this will most likely give a list of interfaces some of which will be repeated.  If the interface is listed more than once then i would like to remove the
        repeated interface.  (note i am not concerned about the outgoing interface)
    3)using the above information i would then like to make configuration to the interfaces with the following commands
         #config t
         #interface $intf
         #no mls qos vlan-based
         #mls qos trust dscp
    i have started this script (please see attached file) and would really appreciate some assistance especially with how to eliminate multiple instances of the same interface.
    thanks!!

    I am having issues running scripts on my 3750x.  One of the few commands i am getting to work is the
    router(tcl)#puts "testing this command"
    most all other commands are not working for example:  ios_config, set
    I am attaching a file with more details.  Any help would be greatly appreciated!

  • Show policy-map interface | Question about QOS show command output

    I hope this is the correct place for this question. If not, please let me know.
    When I issue the show policy-map interface command (in this case on a  3845) there is some output I don't understand.  I have included some output below and formatted the lines I am confused about as "computer code" which show up as red on my screen.  A list of the individual lines i'm confused about is below, followed by those liens in the context of the show policy-map command's output.
    Any help with this will be greatly appreciated. Thanks in advance.
    5 minute offered rate 46000 bps, drop rate 0 bps
     5 minute rate 10000 bps
     bandwidth remaining 50% (768 kbps)
    show policy-map interface
    --- previous output omitted ---
    GigabitEthernet0/0
      Service-policy input: QoS_IN
    class-map: Silver (match-any)
          164691299 packets, 23570752398 bytes
          5 minute offered rate 46000 bps, drop rate 0 bps
          Match: access-group name MAINFRAME
            4371992 packets, 2311242335 bytes
            5 minute rate 0 bps
          Match: access-group name KRONOS
            13334297 packets, 3051409140 bytes
            5 minute rate 5000 bps
          Match: access-group name EMAIL
            97652823 packets, 10323856470 bytes
            5 minute rate 10000 bps
          Match: access-group name VOIP-CONTROL
            20782858 packets, 1481676784 bytes
            5 minute rate 0 bps
          Match: access-group name LOGIXWEB
            0 packets, 0 bytes
            5 minute rate 0 bps
          Match: access-group name GRINDLOG
            0 packets, 0 bytes
            5 minute rate 0 bps
          Match: access-group name CITRIX
            46895 packets, 14669179 bytes
            5 minute rate 0 bps
          Match: access-group name CORP_WEB
            28502414 packets, 6387897396 bytes
            5 minute rate 4000 bps
          QoS Set
            dscp af31
              Packets marked 164691269
    show policy-map interface s0/0/0:0
    Serial0/0/0:0
      Service-policy output: QoS_OUT
    --- previous output omitted ---
        Class-map: Silver (match-any)
          86590227 packets, 12051546524 bytes
          5 minute offered rate 3000 bps, drop rate 0 bps
          Match: access-group name MAINFRAME
            7641084 packets, 2701232492 bytes
            5 minute rate 0 bps
          Match: access-group name KRONOS
            6975052 packets, 1555404656 bytes
            5 minute rate 0 bps
          Match: access-group name EMAIL
            58438150 packets, 5433636586 bytes
            5 minute rate 3000 bps
          Match: access-group name VOIP-CONTROL
            355083 packets, 41252455 bytes
            5 minute rate 0 bps
          Match: access-group name LOGIXWEB
            0 packets, 0 bytes
            5 minute rate 0 bps
          Match: access-group name GRINDLOG
            0 packets, 0 bytes
            5 minute rate 0 bps
          Match: access-group name CITRIX
            19 packets, 4967 bytes
            5 minute rate 0 bps
          Match: access-group name CORP_WEB
            13180836 packets, 2320015236 bytes
            5 minute rate 0 bps
          Queueing
          queue limit 64 packets
          (queue depth/total drops/no-buffer drops) 0/18156/0
          (pkts output/bytes output) 86421413/12004278837
          bandwidth remaining 50% (768 kbps)

    this is my configuration
    DGMGRL> show configuration
    Configuration
    Name: matrix
    Enabled: YES
    Protection Mode: MaxPerformance
    Databases:
    stdby1 - Primary database
    stdby2 - Physical standby database
    stdby3 - Physical standby database
    Fast-Start Failover: DISABLED
    Current status for "matrix":
    SUCCESS
    --- this is my first successful switchover -----
    DGMGRL> switchover to stdby2
    Performing switchover NOW, please wait...
    New primary database "stdby2" is opening...
    Operation requires shutdown of instance "stdby1" on database "stdby1"
    Shutting down instance "stdby1"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "stdby1" on database "stdby1"
    Starting instance "stdby1"...
    ORACLE instance started.
    Database mounted.
    Switchover succeeded, new primary is "stdby2"
    -------------------this is my second switchover -------------
    DGMGRL> switchover to stdby1
    Performing switchover NOW, please wait...
    New primary database "stdby1" is opening...
    Operation requires shutdown of instance "stdby2" on database "stdby2"
    Shutting down instance "stdby2"...
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    Operation requires startup of instance "stdby2" on database "stdby2"
    Starting instance "stdby2"...
    Unable to connect to database
    ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
    Failed.
    You are no longer connected to ORACLE
    Please connect again.
    Unable to start instance "stdby2"
    You must start instance "stdby2" manually
    Switchover succeeded, new primary is "stdby1"
    DGMGRL>
    Edited by: user6981287 on Jan 7, 2010 12:57 AM
    Edited by: user6981287 on Jan 7, 2010 1:00 AM

  • Understanding 7-Mode 'license show' command output

    What does the "-"/hyphen/dash mean in the Expiration field? How does one determine the current expiration of installed licenses based on this output? Package           Type    Description           Expiration
    NFS               license NFS License           -
    CIFS              license CIFS License          -
    FCP               license FCP License           -
    SnapRestore       license SnapRestore License   -
    SnapMirror        license SnapMirror License    -
    FlexClone         license FlexClone License     -
    SnapVault         license SnapVault License     - These services are currently active and in use yet, the Expiration field doesn't appear to reflect that we are licensed for them. I would expect it to at least say something other than the current output. This is confusing when trying to troubleshoot a potential licensing issue. Thank you in advance. I greatly appreciate it!

     Flippin Mango - Those are licenses with no expiration date, hence the blank field.See also the license command man page https://library.netapp.com/ecmdocs/ECMP1511537/html/man1/na_license.1.htmlThe only time I've seen expiration dates listed is when I've given a customer a temporary demo license for a feature.We also use temp license keys for lab excercises in the NetApp classes we teach. Noticed your login name.Had to share that my home in the US is in Flippin, Arkansas. : )
    I hope this response has been helpful to you.
    At your service,
    Eugene E. Kashpureff, Sr.
    Independent NetApp Consultant http://www.linkedin.com/in/eugenekashpureff
    Senior NetApp Instructor, IT Learning Solutions http://sg.itls.asia/netapp
    (P.S. I appreciate 'kudos' on any helpful posts.) 

  • Can i amalgamate two apple accounts into one?  I had one for itunes years ago and created a new one when I got my iphone recently.

    I have two apple IDs, one I created years ago for itunes and another I just created for my new iPhone 4S.  Is there a way to merge the two accounts into one?

    "Is there a way to merge the two accounts into one?"
    No.
    Why did you create a new one?
    Just change the e-mail address associated with the original.

Maybe you are looking for

  • Oracle 8.1.7/9iAS installation problem on IBM AIX 5.1 - loadext fails

    Dear colleagues, tried to install Oracle 8.1.7 and then Oracle 9iAS over AIX 5.1 on IBM eServer p-series. The installation fails in the very beginning - loadext for post-wait Kernel Extension (/etc/pw-syscall) fails with 'exec format error'. Document

  • SQL Server Import and Export Wizard Issue

    i am trying to export SQL data into excel to send out weekly reports.  I have created a view and a SQL account has access to this view; however, I am unable to successfully export the data.  In preview I see all of the data yet it fails on the Pre-ex

  • Mac pro losing internal drives after GPU upgrade

    I've recently added a PC style 3GB graphics card (NVIDIA GeForce GTX 660) to my early 2008 8 core mac pro. Apart from living without the boot logo, this has worked very nicely... But since then I've had some clicking/chirping noises, especially when

  • Convert IPv4 address to IPv6 subnet on AD Sites

    Hi, We currently run IPv4 on our network. However, it looks like it's recommended to enable IPv6 on DFS servers according to this: http://blogs.technet.com/askds/archive/2009/10/28/dfs-referrals-and-ipv6-outta-site.aspx I'm having trouble creating an

  • DoXSLTransformForDoc multiple sources

    Hi all ! How use doXSLTransformForDoc function in bpel 2.0 correctly with multiple input sources ? BPEL : 1.1 <assign name="Transform1"> <bpelx:annotation> <bpelx:pattern>transformation</bpelx:pattern> </bpelx:annotation> <copy> <from expression="ora