Can I use EEM to upload long scripts and run them?`

I asked this question here, on ServerFault, and they guided me to here.
The issue is basic. If I need to run hundreds of al/ag/ng/no commands on a Cisco ASA programmatically, I need to do it via a SSH shell, with the restriction that the ASA will not take a command size greater than 1024 bytes. I take my batch, and find the number of whole lines, as long as they are under 1,000 characters, and send commands like this-effectively "chunking" the batch into smaller pieces. This takes forever.
I am not talking about a replacement config, frequently run commands, or rebooting the AS in any way. I am just talking about making 'hot' modifications remotely via computer program.
I don't know if EEM is the way, but if it can do the following (exactly, or functionally), it is of great interest:
1. A remote client creates a batch file-nothing more than a sequence of commands for the CLI.
2. That batch file makes it's way to the ASA (any number of ways).
3. The commands in the batch are run, in order, as if typed in on the command line.
4. I imagine some sort of feedback would be nice, or even a signal that it is done, etc.
What are your thoughts?
Thank you!
P.S. I am not debating whether it is a good idea or not (unless you have a better way). I am merely asking how it can be done, and if EEM isn't the key, than what else might be?

The ASA doesn't really support EEM.  Yes, there is a now a feature called EEM in 9.2, but it is quite limited compared to IOS.  In IOS, what you want would be possible, but on the ASA, you'll need to do all of your CLI commands off box using something like Expect.  I'm not sure how you're automating this now, but perhaps you are already using Expect.  That would be what I'd likely do in this situation.

Similar Messages

  • Can i use time capsule to backup movies and see them wireless without redirecting my itunes library to the time capsule?

    can i use time capsule to backup movies and see them wireless without redirecting my itunes library to the time capsule?

    It seems the ability to restore from backup discs was removed along with the ability to create them. You will need to temporarily install an older version of iTunes (e.g. 10.3) to recover the media from those discs.
    See Win 7 OS,64 Bit..Going back to ver 10.3 as I wish to use the cdbackup/restore version..I for a previous thread discussing this.
    tt2

  • Can I put apps on an external drive and run them from there?

    I want to know can I put apps downloaded from the Mac App store onto an external hard drive and launch them from there? The storage on my mac is full and I want to put apps onto an external drive to create more space on my mac.

    Bad idea.  See this:
    https://discussions.apple.com/thread/3472949?q=run apps on an external drive
    Ciao.

  • Can I use mp3 files on my computer and put them on an I pod touch?

    I am looking to buy an I pod touch, but I want to know if I can transfer my mp3's from my computer to the I pod. OR do I have to use I Tunes?

    You can use your MP3's and you will have to use itunes to sync them.
    You will need to put the music in itunes.  From there you can sync it to the ipod.

  • I can no longer back-delete or hit return to make a new paragraph, nor can i use the arrows to go backwards and forwards in a line; it's like the fn key is stuck; i've taken it off and cleaned it, and it looked clean.

    I can no longer back-delete or hit return to make a new paragraph, nor can i use the arrows to go backwards and forwards in a line; it's like the fn key is stuck; i've taken it off and cleaned it, and it looked clean.

    Then it's time for a new keyboard.  If you are still under warranty, call AppleCare. 
    For DIY keyboard repair check out the following websites: 
    iFixit 
    YouTube “How To” tutorials.

  • How can I copy 8,000 titles of music from my pc to the new updated ITunes. I can no longer copy and paste them

    I am trying to copy many titles of music from my pc to the latest I Tunes. I can no longer copy and paste them like I used to be able to do. I need serious help here. Any thoughts or resolutions? Frustrated

    See also Repair iTunes Security Permissions and apply the suggested steps to the iTunes folder and the source media folder.
    I may be reading too much into things, but is your media stored in a bunch of folders where each folder represents a playlist? If so my script ImportFolderStructure might be useful to you...
    tt2

  • Can I use AWT elements in a JSP, and so could I generate events with them?

    This is because I�m doing a simple JSP that showing a button, my JSP is:
    <html>
    <%@ page import="java.awt.*" %>
    <%! Button b = new Button("Hola!!!"); %>
    <% add(b); %>
    </html>
    But when I tried to see the button in the browser, my JSP generates the following:
    Compilation of '/RAID5/weblogic/myserver/classfiles/jsp_servlet/_gep/_alterno/_23_mayo/__mr4.java' failed:
    /RAID5/weblogic/myserver/classfiles/jsp_servlet/_gep/_alterno/_23_mayo/__mr4.java:79: cannot resolve symbol
    probably occurred due to an error in /gep/alterno/23_mayo/mr4.jsp line 7:
    <% add(b); %>
    Could somebody help me please?.....
    Can I use AWT elements in a JSP, and so could I generate events with them?
    Thanks!!!

    There are 2 ways to run a web page dynamically:
    1) Reload the page via use of javascript or some other scripting language.
    2) Use an applet to regularly check a URL for the data
    Remember, as Paul pointed out, JSP's only generate HTML output. AWT components need to run inside a JVM not a just the browser.
    I could recommend an applet but you may have problems with IE6 not supporting java. Otherwise there shouldn't be too much of a prob.
    If you prefer to use an AWT/Swing setup (for example an application) rather than a JSP setup, Webstart is good for delivering online applications which operate standalone or remotely.
    When you consider that the Java-Plugin and the Webstart puligin are about the same size it's just a matter of weighing up who your target clients are and whats easiest.
    Cheers,
    Anthony

  • Can I use extension cord of macbook air and connect it to iPad charger

    Can I use extension cord of macbook air and connect it to iPad charger?

    If you mean slide off the nubby plug and use the long cord instead? Then yes.

  • Where can we find the standard program for scripts and smartform for vl02

    where can we find the standard program for scripts and smartform for vl02
    regard,
    anil

    If it is a standard Script Output see that all config in NACE tcode was done correctly and in the Application document the output type was properly defined and attached to a medium, partner and all communication related things like printer name, when to print the output and number of messages etc are entered in the document
    the go to the related application Tcode
    (for sales order goto VA02 or VA03)
    (delivery -VL02N or VL03N)
    for Invoice VF02 or VF03
    for PO -goto ME9F
    enter doc number, Issue Output to -> screen/printer
    then see the output
    step 1 : copy the z layout into testing client thru SCC1.
    step2 : go to se71 and check modified layout.
    step3 : if it is under logistics.. go to TCODE "NACE".
    u will see various applictions for each business process.
    there u have configure ur related layout according to requirments,
    for example u consider for Request fo Quatation..
    there is APPLICATION called "EA"
    click and enter into it. configure it with ur requirments, for help consult with ur functonal consaltant, and save it.
    step 4 : goto tcode ME9A for requst for quatation(RFQ).
    step 5 : enter test data avalable and check it with message display.
    it is same for other applications like Contract agreament --> ME9k
    invoice --> vl02n
    and goes on..
    Reward points for useful Answers

  • I am having trouble logoin  when i am using muse to upload ftp host and its saying invalid login or

    i am having trouble logoin  when i am using muse to upload ftp host and its saying invalid login or password using different hosting provider?

    Hi!
    I'm having the same problem, and the login and password is 100% correct.
    The FTP is propely configured, but Muse are having problem with it. I can login throught a FTP session from a terminal session, and it also works perfectly with FileZilla or another FTP-client.
    I have made some traces througth Wireshark, and it's clear the Muse made a sucessful login. But, fter the login Muse sends a request for UTF8 and gets an answer from the FTP-server that UTF8 is always enabled, and there is no need to send this command. Then Muse sends a TCP ACK, and the packet after Muse sends FIN, ACK. See a snip from the trace below...
    220-/**********************************************************
    220-*
    220-* This is the FTP server of ############.
    220-*
    220-***********************************************************/
    220-
    220----------------------- Begin Notice ------------------------------
    220--
    220-- Be aware that all traffic are logged and unauthorized
    220-- login attempts will result in permanent banning.
    220--
    220 ------------------------ End Notice ------------------------------
    USER ##########
    331 Password required for ##########
    PASS ########
    230 Logged on
    OPTS UTF8 ON
    202 UTF8 mode is always enabled. No need to send this command.
    Muse -> [ACK]
    Muse -> [FIN][ACK]
    FTP-Server <- [ACK]
    FTP-Server <- [FIN][ACK]
    This means that Muse disconnects AFTER a sucessful login, but give the user a faulty message saying "Invalid login or password" and not that Muse has disconnected because of another reason.
    Looking forward for an answer.
    Best regards
    //Leffe

  • How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    No, nothing will prevent the computer from going to sleep when you close its display except third-party hacks that are designed to do exactly that. I strongly advise against using any of those, as they may interfere with successful entry into clamshell mode (and they carry other downside risks as well). Just wait until the computer is asleep (with its sleep light pulsing), then press any key on the keyboard. It sounds as though your setup is working as it's designed to do.

  • Can I use my Ipod on my PC and on my Ibook ?

    Can I use my Ipod on my PC and on my Ibook ? At home I use my Ibook, at work I use a PC, running on XP prof.
    Can I use both computers without changing something on my Ipod.
    I'm a little bit scared to trie it, you never know what happens...
    thanks in advance,
    greeetzzzzzzzz,
    Bart

    Macs will read Windows-formatted iPods, no problem.
    However, Windows PCs won't ready Mac-formatted iPods without extra software, such as xPlay (www.mediafour.com/products/xplay/). So if you want to continue to use the Mac as your iPod's 'home base' you'll need this extra software to use the iPod on both platforms.

  • HT4437 how can i use my labtop on the wed and watch everthing im doing on my tv

    how can i use my labtop on the wed and watch everthing im doing on my tv

    Mirror, if your MBP is early 2011 or later running OSX 10.8 or newer.  If older visit www.airparrot.com, a third party app that works OK, mixed reviews but mine works well.

  • How can I use apple mail (linked to gmail) and get it to only do autofill on the contacts that I have in apple address book?

    How can I use apple mail (linked to gmail) and get it to only do autofill on the contacts that I have in apple address book? Everytime I write an email on the Apple mail app (as well as in Gmail) it recommends a bunch of emails that are not my contacts. I want it to just autofill for the contacts that I have in my address book. Is this possible? Thank you. I have an Imac Intel version and an Iphone 5 phone.

    Mail > Window > Previous Recipients

  • I have two iphone one is iphone 5 and othere is iphone 4 . can i use same id for both ? And do i have to purchase the application again for iphone 4 which i have buyed for iphone 5.??

    i have two iphone one is iphone 5 and othere is iphone 4 . can i use same id for both ? And do i have to purchase the application again for iphone 4 which i have buyed for iphone 5.??

    You can use the same Apple ID for both phones, you would then be able to use the purchased Apps/Content on both phones without having to pay again.

Maybe you are looking for

  • Will not restore or connec to itunes - just get the itunes logo and usb cale display on screen

    ipod touch will not restore or connec to itunes - just get the itunes logo and usb cable display on screen

  • Incorrect result set with using isnull() function  in IQ 16

    Hi team, We have IQ 16 on HP UX. When we use isnull() function in where clause we get incorrect result set if we do not use column name in the result set. In first select we get result with one row but in second one we get an empty result set. select

  • How to change highlight color for menus?

    What controls the highlight color used for Firefox menus? ... like Find, Print and About ... the main menus. I used the Stratiform Plug-in to change my font color to blue and now it's exactly the same as the highlight color ... so highlighting makes

  • Get rid of update?

    I have one update in my App Store for Angry Birds, an app I don't have. How can I get rid of it? Every time I try and buy the app just so the update goes away, it gives me an error message. I know somebody had the same problem as I did in two previou

  • App Store cannot log in

    Hi all, i can see i have 2 Apps that need updating, i log in and i get an error message, "An unknown error has occurred", to start with i thought i had typed in the wrong password, but trying a different password brings up a different error message ?