Interactive command

I wrote a very simple script today... Basically, the idea is to use the command cli_run_interactive to EEM cli library extensions. According to this document

http://www.Cisco.com/en/us/docs/iOS-XML/iOS/EEM/configuration/XE-3SE/5700/EEM-CLI-library-Tcl.PDF

I have to use the: cisco::eem: namespace, I did. Then, again in the same paper I found the command cli_run_interactive which is exactly what I have to, run a command, watch for a predefined command output and respond to this topic, once again in a way predefined. Pretty simple. The script below:

: cisco::eem:event_register_none maxrun 36

import namespace: cisco::eem: *.

import namespace: cisco::lib: *.

Set the 'clear line' 46 cmd1

cmd1_exp1 value {[confirm]}

Set cmd1_rep1 {y}

Set cmd1_response [list [list wait answer $cmd1_exp1 $cmd1_rep1]]

the value of clist [list "$cmd1 order $cmd1_response answers"]

cli_run_interactive {clist}

So far, so good, I save the script:

Runn terminal #show | s event handler

Event Manager user Directorystrategie flash: /.

user of type event manager strategy run_interactive.tcl

The #show event handler registered terminal strategy

N ° class Type Event Type trap time registered name

user 1 script no Off 8 Tue Oct 17:19:04 2013 run_interactive.tcl

PolicyName {run_interactive.tcl}

Nice 0 priority queue normal 36,000 maxrun

But then, when I try to run the script:

Terminal #event Manager run run_interactive.tcl

Name of the command terminal #invalid "cli_run_interactive".

When running

"cli_run_interactive {clist}.

called inside

"$slave $Contents eval.

(procedure "eval_script" line 7)

called inside

"eval_script slave $scriptname.

called inside

"If {$security_level == 1} {#untrusted script.

create an interp - slave

Interp share {stdin slave

Interp share {} stdout slave

..."

(file "system:/lib/tcl/base.tcl" line 50)

Run political MCI failed: invalid command name "cli_run_interactive".

It seems to me that I missed a statement somewhere along the way, but I don't know where and what exactly... Any help is appreciated...

When I wrote the function, the syntax is:

cmd1 'first order' Set

the value of cmd [list 'send' $cmd1 'answers' [list ['wait' list {[confirm]} 'reply' 'y']]

Table game sendexp $cmd

cli_run_interactive [list [array get sendexp]]

Tags: Cisco Network

Similar Questions

  • Acquiring signals Oscilloscope Agilent 54642D AND settings

    Hello

    I would like to use LabVIEW to capture the signals already displayed on the screen of my Agilent Oscilloscope (model 54642D). With this waveform, I would get the current settings of the oscilloscope channel as well (volts/div, time/div, probe attention., delay, offset, sliders with freq/period, etc.). In other words, I acquire a signal with the scope (not), adjust the parameters of scope for my taste on the front panel of the oscilloscope, and then I would like to capture the exact waveform displayed on the scope WITH the oscilloscope settings.

    I have been using the project-style driver, found here: http://sine.ni.com/apps/utf8/niid_web_display.model_page?p_model_id=724

    It works to control the settings of the oscilloscope and acquire a waveform, but this isn't what I want. I just want to LabVIEW to capture the current state of the oscilloscope screen and the parameters used.

    Thank you very much

    Brad

    Nothing will be mentioned in a textbook on LabVIEW or VISA. What is mentioned is orders SCPI to send to the device for a parameter. You have linked to the operating manual. There is probably a separate programming manual. This is the one you need. Most would be to use a VISA entry to send the request (IE CHAN1:COUP? for mating) and then a VISA read to get the value. You should always write first the instrument in order to tell what data it should return. There is a function to initialize the driver you have. Look at the block diagram, and you will see an entry VISA with a * IDN? written order and a VISA Read then returns the identification. You will make the same basic with commands written procedure.

    In MAX, you have an option of VISA interactive command where you can make a request, a reading or writing. A query combines a writing and reading. This is what you will do if you can do all your tests in MAX. When you have the correct query command, you can copy it in LabVIEW.

  • Agilent 82357 B GPIB/USB, problem with distributed applications

    Hello everyone,

    I am developing software that communicates with an instrument, with USB, RS232, Ethernet and GPIB interface

    On my development PC, I can communicate with my instrument using a 82357 B Agilent GPIB - USB converter, without any problem. (and other interfaces as weel)

    I have deployed the application using the Installer application on the target computer Builder. The application works with USB, RS232 and Ethernet interfaces, but I don't see the GPIB interface in the control of VISA resource name.

    I followed the advice given by OR when you use a converter USB GPIB of Agilent (Tulip active...)

    I did the following tests on the target computer:

    -J' installed MAX, and I can communicate with the VISA test panel using the GPIB-USB converter.

    -J' made a small application with the VISA resource find included

    -If I unplugged the converter USB/GPIB instrument, the VISA to find the function return resource: GPIB0::INTFC, COM3, COM4, LPT1 COM7

    -If I plug the converter to the instrument, the function of resource VISA finds return nothing.

    -If I run the interactive command of VISA, I got the following error:

    Cannot find the resource by using expression? " »

    error: BFFF003A

    Name of the State VI_ERROR_INV_SETUP

    I'm using LabView 8.5 under windows XP.

    I have included in the installer

    -Run LabView 8.5

    -VISA 4.4 duration

    The target computer is running Vista.

    Thanks for your help and your support.

    Hello everyone,

    For your information, I have solved the problem in desinstalling then reinstalling my installation software on the target computer.

    I still don't know where the problem was, but it's working now. (even with the version of the driver 15.0 agilent)

    Thanks anyway for your help.

  • ACS 5.4 and Juniper J-Web

    Hello

    I have set up a box of the ACS 5.4 and will test the devices on it.

    Cisco and Juniper, both works well with GANYMEDE

    I can connect both the use of SSH or Telnet but my problem is the Juniper J-Web GUI

    I can't access the J-web no problem with the root account.

    I can't seem to make it work, no matter what I try. Here is my shell of the GBA box

    And the following configuration of Juniper.  I tried to bind the local-user-name attribute to the remote and remoteadmin with no luck. Anyone got any ideas how I can fix this problem? Or if its even possible?

    version 9.6R1.13;

    System {}

    host name of Juniper-pare-fire;

    authentication-order [tacplus password];

    {root-authentication

    password encrypted "$1$ $1tRuy9o2 LwSPxNwe4XGNMOMIMo1pd1"; # SECRET - DATA

    }

    {tacplus-Server

    10.251.200.25 {}

    secret ' $9$ zaUL6/AtuOIRS5QF/CuEhws2 "; # SECRET - DATA

    Timeout 10;

    Single-connection;

    }

    }

    accounting {}

    events [connection change-journal interactive-commands];

    {destination}

    tacplus;

    }

    }

    {Login

    the user admin {}

    UID, 2001;

    root class;

    {authentication

    password encrypted "$1$ MNUZBLFW$ X2sJL/UTgRYcgBNV4RLe.0"; # SECRET - DATA

    }

    }

    user remote {}

    full name of the "remote user";

    UID 2025;

    operator class;

    }

    the user remoteadmin {}

    full name of "Remote Admin";

    UID 2026;

    root class;

    }

    }

    services {}

    SSH;

    Telnet;

    Web-management {}

    {https}

    System - certificate generated;

    interface fe-0/0/0.0;

    I worked on almost similar issues today and he confirmed that he is able to access J-WEB with the credentials of Ganymede. You can check the config here: https://supportforums.cisco.com/message/3953224#3953224

    Through your config it seems that you have not defined/created classes as he did:

    for example:

    {Login

    class CLASS Number {}

    permissions [view configuration];

    }

    class CLASS RW {}

    permissions in full;

    }

    user {JUNOS-RO

    UID 2000;

    Jatin kone
    -Does the rate of useful messages-

  • Anyway to download a file directly from acrobat without him open in the browser.

    I created a form of simple interactive command to our distributors. I intend to provide the form by e-mail, specifically of mailchimp. However, in mailchimp during binding to a file it will open in the browser. It is a problem because the Send button does not work correctly in some browsers, IE, Firefox and Chrome. Is it possible to download a file to your computer right in Acrobat, or y at - it a simple way I could program the file to download on the computer rather than the browser to mailchimp. I'm not a programmer, so I didn't know if it was an option or not.

    Thank you

    Can't you just include the PDF file as an attachment to the email?

  • Launch of a scheduled task

    I have a business registration application that I launch a scheduled task at regular intervals so that I can record precisely what I'm getting.

    I recently thinapp had this request and now when the scheduled task starts, I see the toaster thinapp and then nothing.  I can see the processes running in the Task Manager, but I do not see the application gui/window (of course, there's a twist, see below *).

    So I thought that maybe there is something wrong with my thinapp so I tried another random application I'd thinapp would and same problem.

    All confirm that this also happens for them, or it's just me.

    Here's what I've tested so far.

    start notepad.exe from a schedule task works as expected.

    launch of my scheduled task thinapp does not want to show her face

    * However

    If I create a task of using command line to the interactive command-line (at 09:00 / interactive "C:\Prog...\thinapp'd app.exe") it works!

    But, if I go and edit this task through the graphical interface, the task stops running.

    So I can create a task that works, the only problem is that I can't put a timetable advanced assistance or schtasks.

    If someone else can replicate this to save my sanity, it would be very appreciated.

    I was able to reproduce the behavior you describe in your original post. What I found was:

    SOME ThinApped which are launched from a scheduled task programs have problems with GUI when you do not provide a password for it. It seems strange, but it seems that it is the cause.

    When I did not provide a password, I noticed that some programs ThinApped does not display its GUI although they run (as you can see in the Task Manager).

    On another application that I tested, it showed its GUI, but it covers the entire screen and it did not show its title/tool bars.

    This behavior doesn't happen with every ThinApped program, just with some of them.

    The workaround for this weird behavior is:

    -Provide a password for your scheduled task.

    -Turn off the checkbox "run only if connected.

  • Data pump - export without data

    To export the database without data in old tool exp was the parameter ROWS defined as N. How to import the schema of database without data using data pump technology?

    You can see by checking using dump export on your command line like this

    C:\Documents and Settings\nupneja>expdp -help
    
    Export: Release 10.2.0.1.0 - Production on Friday, 09 April, 2010 18:06:09
    
    Copyright (c) 2003, 2005, Oracle.  All rights reserved.
    
    The Data Pump export utility provides a mechanism for transferring data objects
    between Oracle databases. The utility is invoked with the following command:
    
       Example: expdp scott/tiger DIRECTORY=dmpdir DUMPFILE=scott.dmp
    
    You can control how Export runs by entering the 'expdp' command followed
    by various parameters. To specify parameters, you use keywords:
    
       Format:  expdp KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
       Example: expdp scott/tiger DUMPFILE=scott.dmp DIRECTORY=dmpdir SCHEMAS=scott
                   or TABLES=(T1:P1,T1:P2), if T1 is partitioned table
    
    USERID must be the first parameter on the command line.
    
    Keyword               Description (Default)
    ------------------------------------------------------------------------------
    ATTACH                Attach to existing job, e.g. ATTACH [=job name].
    COMPRESSION           Reduce size of dumpfile contents where valid
                          keyword values are: (METADATA_ONLY) and NONE.
    *CONTENT*               Specifies data to unload where the valid keywords are:
                          (ALL), DATA_ONLY, and METADATA_ONLY.
    DIRECTORY             Directory object to be used for dumpfiles and logfiles.
    DUMPFILE              List of destination dump files (expdat.dmp),
                          e.g. DUMPFILE=scott1.dmp, scott2.dmp, dmpdir:scott3.dmp.
    ENCRYPTION_PASSWORD   Password key for creating encrypted column data.
    ESTIMATE              Calculate job estimates where the valid keywords are:
                          (BLOCKS) and STATISTICS.
    ESTIMATE_ONLY         Calculate job estimates without performing the export.
    EXCLUDE               Exclude specific object types, e.g. EXCLUDE=TABLE:EMP.
    FILESIZE              Specify the size of each dumpfile in units of bytes.
    FLASHBACK_SCN         SCN used to set session snapshot back to.
    FLASHBACK_TIME        Time used to get the SCN closest to the specified time.
    FULL                  Export entire database (N).
    HELP                  Display Help messages (N).
    INCLUDE               Include specific object types, e.g. INCLUDE=TABLE_DATA.
    JOB_NAME              Name of export job to create.
    LOGFILE               Log file name (export.log).
    NETWORK_LINK          Name of remote database link to the source system.
    NOLOGFILE             Do not write logfile (N).
    PARALLEL              Change the number of active workers for current job.
    PARFILE               Specify parameter file.
    QUERY                 Predicate clause used to export a subset of a table.
    SAMPLE                Percentage of data to be exported;
    SCHEMAS               List of schemas to export (login schema).
    STATUS                Frequency (secs) job status is to be monitored where
                          the default (0) will show new status when available.
    TABLES                Identifies a list of tables to export - one schema only.
    TABLESPACES           Identifies a list of tablespaces to export.
    TRANSPORT_FULL_CHECK  Verify storage segments of all tables (N).
    TRANSPORT_TABLESPACES List of tablespaces from which metadata will be unloaded.
    VERSION               Version of objects to export where valid keywords are:
                          (COMPATIBLE), LATEST, or any valid database version.
    
    The following commands are valid while in interactive mode.
    Note: abbreviations are allowed
    
    Command               Description
    ------------------------------------------------------------------------------
    ADD_FILE              Add dumpfile to dumpfile set.
    CONTINUE_CLIENT       Return to logging mode. Job will be re-started if idle.
    EXIT_CLIENT           Quit client session and leave job running.
    FILESIZE              Default filesize (bytes) for subsequent ADD_FILE commands.
    HELP                  Summarize interactive commands.
    KILL_JOB              Detach and delete job.
    PARALLEL              Change the number of active workers for current job.
                          PARALLEL=.
    START_JOB             Start/resume current job.
    STATUS                Frequency (secs) job status is to be monitored where
                          the default (0) will show new status when available.
                          STATUS[=interval]
    STOP_JOB              Orderly shutdown of job execution and exits the client.
                          STOP_JOB=IMMEDIATE performs an immediate shutdown of the
                          Data Pump job.
    
    C:\Documents and Settings\nupneja>
    

    Content to the "metadata_only" parameter will export only the structure of the schema to skip the lines.

  • Add a column "command list" to an interactive report

    Is it possible to add a list of drop-down menu commands as a column on an interactive report?  I want users to choose an action (update a field in the row, change a background color of a field...) to update the report without sending them to another page.  I use Apex 4.2

    Thanks for the tips

    William

    You can create a selection in a column list.

    Orders? No... you have to code them yourself... nothing of what is available in a box!

  • How can I get the command bar, for e-mail, etc..

    How can I get the command bar in Mozilla? For the icon to email etc.

    If you want to learn the basics try this interactive and video tour

  • After upgrade to El Capitan, Python segmentation fault 11 after two commands are entered.

    2011 Macbook pro with Snow Leopard (8 MB RAM).  I upgraded to 10.11.4 and now interactive Python (2.7.2) is broken.   After you enter the two commands any (?), it crashes:

    Pauls-MacBook-Pro: ~ python $ paul

    Python 2.7.2 (v2.7.2:8527427914 has 2, June 11, 2011, 15:22:34)

    [GCC 4.2.1 (Apple Inc. build 5666) (point 3)] on darwin

    Type "help", "copyright", "credits" or "license" for more information.

    > > > x = 1

    > > > y = 2

    Segmentation fault: 11

    Pauls-MacBook-Pro: ~ paul$

    I saw the posts here and on StackOverflow, saying that this problem is corrected in python 2.7.6 but I have a few questions:

    one) because it is a problem for a few years, why not upgrade the El Capitan installs a new version of python (if I understand correctly, the El Capitan installation includes)?   :/   For example, instead of everyone made the upgrade (at least in some versions) with the problem individually?

    Given that I apparently must upgrade to python:

    (b) I saw mention of problems with the evolution of the system version of python.   Can I change the version of the system (my preference), for example. 2.7.11, or do I need to install a version for my personal use?

    (c) how DO I upgrad.e the version of the system, or install another version?

    Thank you

    It is not the system Python, which is the version 2.7.10. What you get from "which python"?

  • I need help to create profiles of Firefox directly from the command line (script) without having to use the Profile Manager window step by step

    is there a way to provide command line arguments when calling the Profile Manager so that I can perfectly create a profile of an invocation? By the way the profile name and the location of the profile. I need to bypass the user interaction with the Profile Manager window. Thank you.

    http://developer.Mozilla.org/en/docs/Command_Line_Options#User_Profile

  • CVI control to display data in the command line

    Hello

    do we not have any command CVI to view specific data in cmd (command) invites?

    A simple printf will display the data in the window of standard I/O, more or less what you are looking for, then that scanf accepts and elaborate user entered this window.

    A bit of personalizatio to the standard window of I/O is allowed per SetStdioWindowOptions () command: this command is a sample program (userint\standardio.cws) that shows an interaction with the window.

  • How to recover formulas of the command stack?

    I'm making calculations across multiple data. I use the calculator to perform all the calculations. Stack command saves the last 20 transactions but I play more than 20 operations, and I would like to have access to see what I've done the calculations.

    There is no option file - save as the Analysis tab. How will I know what calculations I did on the channels, if I can't access the command stack formulas?

    Thank you

    Vandenplas has

    Hi Vandenplas,

    What version of DIAdem do you use?  If you are using version 11.1 or later, then I would recommend that you spend the channel for the calculation Manager calculator, which allows you to save and reload any number of calculations, as well as to bind the results of some on other entries.

    If you are using DIAdem 11.0 or earlier, then I recommend you to run the calculations of 20 + with a VBScript, using the ChnCalculate() command.  The interactive channel calculator was designed for fast interactive calculations, not tons of sequential calculations you want to use again and again.

    Brad Turpin

    Product development engineer of Suypport tiara

    National Instruments

  • RT runs interactively but it won't compile (error 1)

    Hello

    I'm working on a project that is having a strange question compile for a cRIO.  I inherited code that works interactively but will not compile so that it can be loaded.  The error I get is as follows:

    Error 1 ganglion invoke in AB_RTEXE.lvclass:Build.vi-> AB_Engine_Build.vi-> AB_Build_Invoke.vi-> AB_Build_Invoke.vi.ProxyCaller

    Possible reasons:

    LabVIEW: an input parameter is not valid. For example if the input is a path, the path can contain a character not allowed by the operating system such as? or @.
    =========================
    NOR-488: command requires GPIB controller charge controller.

    Name of the method: Build: Application

    I have also an old cliché of the project who is able to compile, but something else is to prevent to work.  I was unable to find any significant difference in the top-level VI RT.

    Does anyone have any ideas as to why I get this error?

    News: LabVIEW 2010 SP1, cRIO-9024

    I think I found the problem.  I found this document and looked in the proposed solutions.  So, I was able to compile the RT application once I set the name of the executable file.  Unfortunately, he seems to have been a Virgin (who is obviously not a valid file name).

    I still have to actually test run the executable compiled, but I think that the question I posted everything is resolved.

    Thank you for the time you took to try to help me.

  • Interact with a CGI web page

    Greetings OR Forums,

    I am developing a telescope pointing control system that needs data ephemerides generated from a Jet Propulsion Laboratory web site:

    http://SSD.jpl.NASA.gov/horizons.cgi

    The main interface of their horizons system is via Telnet which is precarious and is no longer supported by LabVIEW.  I was hoping that someone could advise me on how to start using LabVIEW to interact with the web page of cgi based at the above address.  If I can do it, I can retrieve the necessary ephemeris data and analyze inside LabVIEW using the commands of the base string.

    Is there a kit of basic tools that you can point me to interact with web pages or any code sample?

    Thank you
    Scott

    High Altitude Observatory

    Boulder, CO

    Use screws of HTTP Client:

    VI GET is the standard demand 'give me this web page' - give it the URL of your ephemeris data session and the release of 'body' will give you the web page content - if you use the raw text of output, then this should make analysis easier chain (without tags html etc..).

    (In addition, you can use Telnet in LabVIEW, it is not a library group for her more - you should be able to use the TCP screws to roll and you can also if interface with other libraries/applications Telnet for example PuTTy... it might even be something in .NET)

Maybe you are looking for

  • Sync iphone to itunes

    I reinstalled my Itunes.  If I connect my iphone and my reinstalled itunes synchronization, will be the music installed in my iphone and apps copied to my itunes?

  • share a photo album on Facebook

    This seems to be a basic question, but I can't understand it. I know how to share a single photo on Facebook, but I just spent time creating a photo album, choose the pictures to include, and I want to publish the entire album on Facebook as-is, with

  • Beginner help on reformat hard drive laptop

    Hi I'm new to this forum and I never reformat hard drive before > _ < I have not driver OS from the seller, but I have genuine windows7 so my question is how to reformat my hard drive without a driver OS? Of course I want to reformat my hard drive wi

  • PS4 2 stay connected at the same time...

    Guys and girls, I'm begging for your help. I moved last year and bought the R7000 nighthawk and since then, my son and I have been unable to play the same game with our PS4. We play Battlefield 4 to be precise and every time now that we are trying to

  • Virtual scrolling in PC2007 problem

    I'm under Virtual PC 2007 on a laptop Dell Inspiron 1545 with Windows 7 as the main operating system. In Virtual PC, I'm under Windows 98SE, so that I can run a few old games SSI (Panzer General 2, general of the Pacific). The problem I have in the g