EEM CLI command not running

Hi guys,
I have an issue with an EEM applet that I have configured. Part of the applet is to run a kron occurrence. I know the applet is executing by viewing event manager history, but when I then run show kron schedule, the kron job is not set to run.
If I manually input the same CLI commands, the schedule starts without issue.
The config for the applet is below:
event manager applet RESTORED
event track 100 state up
action 1.0 cli command "enable"
action 1.1 cli command "conf t"
action 1.2 cli command "kron occurrence MONITOR in 0:10"
action 1.3 cli command "policy-list MONITOR"
action 1.4 syslog msg "ATTENTION:THE CCT HAS RESTORED"
exit
Any help with this would be greatly appreciated.
Thanks
Scott

I have debugged event manager action cli, and discovered that the reason the CLI commands are not taking is that aaa (tacacs) is applied to this router, so when the system attempts to enter commands, command authorisation is failing.
*Jul 15 15:14:26.245: %TRACKING-5-STATE: 100 interface Lo100 ip routing Up->Down
*Jul 15 15:14:26.261: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : CTL : cli_open called.
*Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : CC
*Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT :
*Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT :
*Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : This is a test router for SNMP traps
*Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT :
*Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT :
*Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : WAKE-ANT-TEST-RTR>
*Jul 15 15:14:26.269: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : IN  : WAKE-ANT-TEST-RTR>enable
*Jul 15 15:14:26.281: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : WAKE-ANT-TEST-RTR#
*Jul 15 15:14:26.281: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : IN  : WAKE-ANT-TEST-RTR#conf t
*Jul 15 15:14:26.497: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : Command authorization failed.
*Jul 15 15:14:26.497: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT :
*Jul 15 15:14:26.497: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : WAKE-ANT-TEST-RTR#
*Jul 15 15:14:26.497: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : IN  : WAKE-ANT-TEST-RTR#no kron occurrence MONITOR in 0:03
*Jul 15 15:14:26.513: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT :                      ^
*Jul 15 15:14:26.513: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : % Invalid input detected at '^' marker.
*Jul 15 15:14:26.513: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT :
*Jul 15 15:14:26.513: %HA_EM-6-LOG: DWNBT : DEBUG(cli_lib) : : OUT : WAKE-ANT-TEST-RTR#
Does anyone out there know if its possible for EEM to authenticate against aaa?
I did try adding a "login" command after
action 1.0 cli command "enable", but this failed authorisation also.
Thanks
Scott

Similar Messages

  • OSCommand ODI Command not running on Agent

    Hello,
    I have a simple .bat file I need to kick off in ODI. When I run it with local service(no agent) it runs fine but when I try to run it under my (installed as a service )agent it fails with the generic error "wrong process return code"
    I have changed the properties of the service and specified to log on as administrator but it still fails.
    any ideas?
    Thanks
    Kind regards,
    Caoimhe
    Edited by: user9213000 on Dec 15, 2010 8:26 AM

    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ QtADB
    bash: QtADB: command not found
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ ./QtADBbash: ./QtADB: No such file or directory
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ sh ./QtADB
    ./QtADB: ./QtADB: cannot execute binary file
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ sh QtADB
    QtADB: QtADB: cannot execute binary file
    user-arch@archusrxpc /home/@solushome/user-solus/QtADB-cwm_edition $ ls -l
    σύνολο 2940
    -rw-rw-r-- 1 user-arch 1000    5259 Απρ  13  2012 Changes.txt
    -rw-rw-r-- 1 user-arch 1000   25330 Ιούν 26  2012 debug.log
    -rwxrwxr-x 1 user-arch 1000 2970612 Απρ  13  2012 QtADB
    drwxr-xr-x 1 user-arch 1000       0 Ιούν 26  2012 tmp
    drwxrwxr-x 1 user-arch 1000     366 Μάρ  13  2012 tools
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $
    Last edited by dancer69 (2013-01-17 18:30:23)

  • Basic commands not running

    Dear All,
    Only after installing Lion, the Terminal now claims
    that "man: command not found"
    "ssh: command not found"  (remote login enabled)
    I've also realised some missing environment variables
    echo $PATH just returns /bin
    Regards
    El

    Well, it's alright that those missing files do not exist. The command I provided would try to find files that could possibly be changing the PATH variable. And it did! Log on to the problem account "thestudio" and move /Users/thestudio/.bash_profile ->
    /bin/mv /Users/thestudio/.bash_profile /Users/thestudio/bash_profile
    Quit the Terminal.app then reopen it. Now try->
    echo $PATH

  • Command not running successfully

    I am installing Weblogic and got to the point where I needed to deconfigure my database on a Windows server 2008. I have to run the following command to deconfigure the database - /bin/emca -deconfig dbcontrol db -repos drop
    but anytime I run that command, I get "The system cannot find the path specified" error. I know the path exists. I actually cd into the oracle home location and can see /BIN/ and emca in there but I constantly get the same error. Help is needed.

    these do not work either may be I'm doing something wrong. I open the command line and type 'id' and get "id is not recognized as an internal or external command, operable pro9gram or batch file.
    I also type 'id env | sort" and get a similar error message as above

  • SQL describe command not running in JSP

    Hello All,
    i hope u all will be enjoying ur lives :)
    i have a problem that when i run the SQL describe command it gives me the error that Invalid SQL Statement...
    the command syntax is
    desc tablename; OR describe tablename;
    and i am doing it like that
    ResultSet rs = stmt.executeQuery("describe CF");
    where CF is the name of table..
    actually what i want to do is get the columns and its datatypes dynamically.. means that i want i get all the tables first from database then whichever table i select i can display its records and also add delete and modify the records...
    if anyone have already code of this ..please email me at
    [email protected]
    i will be very very thank ful for that..
    otherwise tell me the solution of the above problem :(
    thanx in advance
    RANA

    You can get all the information about the table using the meta data. Run a dummy query (I don't think it even needs to return any results), and then grab the meta data
    from the result set:
    ResultSet rs = null;
    ResultSetMetaData rsmd;
    int numcolumns = 0;
    Vector field = new Vector();
    rs = statement.executeQuery( "select * from mytable where field='nevermatchme'");
    rsmd = rs.getMetaData();
    numcolumns = rsmd.getColumnCount();
    for ( int i = 1 ; i <= numcolumns ; i++ ) {
    field.add( rsmd.getColumnName(i) );
    You now have a Vector with one element per database field, each containing a String of that fields name. I believe it is also possible to get field
    type, etc also the MetaData.

  • Interactive CLI commands

    I'm quite new to EEM, so please bear with me.
    How can I handle interactive CLI commands. I want a script that detects when a configuration change has been made, and then copies the running configuration to a TFTP server.  This is what I have tried:
    event manager applet Configured
    event syslog pattern ".*%SYS-5-CONFIG_I.*"
    action 10 cli command "enable"
    action 20 cli command "copy run tftp"
    action 30 gets response
    action 40 puts "MyTFTPServer"
    action 50 gets response
    action 60 puts "MyRtr.run"
    action 70 end
    All that happens is:
    No.  Job Id Proc Status  Time of Event            Event Type        Name
    1    1      Actv abort    Mon May14 13:53:35 2012  syslog            applet: Configured
    2    2      Actv abort    Mon May14 13:53:46 2012  syslog            applet: Configured
    3    3      Actv abort    Mon May14 14:01:32 2012  syslog            applet: Configured
    4    4      Actv abort    Mon May14 14:02:11 2012  syslog            applet: Configured
    5    5      Actv abort    Mon May14 14:05:01 2012  syslog            applet: Configured
    6    6      Actv abort    Mon May14 14:06:18 2012  syslog            applet: Configured
    7    7      Actv abort    Mon May14 14:08:49 2012  syslog            applet: Configured
    (You see how many times I have tried to get it working ;-)  The problem seems to be the interactivity of the "copy run tftp" command.
    Can someone give me some guidance please?
    Kevin Dorrell
    Luxembourg

    OK, I got it
    event manager applet Configured
    event syslog pattern ".*%SYS-5-CONFIG_I."
    action 10 cli command "enable"
    action 20 cli command "copy run tftp" pattern "Address or name of remote host.*"
    action 30 cli command "MyTFTPServer" pattern "Destination filename.*"
    action 40 cli command "MyRtr.run"
    Kevin Dorrell
    Luxembourg

  • Cli commands

    I am looking a cli command to run ut custom report with custom layout. currently I am using cli for generate report with custom layout but now I want include custom report. here my current command
    /opt/CSCOpx/campus/bin/ut -u USER -p PASS -cli -query all -layout YELLOW. where I should add my custom report name "red" ? next to -query instead of "all" add "red" is that working or something different. Thanks, Paul

    Instead of "-query all" you would use your custom query name.  For example, "-query RED".

  • 28xx/12.4(25b) - Not able to append EEM CLI output to flash

    Hi,
    I am trying to use EEM on a 2800 running 12.4(25b) Adv IP,  to capture some output, when a particular syslog message is seen. When the syslog is seen, EEM runs but bails out, since it cannot write to flash.
    router#sh ver | i IOS
    Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 12.4(25b), RELEASE SOFTWARE (fc1)
    router#
    My EEM policy:
    event manager applet EEM-TEST
    event syslog pattern "TRACKING-5-STATE: 1 rtr 999999 state Up->Down"
    action 1.0 cli command "enable"
    action 2.0 cli command "ping 4.2.2.2 source Loopback0 | append flash:EEM"
    action 3.0 cli command "traceroute 4.2.2.2 source Loopback0 | append flash:EEM"
    action 4.0 cli command "ping 4.2.2.2 | append flash:EEM"
    action 5.0 cli command "traceroute 4.2.2.2 | append flash:EEM"
    action 6.0 cli command "more flash:EEM.txt"
    When the event occurs, I see the event in below command, which confirms EEM runs:
    router#sh event manager history events detailed
    Load for five secs: 7%/1%; one minute: 8%; five minutes: 9%
    Time source is NTP, 14:54:44.748 PDST Mon Aug 29 2011
    No.  Time of Event             Event Type          Name
    1    Sun Aug28  22:07:08 2011  syslog              applet: EEM-TEST
    msg {Aug 28 22:07:08.063: %TRACKING-5-STATE: 1 rtr 999999 state Up->Down}
    2    Sun Aug28  22:09:38 2011  syslog              applet: EEM-TEST
    msg {Aug 28 22:09:38.067: %TRACKING-5-STATE: 1 rtr 999999 state Down->Up}
    3    Mon Aug29  04:06:39 2011  syslog              applet: EEM-TEST
    msg {Aug 29 04:06:39.943: %TRACKING-5-STATE: 1 rtr 999999 state Up->Down}
    4    Mon Aug29  09:36:41 2011  syslog              applet: EEM-TEST
    msg {Aug 29 09:36:41.057: %TRACKING-5-STATE: 1 rtr 999999 state Down->Up}
    5    Mon Aug29  12:24:11 2011  syslog              applet: EEM-TEST
    msg {Aug 29 12:24:11.675: %TRACKING-5-STATE: 1 rtr 999999 state Up->Down}
    6    Mon Aug29  14:26:37 2011  syslog              applet: EEM-TEST
    msg {Aug 29 14:26:37.162: %TRACKING-5-STATE: 1 rtr 999999 state Down->Up}
    7    Mon Aug29  14:30:12 2011  syslog              applet: EEM-TEST
    msg {Aug 29 14:30:12.167: %TRACKING-5-STATE: 1 rtr 999999 state Up->Down}
    8    Mon Aug29  14:37:12 2011  syslog              applet: EEM-TEST
    msg {Aug 29 14:37:12.176: %TRACKING-5-STATE: 1 rtr 999999 state Up->Down}
    9    Mon Aug29  14:44:12 2011  syslog              applet: EEM-TEST
    msg {Aug 29 14:44:12.186: %TRACKING-5-STATE: 1 rtr 999999 state Up->Down}
    10   Mon Aug29  14:48:42 2011  syslog              applet: EEM-TEST
    msg {Aug 29 14:48:42.192: %TRACKING-5-STATE: 1 rtr 999999 state Up->Down}
    router#
    I did a "debug event manager action cli" and see below, which explains why flash does not have a 'EEM' file created:
    Aug 29 14:48:42.192: %TRACKING-5-STATE: 1 rtr 999999 state Up->Down
    Aug 29 14:48:42.196: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : CTL : cli_open called.
    Aug 29 14:48:42.196: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : IN  :
    Aug 29 14:48:42.208: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT :
    Aug 29 14:48:42.208: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT : router>
    Aug 29 14:48:42.208: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT : router>
    Aug 29 14:48:42.208: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT : router>
    Aug 29 14:48:42.208: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : IN  : >enable
    Aug 29 14:48:42.220: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT :
    Aug 29 14:48:42.220: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT : router#
    Aug 29 14:48:42.220: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : IN  : #ping 4.2.2.2 source Loopback0 | append flash:EEM
    Aug 29 14:48:42.232: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT :                                                                                       ^
    Aug 29 14:48:42.232: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT : % Invalid input detected at '^' marker.
    Aug 29 14:48:42.232: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT :
    Aug 29 14:48:42.232: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT : router#
    Aug 29 14:48:42.232: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : IN  : #traceroute 4.2.2.2 source Loopback0 | append flash:EEM
    Aug 29 14:48:42.244: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT :                                                                                                 ^
    Aug 29 14:48:42.244: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT : % Invalid input detected at '^' marker.
    Aug 29 14:48:42.244: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT :
    Aug 29 14:48:42.244: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT : router#
    Aug 29 14:48:42.244: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : IN  : #ping 4.2.2.2 | append flash:EEM
    Aug 29 14:48:42.260: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT :                                                       ^
    Aug 29 14:48:42.260: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT : % Invalid input detected at '^' marker.
    Aug 29 14:48:42.260: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT :
    Aug 29 14:48:42.260: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT : router#
    Aug 29 14:48:42.260: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : IN  : #traceroute 4.2.2.2 | append flash:EEM
    Aug 29 14:48:42.272: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT :                                                                ^
    Aug 29 14:48:42.272: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT : % Invalid input detected at '^' marker.
    Aug 29 14:48:42.272: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT :
    Aug 29 14:48:42.272: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT : router#
    Aug 29 14:48:42.272: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : IN  : #more flash:EEM.txt
    Aug 29 14:48:42.288: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT :
    Aug 29 14:48:42.288: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT : %Error opening flash:EEM.txt (File not found)
    Aug 29 14:48:42.288: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : OUT : router#
    Aug 29 14:48:42.288: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : IN  : #exit
    Aug 29 14:48:42.288: %HA_EM-6-LOG: EEM-TEST : DEBUG(cli_lib) : : CTL : cli_close called.
    router#
    Looks like parser does not like the flash:EEM part. I don't know why.
    Some information on the file system and flash:
    router#sh file systems
    Load for five secs: 5%/1%; one minute: 7%; five minutes: 8%
    Time source is NTP, 14:39:27.976 PDST Mon Aug 29 2011
    File Systems:
         Size(b)     Free(b)      Type  Flags  Prefixes
               -           -    opaque     rw   archive:
               -           -    opaque     rw   system:
               -           -    opaque     rw   null:
               -           -   network     rw   tftp:
    *   64016384    16502784      disk     rw   flash:#
          245752      143748     nvram     rw   nvram:
               -           -    opaque     wo   syslog:
               -           -    opaque     rw   xmodem:
               -           -    opaque     rw   ymodem:
               -           -   network     rw   rcp:
               -           -   network     rw   pram:
               -           -   network     rw   ftp:
               -           -   network     rw   http:
               -           -   network     rw   scp:
               -           -   network     rw   https:
               -           -    opaque     ro   cns:
    router#show flash: all    
    Load for five secs: 6%/1%; one minute: 8%; five minutes: 9%
    Time source is NTP, 14:54:13.851 PDST Mon Aug 29 2011
    -#- --length-- -----date/time------ path
    1     38187152 Jan 27 2010 17:17:40 -08:00 c2800nm-advipservicesk9-mz.124-25b.bin
    2         1826 Aug 22 2006 12:55:44 -07:00 sdmconfig-28xx.cfg
    3      4734464 Aug 22 2006 12:56:10 -07:00 sdm.tar
    4       833024 Aug 22 2006 12:56:26 -07:00 es.tar
    5      1052160 Aug 22 2006 12:56:44 -07:00 common.tar
    6         1038 Aug 22 2006 12:57:00 -07:00 home.shtml
    7       102400 Aug 22 2006 12:57:16 -07:00 home.tar
    8       491213 Aug 22 2006 12:57:34 -07:00 128MB.sdf
    9      1684577 Aug 22 2006 12:58:02 -07:00 securedesktop-ios-3.1.1.27-k9.pkg
    10      398305 Aug 22 2006 12:58:22 -07:00 sslclient-win-1.1.0.154.pkg
    11        4039 Sep 18 2006 14:03:12 -07:00 running-config
    12         660 Jan 14 2009 16:46:34 -08:00 vlan.dat
    16502784 bytes available (47513600 bytes used)
    ******** ATA Flash Card Geometry/Format Info ********
    ATA CARD GEOMETRY
       Number of Heads:       8    
       Number of Cylinders    490  
       Sectors per Cylinder   32   
       Sector Size            512  
       Total Sectors          125440
    ATA CARD FORMAT
       Number of FAT Sectors  62   
       Sectors Per Cluster    8    
       Number of Clusters     15629
       Number of Data Sectors 125301
       Base Root Sector       231  
       Base FAT Sector        107  
       Base Data Sector       263  
    ATA MONLIB INFO
       Image Monlib size = 61400
       Disk monlib size = 54784
       Name = piptom-atafslib-m
       Monlib Start sector = 2
       Monlib End sector = 100
       Monlib updated by = C2800NM-IPBASE-M12.3(8)T8
       Monlib version = 1
    router#
    Thanks
    Shimol

    Hi,
    Is there an EEM file present on flash?
    I'm just guessing but it seems as though you would need to do something along the lines of:
    Original
    action 2.0 cli command "ping 4.2.2.2 source Loopback0 | append flash:EEM"
    Proposed
    action 1.9 cli command "delete /force flash:EEM"
    action 2.0 cli command "ping 4.2.2.2 source Loopback0"
    action 2.1 cli command "more $_cli_result | append flash:EEM"
    Again, just a guess.
    Thanks!
    Addendum:
    It is not possible to "more" a variable nor can you pipe ping.  So to achieve the desired result you will need to use Tcl.  When EEM 4.0 is released there may be some additional file manipulation abilities.

  • EEM script not running in WS-C4900M switch

    Hello,
    I am having  two WS-C4900M switches which were giving high cpu spikes hence we have configured EEM script in it to capture switch behaviour during cpu spikes.when  CPU goes high script do get hit but the commands under script doesn't run and we are not able fecth command outputs during high cpu.
    Pleas find script uploaded and show version of switch attached.

    I don't think you need a script for this.  An applet should work just fine.  This kind of thing is commonly done by TAC to aid in data collection for transient problems.  This policy should work provided the CPU instance is correct.  A 7600 will have at least two CPUs.  This applet assumes CPU instance 1 is the desired CPU, but it may be CPU instance 2 you need to monitor.
    event manager applet watch-cpu event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.11.1 get-type exact entry-op ge entry-val 90 exit-op lt exit-val 90 poll-interval 60 maxrun 300 action 1.0 cli command "enable" action 1.1 cli command "term exec promp time" action 2.0 cli command "show tech | append disk0:/high_cpu.txt" action 3.0 cli command "sh ip bgp vpnv4 vrf VRF10102 neighbors | append disk0:/high_cpu.txt" action 4.0 cli command "sh bgp vpnv4 unicast vrf VRF10102 summary | append disk0:/high_cpu.txt" action 5.0 cli command "sh ip  bgp vpnv4 vrf VRF10102 neighbors x.x.x.x advertised-routes | append disk0:/high_cpu.txt" action 6.0 cli command "sh ip  bgp vpnv4 vrf VRF10102 neighbors x.x.x.x received-routes | append disk0:/high_cpu.txt" action 7.0 cli command "sh isis neighbors detail | append disk0:/high_cpu.txt" action 8.0 cli command "show logg | append disk0:/high_cpu.txt"

  • Shell Commands not found error when running application

    Hello,
    Im using MonoDevelop IDE in my Mac, before it used to work fine but after few days, now when I'm opening the application nothing happens., i checked the Console  for the log and it says this
    May  9 21:29:39 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x52052].com.ximian.monodevelop[1510]: /Applications/MonoDevelop.app/Contents/MacOS/monodevelop: line 17: dirname: command not found 
    May  9 21:29:39 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x52052].com.ximian.monodevelop[1510]: /Applications/MonoDevelop.app/Contents/MacOS/monodevelop: line 31: //mono-version-check: No such file or directory
    May  9 21:29:39 Sri-Vishnu-Totakuras-MacBook-Pro com.apple.launchd.peruser.501[599] ([0x0-0x52052].com.ximian.monodevelop[1510]): Exited with code: 1
    I thought may be some error with the "dirname" command, so i commented it in the code and gave the path of directory myself and then the console shows up like this.
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 19: grep: command not found 
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 19: cut: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 20: cut: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 21: cut: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 22: cut: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 31: osascript: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: Cannot launch MonoDevelop
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: MonoDevelop requires the Mono Framework version 2.10.4 or later.
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro com.apple.launchd.peruser.501[599] ([0x0-0x56056].com.ximian.monodevelop[1532]): Exited with code: 1
    I opened the contents of the application and run the shell script for opening aplication there it worked very fine and application started working.. But if i open application directly through launchpad or finder it doesnt show up and console
    I tried running those commands in the terminal directly there they work.. But dunno whats wrong in here. and even if try to open the application through the terminal it all opens fine.. what could be the possible problem, is it with my mac..?

    i finally figured out the problem.. it is with the environmental variables.  the path for all those commands like "grep" is not being set for the GUI applications.  that is why i got that error. 
    for those GUI applications which require path, we have to set path in the file /etc/launchd.conf  the environmental variables set in here are used by the gui applications and those which are launched through spotlight.
    that file may bot be present in most of the macs. No problem even if not present,we can create one and use.
    so  type in terminal
              $ sudo vi /etc/launchd.conf     
    and in the editor add these lines
              setenv PATH = /new/path
    and save.  Note: replace /new/path with the path which you need to have for the commands used in the script.
    remeber that you need to restart your mac for applications to use these environmental variables.

  • Command not found on running binary files.

    I have a very strange problem with my new arch installation, which I never faced on other linux installations/distros.
    I'm trying to execute binary files from android-sdk, which I have them from other distros and always worked, and I get always "command not found" message. For e.g I tried to run adb(5 different files from different places), from terminal and from the folder in which is each and all times I get "command not found" message.
    Some other work though, as eclipse binary. All files I've tried worked fine, and also work fine if I run them from Ubuntu installation.
    I had this problem and for some newly isntalled packages too, as packagkit, and rutorrent. Packagekit worked after a reboot, but rutorrent gives same message.
    Any help?

    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ QtADB
    bash: QtADB: command not found
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ ./QtADBbash: ./QtADB: No such file or directory
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ sh ./QtADB
    ./QtADB: ./QtADB: cannot execute binary file
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $ sh QtADB
    QtADB: QtADB: cannot execute binary file
    user-arch@archusrxpc /home/@solushome/user-solus/QtADB-cwm_edition $ ls -l
    σύνολο 2940
    -rw-rw-r-- 1 user-arch 1000    5259 Απρ  13  2012 Changes.txt
    -rw-rw-r-- 1 user-arch 1000   25330 Ιούν 26  2012 debug.log
    -rwxrwxr-x 1 user-arch 1000 2970612 Απρ  13  2012 QtADB
    drwxr-xr-x 1 user-arch 1000       0 Ιούν 26  2012 tmp
    drwxrwxr-x 1 user-arch 1000     366 Μάρ  13  2012 tools
    user-arch@archusrpc /home/@solushome/user-solus/QtADB-cwm_edition $
    Last edited by dancer69 (2013-01-17 18:30:23)

  • Mdt 2012 sp1 command line does not run from task sequence

    Hi,
    I am hoping I can explain this correctly.  I am using MDT 2012 and having an issue with running command lines, powershell and batch files that I setup.
    The task sequence is set to use an account called "MDTService".  it has rights to join the domain but is not in the local admin group of the reference image.  a domain GPO renames the local admin account CoAdmin.
    when running a command line to, for example, run xcopy a folder and subdirectories to the "program Files x86" directory, it does not copy.
    When I log on to the system and use an admin account to manually run the command I do not have an issue.  if I log onto the system with the MDTService user and run it, it fails.
    How do I get the commands to run from the MDT task sequence?  I do not want to make the MDTService user an admin.  I have tried the run as option in the task sequence but that did not work.  maybe is set it wrong.  I used a domain\Admin
    account which did not work.
    what can I clarify or logs can I post to provide more details.
    Thanks in advance.

    Any account that needs to add files under %ProgramFilesx86% must be granted administrative privileges.
    Keith Garner - keithga.wordpress.com

  • Could not run the script. This command requires an active document.

    Hi,
    I'm receiving a confusing glitch running a batch process in
    FW MX 2004.
    I want to resize images in one folder and export them to
    another. I step through the batch wizard and on commencement of the
    batch receive an error:
    quote:
    Could not run the script. This command requires an active
    document.
    FW is telling me it can't run the commands on empty
    documents, yet the batch is running on all images selected using
    Add All during the batch wizard. Confusing. Similar batches have
    worked fine in recent days.
    Any ideas?
    Thx

    tkatcher wrote:
    > Thank you. Some of them had brackets and percentage
    marks.
    You are welcome.
    E. Michael Brandt
    www.divahtml.com
    www.divahtml.com/products/scripts_dreamweaver_extensions.php
    Standards-compliant scripts and Dreamweaver Extensions
    www.valleywebdesigns.com/vwd_Vdw.asp
    JustSo PictureWindow
    JustSo PhotoAlbum, et alia

  • On board program does not run the motor to new positions yet commands to state of digital I/O in the same program line.

    I am controlling a stepper motor position via a PIC-7342 board. This part of the program has worked in the past. I have another program that does almost the same thing and it works as always. 
    The program sets the speed and accelerations, then sets a position and tell the motor to run to the position. Then it sets a communication bit through the MCS register. Then it sets a new position and command the motor to run to the new position. It then delays a short time and commands an output to turn on. Then it sets a new position and commands the motor to run to the new position. After each command to run there is a wait for motion complete.  The code used to work correctly.  Now the motor runs to the first position and proceeds no further.  The finial position is sometimes a couple of steps past the setpoint, which is very unusual. The digital output is fired like the second position has been reached, even though the motor has not moved to the position. The actual path for the motor is clear, so there is not mechanical reason for the problem.  How would you troubleshoot an on board program?

    ITElearner,
    What has changed since you last ran your system?  Can you move the motor in Measurement & automation explorer?  Are you getting any errors?  Is this program written in LabVIEW?  You may also find the following useful:
    Configuring a Motion Control System
    http://zone.ni.com/devzone/cda/tut/p/id/3126
    Configure and Test a Stepper Motor
    http://digital.ni.com/public.nsf/allkb/9675C83F037​811F68625727C0002A4A5?OpenDocument
    Regards,
    Sam K
    Applications Engineer
    National Instruments
    www.ni.com/support

  • Brand new 2960X and 2960XR not responding to cli commands

    I have 2 brand new 2960X switches and neither are responding to cli commands via the RJ45 to DB9 cisco cable.  Text is displayed but when I hit enter on the keyboard nothing happens and the switches just sit at whatever the last boot ouput is. 2960-XR just sits at 'vlan1, changed state to up.....' and I am never prompted for the express setup and no response to any keyboard input. 
    I know the cable/keyboard works because I can connect it to a 2911 right beside the 2960's and have no problems using the same cable. 
    Anyone seen this before?
    Cisco IOS Software, C2960X Software (C2960X-UNIVERSALK9-M), Version 15.0(2)EX1, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2013 by Cisco Systems, Inc.
    Compiled Fri 28-Jun-13 13:20 by prod_rel_team
    Nov 22 10:49:54.277: %USB_CONSOLE-6-MEDIA_RJ45: Console media-type is RJ45.
    Nov 22 10:49:55.602: %LINK-3-UPDOWN: Interface FastEthernet0, changed state to down
    Nov 22 10:49:56.493: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/47, changed state to up
    Nov 22 10:49:56.493: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/48, changed state to up
    Nov 22 10:49:58.370: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/47, changed state to up
    Nov 22 10:49:58.412: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/48, changed state to up
    Nov 22 10:49:58.450: %PLATFORM_ENV-1-FAN_NOT_PRESENT: Fan is not present
    Nov 22 10:50:26.384: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up

    Hello,
    Recieved today also 2 2960-x switches.
    Had the same issue...playing arround with secureCRT settings (rts/cts, xon/xoff etc) ...no results.
    Tried Putty and it worked right away ...indeed strange have never seen this before.
    Installed latest software 150.2ex4  still the same.
    regards michel

Maybe you are looking for

  • Non latin characters in Safari search

    In Safari 6 the search and URL fields are combined. That's fine, except... We can no longer search using non-Latin characters, because the field accepts only Latin characters. I was trying to search for a Japanese term, and when I switch to Hiragana

  • Internet Based Client Management - upgrade clients

    Hi. I have a customer, who wants to deploy an SCCM site and Internet Based clients. Main purpose is to patch manage the clients. I have one concern though - the certificate and client deployment AND the ongoing upgrade of clients. I believe, we will

  • Write java class for adapter

    HI all, I want to write my own java class to be used from an adapter, where should I put the jar file ? - i see that the classes/ jars i can use now located in defaultconnector directory ( the dbum for instance ). how can i add new jar ? to where ? s

  • Songs in computer's playlist not showing up on device

    Can I compare the playlist on the computer to the one on the iPod?--I've only just realized that the list showing up on the computer screen is not the list of songs on the iPod, many of which are missing despite syncing and the fact that there is ava

  • Upload Speed Boost Option for Cable Plans

    There have been multiple posts from other Bigpond users requesting higher upload speeds on their cable services on the Whirlpool Technology forums. It seems today with families sharing even a Telstra Ultimate Cable connection at home, doing various t