Using LMS to extract VRF name as a variable from device config to deploy VRF name in additional configuration

Using LMS is there a way to run a job which would extract the VRF name in part of the configuration and then use it as a variable to deploy additional configuration using the VRF name. We have a number of management VRF's and need to deploy a mass configuration change on a number of devices.
aaa group server tacacs+ blah
server x.x.x.x
server x.x.x.x
ip vrf forwarding test

I am working for a service provider and I was given a task to configure more than 50000 devices (!). First I started with VBS and some scriptable terminal application, but it was too complicated to handle that much data. I then decided to develop my own application dedicated to device mass-configuration. As I understand your question, you may also find it useful : http://www.prettygoodterminal.com
BR 

Similar Messages

  • LMS 4.2 virtual appliance: How to export archive devices configs on a network drive

    Hello,
    I will install a new LMS 4.2 based on a virtual Linux Red Hat appliance.
    I would like to export archive devices configurations based on /var/adm/CSCOpx/files/rme/dcma/shadow on an external drive.
    Do we have embedded tools on LMS 4.2 Linux to share a network drive or do we use NFS commands ?
    Thanks for your help.
    Patrice

    there are no such embedded tools.
    I am awaiting Ciscos return with a solution for bringing the backup out of the VA (Virtual Appliance) and to a safekeeping place.
    Same issue all around - the VA is now a client only !
    I saw a hack around the SCP user inorder to use WinSCP for faster file browsing etc, and that might work, but I want a supported fix for this issue. And by that I mean Cisco needs to tell me what can be done and how its supported.
    please share any knowledge you might get on this topic.

  • Use LINQ to extract the data from a file...

    Hi,
    I have created a Subprocedure CreateEventList
    which populates an EventsComboBox
    with a current day's events (if any).
    I need to store the events in a generic List communityEvents
    which is a collection of
    communityEvent
    objects. This List needs to be created and assigned to the instance variable
    communityEvents.
    This method should call helper method ExtractData
    which will use LINQ to extract the data from my file.
    The specified day is the date selected on the calendar control. This method will be called from the CreateEventList.
    This method should clear all data from List communityEvents.  
    A LINQ
    query that creates CommunityEvent
    objects should select the events scheduled for selected
    day from the file. The selected events should be added to List
    communityEvents.
    See code below.
    Thanks,
    public class CommunityEvent
    private int day;
    public int Day
    get
    return day;
    set
    day = value;
    private string time;
    public string Time
    get
    return time;
    set
    time = value;
    private decimal price;
    public decimal Price
    get
    return price;
    set
    price = value;
    private string name;
    public string Name
    get
    return name;
    set
    name = value;
    private string description;
    public string Description
    get
    return description;
    set
    description = value;
    private void eventComboBox_SelectedIndexChanged(object sender, EventArgs e)
    if (eventComboBox.SelectedIndex == 0)
    descriptionTextBox.Text = "2.30PM. Price 12.50. Take part in creating various types of Arts & Crafts at this fair.";
    if (eventComboBox.SelectedIndex == 1)
    descriptionTextBox.Text = "4.30PM. Price 00.00. Take part in cleaning the local Park.";
    if (eventComboBox.SelectedIndex == 2)
    descriptionTextBox.Text = "1.30PM. Price 10.00. Take part in selling goods.";
    if (eventComboBox.SelectedIndex == 3)
    descriptionTextBox.Text = "12.30PM. Price 10.00. Take part in a game of rounders in the local Park.";
    if (eventComboBox.SelectedIndex == 4)
    descriptionTextBox.Text = "11.30PM. Price 15.00. Take part in an Egg & Spoon Race in the local Park";
    if (eventComboBox.SelectedIndex == 5)
    descriptionTextBox.Text = "No Events today.";

    Any help here would be great.
    Look, you have to make the file a XML file type -- Somefilename.xml.
    http://www.xmlfiles.com/xml/xml_intro.asp
    You can use NotePad XML to make the XML and save the text file.
    http://support.microsoft.com/kb/296560
    Or you can just use Notepad (standard), if you know the basics of how to create XML, which is just text data that can created and saved in a text file, which, represents data.
    http://www.codeproject.com/Tips/522456/Reading-XML-using-LINQ
    You can do a (select new CommunityEvent) just like the example is doing a
    select new FileToWatch and load the XML data into the CommunityEvent properties.
    So you need to learn how to make a manual XML textfile with XML data in it, and you need to learn how to use LINQ to read the XML. Linq is not going to work against some  flat text file you created. There are plenty of examples out on Bing and Google
    on how to use Linq-2-XML.
    http://en.wikipedia.org/wiki/Language_Integrated_Query
    <copied>
    LINQ extends the language by the addition of query
    expressions, which are akin to
    SQL statements, and can be used to conveniently extract and process data from
    arrays, enumerable
    classes, XML documents,
    relational databases, and third-party data sources. Other uses, which utilize query expressions as a general framework for readably composing arbitrary computations, include the construction of event handlers<sup class="reference" id="cite_ref-reactive_2-0">[2]</sup>
    or
    monadic parsers.<sup class="reference" id="cite_ref-parscomb_3-0">[3]</sup>
    <end>
    <sup class="reference" id="cite_ref-parscomb_3-0"></sup>

  • How can I use Automator to extract specific Data from a text file?

    I have several hundred text files that contain a bunch of information. I only need six values from each file and ideally I need them as columns in an excel file.
    How can I use Automator to extract specific Data from the text files and either create a new text file or excel file with the info? I have looked all over but can't find a solution. If anyone could please help I would be eternally grateful!!! If there is another, better solution than automator, please let me know!
    Example of File Contents:
    Link Time =
    DD/MMM/YYYY
    Random
    Text
    161 179
    bytes of CODE    memory (+                68 range fill )
    16 789
    bytes of DATA    memory (+    59 absolute )
    1 875
    bytes of XDATA   memory (+ 1 855 absolute )
    90 783
    bytes of FARCODE memory
    What I would like to have as a final file:
    EXCEL COLUMN1
    Column 2
    Column3
    Column4
    Column5
    Column6
    MM/DD/YYYY
    filename1
    161179
    16789
    1875
    90783
    MM/DD/YYYY
    filename2
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    MM/DD/YYYY
    filename3
    xxxxxx
    xxxxx
    xxxx
    xxxxx
    Is this possible? I can't imagine having to go through each and every file one by one. Please help!!!

    Hello
    You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
    set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
    if f ends with "/" then set f to f's text 1 thru -2
    do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
    use strict;
    use open IN => ':crlf';
    chdir $ARGV[0] or die qq($!);
    local $/ = qq(\\0);
    my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
    local $/ = qq(\\n);
    #     CSV spec
    #     - record separator is CRLF
    #     - field separator is comma
    #     - every field is quoted
    #     - text encoding is UTF-8
    local $\\ = qq(\\015\\012);    # CRLF
    local $, = qq(,);            # COMMA
    # print column header row
    my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
    print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    # print data row per each file
    while (@ff) {
        my $f = shift @ff;    # file path
        if ( ! open(IN, '<', $f) ) {
            warn qq(Failed to open $f: $!);
            next;
        $f =~ s%^.*/%%og;    # file name
        @dd = ('', $f, '', '', '', '');
        while (<IN>) {
            chomp;
            $dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
            ($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
            ($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
            ($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
            ($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
            last unless grep { /^$/ } @dd;
        close IN;
        print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
    EOF
    Hope this may help,
    H

  • To test how can we use the opt  'logical file name' to name the file based

    Hi Sir/Madam,
               to test how can we use the opt  'logical file name' to name the file based on the selection made in the dtp run for extracting data as flat file.

    Hi Vishali,
    In the DTP select the file location as application server and give the logical file path. The actual file and logical path can be created using transaction "FILE" and "AL11".
    Rest of the process is same as that of extraction from local file.
    Regards,
    Durgesh.

  • Parse SQL: How to extract column names, table names from a SQL query

    Hi all,
    I have a requirement wherein a SQL query will be given in a text file.
    The text file has to be read (probably using text_io package), the SQL query needs to be parsed and the column names, table names and where clauses have to be extracted and inserted into separate tables.
    Is there a way to do it using PL/SQL ?
    Is there a PL/SQL script available to parse and extract column names, table names etc ?
    Pls help.
    Regards,
    Sam

    I think I jumped to conclusion too early saying it is completely possible and straight forward. But after reading through your post for one more time I realised you are not interested only in the column_names, also the table_names and the predicates .
    >
    SQL query needs to be parsed and the column names
    >
    The above is possible and straight forward using the dbms_sql package.
    I am pasting the same information as I did in the other forum.
    Check this link and search for Example 8 and .
    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sql.htm#sthref6136
    Also check the working example from asktom
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1035431863958
    >
    table names and where clauses have to be extracted
    >
    Now this is the tricky bit. You can extract the list of tables by getting the sql_id from v$sql and joining it with v$sql_plan. But sometimes you may not get all the results because the optimizer may choose to refine your query (check this link)
    http://optimizermagic.blogspot.com/2008/06/why-are-some-of-tables-in-my-query.html
    and you can get the predicate information from the same table v$sql_plan but I will leave that area for you to do some R&D.
    Regards
    Raj
    Edited by: R.Subramanian on Dec 10, 2008 3:14 AM

  • How to extract register names & their addresses from .inc file of a microcontroller

    Hi,
    I want to extract register names to a dropdown and their corresponding addresses from .inc file in such a way that when I select a register from dropdown, it has to also show its address in a string indicator.
    However, only a part of .inc file consists of register definitions and the rest has bit definition of registers (unwanted). How can I extract this using labview?
    Attached is a sample .inc file for PIC18F4620 device.
    Attachments:
    p18f4620.inc ‏48 KB

    Read the file line by line until you find "Register Files" (use for example Search/Split String).
    Then, read again splitting each line in its tokens (use Scan String for Tokens).
    Keep the first token as name and convert the proper substring of the third token to the address value.
    Terminate when line is empty.
    Paolo
    LV 7.0, 7.1, 8.0.1, 2011

  • How to extract field name, length, descrip & field type out of repository

    How can I  extract field name, length, descrip & field type out of repository?  Or is it possible?

    Hi Victor,
    To get any info about any field you should know the code of that field that we specify in console while  creating field.
    Using this code you will get property whatever you defined in consloe.
    RepositorySchemaEx repositoryschema= MetadataManager.getInstance().getRepositorySchema(usrCtx);
    where usrctx is usersession context that you create to access yr repository
    FieldProperties fProp = repositoryschema.getField(tableName,fieldCode);
    where tablename is tablecode in which field belong
    field code is code of field that you define in console for that field
    if you check with frop then it will show  the general properties like type etc.
    suppose yr field of type text field then you can acces all properties that is coomon as well that is respective to text type field.
    FixedWidthTextFieldProperties textField = ( FixedWidthTextFieldProperties) fProp
    if you have other field type then that use thta properties . you will get in java api docs on help.sap.com whatever the properties MDM supporting.
    Hope ot helps  you get the solution
    thanks,
    sudhanshu

  • Extract root name of an XML packet

    Hi,
    I thought this would be simple, but cant work out how I can extract the name of the root node for an XML packet
    I was planning just to use xmltype.extract, but I cant work out the xpath paameter to get this to work.
    Any of you clever folks got an idea?

    how I can extract the name of the root node for an XML packettry
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    Connected as scott
    SQL>
    SQL> with t as
      2   (select xmltype('<RESULTS>
      3  <ROW>
      4  <COLUMN NAME="ID">12688f8ac8aa6310VgnVCM10000078ccc70a____</COLUMN>
      5  <COLUMN NAME="BRANCH_NAME">Brooklyn</COLUMN>
      6  </ROW>
      7  </RESULTS>') xml
      8      from dual)
      9  select x.*
    10    from t,
    11         xmltable('for $i in $d/*
    12             return element r {
    13               element tag_name    {local-name($i)}, element tag_name2 {name($i)}
    14            }' passing t.xml as "d" columns tag_name
    15                  varchar2(30) path 'tag_name',
    16                  tag_name2 varchar2(30) path 'tag_name2') x
    17  /
    TAG_NAME                       TAG_NAME2
    RESULTS                        RESULTS
    SQL>

  • What is the keyword used to not extract the duplicate datas

    what is the keyword used to not extract the duplicate datas

    After select
    write delete adjacent duplicate records from itab comparing field names.
    before this sort itab by field names.
    Thanks

  • Extracting file name info

    if I have a files named as such...............AR123 Smith, John.mov
    I need to extract out just the initials AR from the name.
    my following code does not work, can anyone help, thanks.
    on open the_files
    set a_file to item 1 of the_files -- if I drag the above file onto my droplet
    tell application "Finder"
    display dialog a_file as string with title "0-File Name"
    set AppleScript's text item delimiters to {":"}
    set the_project to the last text item of a_file
    display dialog the_project as string with title "1-File Name" -- AR123 Smith, John
    set AppleScript's text item delimiters to {" "}
    set theprojectcode to text item 1 of the_project -- AR123
    display dialog theprojectcode with title "2-Project code" -- AR123
    repeat with a_character in theprojectcode
    if a_character is in the_alphabet then
    set theprodinitials to theprodinitials & a_character -- AR
    end if
    end repeat
    set theprodinitials to "- " & theprodinitials
    open theprodinitials
    display dialog theprodinitials with title "3-producers initials"
    end tell
    end open

    I am guessing that "the_alphabet" is defined at a global level elsewhere in your script, but I set it in the open handler here - the variable "theprodinitials" also needs to exist before using it in an expression, so I just set it to a blank "". I'm not sure what the open statement is supposed to open (it needs a complete file path), so I just set it (as a comment) to open the original file. Here is another approach that doesn't use text item delimiters:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    on run
    open {(choose file)}
    end run
    on open the_files
    set the_alphabet to characters of "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    set the_prod_initials to ""
    repeat with a_file in the_files
    display dialog a_file as string with title "0-File Name"
    tell application "Finder" to set the_project to the name of a_file
    display dialog the_project as string with title "1-File Name" -- AR123 Smith, John
    set the_project_code to the first word of the_project -- AR123
    display dialog the_project_code with title "2-Project code" -- AR123
    repeat with a_character in the_project_code
    if a_character is in the_alphabet then
    set the_prod_initials to the_prod_initials & a_character -- AR
    end if
    end repeat
    set the_prod_initials to "- " & the_prod_initials
    display dialog the_prod_initials with title "3-producers initials"
    -- tell application "Finder" to open file a_file
    end repeat
    end open</pre>

  • Activating and using 0CUSTOMER Hierarchy extraction in R3

    Dear Expert,
    Could anybody explain me about Activating and using 0CUSTOMER Hierarchy extraction in R3 and then extract to BW systems from R3 in step by step?
    Points will be assign granted
    Regards
    Sanjiv

    You can load Hierarchies (sets) from R/3 in the same as other Master Data. Just you need to create Hierarchy DataSource using Tcode BW07. Where you have to give the name of the table and field on which you created Hierarchy iin R/3.
    Also there are many standard avilable datasources also for hierarchy for which you can load Hierarchy Directly.
    Here are the step by step procedures:
    Hi,
    If you are using standard infoobject and you want to load r3 hierachy you dont have to configure any additional thing in order to load it in BW.
    The Steps are:
    1)Activate the hierarcie datasource in R3
    2)Replicate it in BW
    3)Assign the datasource for an Infosource, and make sure you select the hierarchie datasource.
    4)Active the Infosource
    5)Create Infopackage
    6)Select the desire hierachie in the infopackage(if you dont see it, click on Available Hierarchies from OLTP and select it)
    Regards
    Asigns point if useful please
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6729e07211d2acb80000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/3d/320e3d89195c59e10000000a114084/frameset.htm
    Re: Hierarchies

  • Extract the name of a digital ID from a smart card and place in a field

    In DoD we use Smart Cards, commonly called 'Common Access Card (CAC)', I am wondering if it's possible to extract the name of the user from their CAC, or at least be able to extract the name from a .FDF file. If you go to 'Sign & Certify' from Acrobat 10.x, and then go to 'More Sign & Certify', then click on 'Security Settings', again, this only applies if you have either a Smart Card or digital ID, you will see the security settings menu. Within this menu, you will see the option to 'Export' the file to either an email or save the data to a file. When you click next, you have the option to save as and .fdf file or .p7c file. Is it possible to create a button or a digital signature that will allow me to export the name of the user to a field?

    Hi bsabourin1962,
    It can be done by creating a button with a script to extract the name of the user.

  • Extract plot names from waveform

    Hello
    Is it possible to extract plot names from an array of waveform to a new array that contains all the plot names.
    Regards,
    Solved!
    Go to Solution.

    If you are using Waveform data types to update your plot then you can iterate through all channels and pull out the name attribute or,
    You can use a For loop that uses the iteraction terminal to drive the "Active Plot" property of the indicator and then pull the name using a second (preferably an expanded property node) and let the names pile up in an auto-indexing output tunnel.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • When I upgraded to ios 5, it asked me a for a new game center name.  How do I use my old game center name, since it makes me start some games over without it?

    When I upgraded to ios 5, it asked me a for a new game center name.  How do I use my old game center name, since it makes me start some games over without it?

    Carefully follow steps 1-9 outlined by wjosten in this post: https://discussions.apple.com/message/13356770#13356770.  This will not, however, avoid wiping any non-purchased media from your phone (ripped CDs, etc.) as this is only synced one way: from your computer to your phone.  You will have to either rebuild your iTunes library with this content and sync again to restore it to your phone, or purchase 3rd party software to copy it from your phone to iTunes prior to syncing (such as Touch Copy).

Maybe you are looking for

  • How do I get my data out of Keeper HD after updating iOS 7.1

    Recently I updated my iPad to iOS 7.1 and now my free Keeper HD won't open so I can get my data out.Keeper support say they can't assist

  • How do I set up e-mail with an exchange server?

    My father works as the IT Manager of a small, privately owned company that uses an Exchange Server for e-mail and the like. A co-worker of his recently bought an iPhone 4 and desperately needs him to set up her e-mail to be used on the new phone. Luc

  • Macbook pro with retina display keyboard Turning off

    Hello everyone im having a problem with my Macbook pro it's my first mac so i dont know about it a lot sorry for my bad english and the problem is that after using it for like 2-5 Hours the keyboard turns off so i have to restart macbook so it works

  • Namespace prefix null in FaultCode

    Hello, I am seeing this null namespace prefix in faultcode in the fault I received. When I browsed this forum discussing fault details, generally I noticed pretty much everyone have this same null prefix in fault codes. <Fault> *<faultcode>null:remot

  • I use to keep all my Mini DV Tapes WHAT now with AVCHD Format ?

    I started shooting video way back in the seventies using tape and graduated to Mini DV in the nineties. NOW I have upgraded to a Panasonic TM700 AVCHD camera that records to flash memory. I always kept my tapes as backups, never re-using them. Now wi