Cisco Prime 2.1 CLI-Template for Switch configuration Backup

Hello everybody,
I am trying to write a CLI Template in cisco Prime to save the running-configuration of our core switch to the FTP server, 
I have already configured the FTP username and Password in the core Switch 
ip ftp username cisco
ip ftp password cisco123
in Cisco Prime I have created a template as follow:
copy running-config ftp: 
$FTP_IP_addrress >> the FTP Server
$name                    >> the name of file and the date
After deploying this template on the core switch,
I received Error Msg in Prime as follow:
Error : Command returned an error : copy running-config ftp: 172.16.30.30 Run_Config_Core_19_2_2015 ^ % Invalid input detected at '^' marker. QAF-DC-4507-CORE(config)#
I know that the backup files can be fetched directly from Cisco Prime in the Configuration Archives, But also I need to test if we can take a backup directly to the FTP server using Prime.
 Thanks in advance.

Thank you Bkennedy for replying,
I changed my template to be as follow:
#MODE_ENABLE
copy running-config ftp: 
$Mgmt_IP_addrress
$name
#MODE_END_ENABLE
but still I am receiving Error like :
Error : Exception while sending interactive commands to device, Expect timeout: Failed to match expected device output due to Expect timeout current timeout 60000. Current output : Address or name of remote host []? Current expects : (DC-450.{0,30}|DC-4507-AGG)\([^\)]+\)#\s*\z DC-4507-AGG# 
I believe that we have to tell the Prime how to send the variables to Switch, because the switch is waiting for the remote host IP address and the destination file name???
DC-4507-AGG#copy running-config ftp:
Address or name of remote host []? X.Y.Z.W
Destination filename [dc-4507-agg-confg]?
% VRF table-id 0 not active
% VRF table-id 0 not active
Writing dc-4507-agg-confg !
24425 bytes copied in 1.500 secs (16283 bytes/sec)
DC-4507-AGG#

Similar Messages

  • Cisco Prime 2.0 - CLI credential

    Hi PI Experts,
    Is CLI credential mandatory on Cisco Prime?
    What would happen if no dedicated CLI credential were configured on Prime to access Cisco network devices?
    Right now we use TACACS+ to login to Cisco switches and routers and use Radius to login to PI.
    However, our security policy prevents us from either creating a AD account on AD servers or creating a local TACACS+ user account on ACS server for PI appliance.
    So, when we do device discovery, if we want to use SSH/Telnet, we need to put in our own AD user credentials, then remove them after the discovery is done.
    Thanks
    Cedar

    Hi Ceder,
    What would happen if no dedicated CLI credential were configured on Prime to access Cisco network devices?
    why Telenet credentilas are required :
    Telnet Credential
    you can specify the Telnet credentials during discovery so that Prime  Infrastructure can collect the device configurations and fully manage  the devices. If you do not specify Telnet credentials in the discovery  settings, Prime Infrastructure discovers the devices but is unable to  manage the device until you specify the Telnet credentials.
    In  case you are using SSH  on your devices:
    SSH Credential
    For full device support via SSH, you must use SSHv2 with a 1024 bit key. You can configure SSH before running discovery.
    Telnet\SSH , credentilas would be required later on as well to Fetch the config , to push any template on the device etc..
    Thanks-
    Afroz
    [Do rate the useful post]
    ****Ratings Encourages Contributors ****

  • Prime 2.1 CLI-Template Copy to FTP

    Hello everybody,
    I want to write a CLI-Template to save the startup-config to a FTP-Server. So here ist my template:
    #MODE_ENABLE
    #INTERACTIVE
    copy running-config ftp: <IQ>remote host<R>$ftpserver<IQ>filename<R>${IPAddress}.txt
    #ENDS_INTERACTIVE
    #MODE_END_ENABLE
    My problem is: I want a filename, which include the hostname. Something like "switch-01-config.cfg". But I doesn't know the right way to get the hostname from a managed variable.
    Finally I want to save configs from many switches to one ftp server I define.
     I hope someone can help me. Thanks in advance.
    Christian

    Not sure if this is possible, as the script may not be able get a unique input for each device to write it to FTP server.
    But there is one option, where you can run a script on PI server which can fetch configuration from database for all the devices and dump it into a directory.
    You can use this latest configs to be exported to another FTP server at once.
    This seem to be one of the viable option on what you're trying to achieve. I can wait for other community members to share their expert suggestions.
    -Thanks
    Vinod

  • Does Cisco Prime have a replacement product for NCM or Network Compliance Manager?

    Does the Cisco Prime application development team have a product that replaces the NCM or Network Compliance Manager?

    Both Prime and LMS can do baseline compliance, after a fashion. LMS's is much more mature in my estimation. Prime is more around the lines of deploying templates.
    The regulatory compliance functions as of now are in only LMS's Compliance and Audit Manager (CAAM) function. It's quite useful, matching the baseline compliance features.
    An LMS license is included with PI, but it does need to be on its own server (or separate VM).

  • Cisco Prime - create a Fault Alarm for Syslog Messages

    Is it possible to generate an alarm for especific Syslog Messges sent to Cisco Prime?
    Admin > Network > Notification and Action Settings > Syslog Automated Actions
    Here is possible to send an email. But I would like to see the alarm in the Monitoring dashboard.

    Hi Leonardo,
    unfortunately ,Automated action that you create on syslog will not show in the Monitoring dashboard :(
    Thanks-
    Afroz
    ****Ratings Encourages Contributors ****

  • Cisco Prime LMS 4.1 - Support for Cisco Catalyst 3560-C Series Switches

    Hello together
    I have a customer which uses the following switch. Last year I have installed LMS 4.1 for him to manage the switches. Unfortunatly the switch model is not supported. According to the information found on the following site the switch is supported for most of the modules in LMS:
    http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_lan_management_solution/4.1/device_support/table/lms41sdt.html
    The oid object of the device is the following: 1.3.6.1.4.1.9.1.1465
    Supported Software: 12.2(55)EX (Customer has 12.2(55)EX3
    Version Support Type: Device Update
    So I updated all device updates I was able to find.
    Step 1: For that I went to Admin > System > Software Center > Schedule Device Downloads and created a job where I have downloaded the latest versions of all packages.
    Step 2: Installed the downloaded packages Admin > System > Software Center > Device Update and installed all the packages.
    Unfortunatly I don't see the same result like described in the Supported Device Table for LMS 4.1.
    - Cisco View -> works
    - Inventory and Config Collection -> works
    - Fault Monitor not working -> Error Code Unsupported
    - Network Topology Layer 2 Services -> Device Type ciscoProducts.1465, Symbol Question Mark
    - VLAN Management -> Doesn't work
    - User Tracking > seems also not to work
    When I open the report for supported devcies (Reports > System > Device Support) and search for C3560C... I find the following devices, but not mine which i need:
    C3560C-8PC-S     .1.3.6.1.4.1.9.1.1466
    C3560CG8PC         .1.3.6.1.4.1.9.1.1317
    C3560CCG8TC     .1.3.6.1.4.1.9.1.1318
    wsC3560CPD8ptS     .1.3.6.1.4.1.9.1.1368
    Does anybody have experience with the same switch type / model? Am I doing something wrong or is this type of switch not implemented correctly till now? Further the docuemntation supported devices would be wrong.
    Thanks for any feedback Erich

    Thanks but I just heard back from my Cisco SE and he assures me that an AP will NOT use up a license.
    I've asked him to verify his answer for me.
    Is your answer based on real world expereince (the best there is)?  That is, are you running Prime LMS 4.1 and does it indeed use up a license for each light-weight AP it discovers & manages?
    Thanks for mentioning options 1-3 but I do not wish to employ any of them.  I don't mind buying the additional licenses for APs ... I just need to know if I have to or not.
    Ian.

  • Cisco Prime Infrastructure 1.3 Template Application Logs

    So I'm pushing out a config template to my APs via CPI1.3 (Configure, Lightweight AP Configuration Templates; select template; select my APs, Apply).
    I get a "Partial Success" to a few of my APs. When I hit "Details" for these partial successes I get precious little details.
    So I go to check the server/appliance log (Administration, Logging, Download Log File). The log "file" is an archive of all logs on the appliance. All are in one folder of the archive, and the names are less than enlightening. Checking the most promising filenames does not seem to contain anything relevant to the push task.
    So, which log file do I look into for actual details of the results of an AP configuration template push?

    Using System Logs
    Prime Infrastructure logs all error, informational, and trace messages generated by all devices that are managed by Prime Infrastructure.
    Prime Infrastructure also logs all SNMP messages and Syslogs it receives.
    You can download and email the logs to use for troubleshooting Prime Infrastructure.
    Step 1 Choose Administration > Logging. The General Logging Options Screen appears.
    Step 2 Choose a Message Level.
    Step 3 Check the check boxes within the Enable Log Module option to enable various administration modules. Check the Log Modules option to select all modules.
    Step 4 In the Log File Settings portion, enter the following settings. These settings will be effective after restarting Prime Infrastructure.
    Note The log file prefix can include the characters "%g" to sequentially number of files.
    Step 5 Click the Download button to download the log file to your local machine.
    Note The logs.zip filename includes a prefix with the host name, date, and time so that you can easily identify the stored log file. Included in the zip file is an html file that documents the log files.
    Step 6 Enter the Email ID or Email IDs separated by commas to send the log file.
    Note To send the log file in a mail you must have Email Server Configured.
    Step 7 Click Submit.

  • Cisco prime Changing the password lenght for snmp authentication

    When i try and put in passwords for the snmp for authorisation and privacy i find that prime infrastructure
    wont accept less than 12 characters
    How can i change this setting please
    It under Configure/switches/(switch)
    Steve

    When you run the validation job you can capture the traffic via the packet capture utility in device center.
    Be sure to filter only to the device being tested or else you will get a really big tcpdump (jet file).
    You can open the resulting jet file in Wireshark to look at the transfer deciphered. That will show you exactly what commands are being sent and what reply comes back from the device.

  • Basic Template For CSS11501 Configuration

    I am trying to get a basic configuration for a CSS. I have attached a visio document to assist I just need to understand the ingress and egress interface configuration/routing.

    Thank you Bkennedy for replying,
    I changed my template to be as follow:
    #MODE_ENABLE
    copy running-config ftp: 
    $Mgmt_IP_addrress
    $name
    #MODE_END_ENABLE
    but still I am receiving Error like :
    Error : Exception while sending interactive commands to device, Expect timeout: Failed to match expected device output due to Expect timeout current timeout 60000. Current output : Address or name of remote host []? Current expects : (DC-450.{0,30}|DC-4507-AGG)\([^\)]+\)#\s*\z DC-4507-AGG# 
    I believe that we have to tell the Prime how to send the variables to Switch, because the switch is waiting for the remote host IP address and the destination file name???
    DC-4507-AGG#copy running-config ftp:
    Address or name of remote host []? X.Y.Z.W
    Destination filename [dc-4507-agg-confg]?
    % VRF table-id 0 not active
    % VRF table-id 0 not active
    Writing dc-4507-agg-confg !
    24425 bytes copied in 1.500 secs (16283 bytes/sec)
    DC-4507-AGG#

  • Prime Infrastructure - CLI Template - SmartPort Macro

    I'm hoping that someone can provide an example of a CLI Template for deploying a SmartPort Macro in Prime Infrastructure 2.0. I've tried multiple formats and can't seem to get it to work.
    Macro to be configured:
    macro auto execute TEST_MACRO {
         blah
         blah
         blahdeeblah
    Example 1 Template:
    #INTERACTIVE
    macro auto execute TEST_MACRO {
    <IQ><R>
    <IQ><R>blah
    <IQ><R>blah
    <IQ><R>blahdeeblah
    <IQ><R>}
    #ENDS_INTERACTIVE
    The above example runs successfully, however it does not actually produce a result.
    Example 2 Template:
    <MLTCMD>macro auto execute TEST_MACRO {
    blah
    blah
    blahdeeblah
    }</MLTCMD>
    The above example fails with the following result:
    Error : Exception while sending interactive commands to device, Expect timeout: Failed to match expected device output due to Expect timeout current timeout 60000. Current output : > >blah >blah >blahdeeblah >} mc-t307-acc06(config)# Current expects : blah blah blahdeeblah \}
    I'm sure that all my troubles stem from '>' result that is sent to the CLI after each line of the function is entered, however I can't seem to work around the problem.
    I've tried many more combinations without success... Any help would be appreciated.

    Instead of 
    #INTERACTIVE
    macro auto execute TEST_MACRO {
    <IQ><R>
    <IQ><R>blah
    <IQ><R>blah
    <IQ><R>blahdeeblah
    <IQ><R>}
    #ENDS_INTERACTIVE
    Try 
    <MLTCMD>
    macro auto execute TEST_MACRO {
    blah
    blah
    blahdeeblah
    </MLTCMD>
    This works for me.  

  • Prime 2.1 Logs CLI Template Jobs

    Hi,
    does anybody know by chance under which folder or in which file Prime writes executed CLI Template Jobs to troubleshoot failed jobs?
    Thanks

    Hi ,
    You can find that information ( job failure )  in the below log files::
    >>> jobManager.log
    >>  ifm_jobscheduler.log
    Thanks-
    Afroz
    ***Ratings Encourages Contributors ***

  • Cisco Prime Infrastructure and VLAN fetch

    I have about a dozen systems which are showing up under the Archive Failed Devices section of Device Work Center -> Configuration Archives.  The reason is Fetch VLAN configuration - Command failed.  All of the affected devices have something in common in that they are all managed by hitting a publicly routable IP address outside of the network on which the NCS server lives (NCS IP is 172.19.40.51).  To the devices, NCS looks like it is coming from an publicly routable IP address (because it is NAT'd by the firewall).  I suspected that the issue was that NCS was trying to TFTP the VLAN.dat file to the NCS server but that it was trying to send it to 172.19.40.51 instead of the NAT address.  I turned on debugs on one of the affected devices and sure enough I see that the device is trying to TFTP something to 172.19.40.51.  Of course that will never work.  I can find no way within the Admin UI of Cisco Prime to change this behavior such that NCS will try to collect the VLAN.dat file in some other way or use the NAT'd IP address for the copy attempt.
    Is there a way to get it to use something other than TFTP?  Is there some way to turn this off entirely so that it doesn't show up in the Archive Failed Devices section?  Prime seems to be able to parse the VLANs by way of the configuration file (since we use transparent mode throughout) so it seems like an extra step I don't need.

    Marvin,
    This is where everything goes off the rails for me when it comes to understanding Prime Infrastruction, Prime LMS and everything that you're talking about.  Refer to this link:  http://www.cisco.com/c/en/us/products/collateral/cloud-systems-management/prime-lan-management-solution/data_sheet_c78-697479.html
    How should I interpret this?:
    "Cisco Prime Infrastructure 1.1 bundles campus switch, branch, core routing, and wireless LAN management into a single, easy-to-order solution that enables businesses and enterprises unparalleled operational efficiencies and investment protection. The bundle consists of:
    ● Cisco Prime LAN Management Solution, which delivers simplified management of Cisco® Borderless Networks and reduces operations costs by aligning network management functionality the way network operators do their jobs
    ● Cisco Prime Network Control System, which provides complete wireless LAN management with converged user and access management, and integrated lifecycle management of branch routers
    For more information about Cisco Prime Infrastructure, please visit http://www.cisco.com/go/primeinfrastructure."
    Am I wrong to assume that the first bullet point, which states "Cisco Prime LAN Management Solution" is referring to Prime LMS 4.2?
    Thanks,
    Steven

  • Cisco Prime 1.2 - cannot delete "Unassigned" Campus

    Hi,
    has anybody an idea how to delete Unassigned Campus?
    I went through I think all documentation and they are speaking that only "System Campus" cannot be deleted, but not a single word about "Unassigned" campus.
    All the campuses below behaves like a child of Unassigned campus. I know it's just cosmetic issue, but still I would like to get rid of it.
    I attached a screenshot.
    Thanks!
    K.

    Yes you can add building and floor diagrams in Cisco Prime Infrastructure 1.2. For the same you can see the below link
    http://www.cisco.com/en/US/docs/wireless/prime_infrastructure/1.2/configuration/guide/maps.html
    Open this link and goto Adding Floor Areas to a Campus Building

  • Cisco Prime 1.2 (MAPS/FLOOR PLANS)

    Hi All,
    Does anyone have any idea on how to import and scale correctly campus, building and floor diagrams into Cisco PI?
    I have tried several times via the editor to rescale and it just doesn't work.
    Any advise would be greatly appreciated.
    Thanks in advance for any replies.
    Jason                  

    Yes you can add building and floor diagrams in Cisco Prime Infrastructure 1.2. For the same you can see the below link
    http://www.cisco.com/en/US/docs/wireless/prime_infrastructure/1.2/configuration/guide/maps.html
    Open this link and goto Adding Floor Areas to a Campus Building

  • Cisco Prime Collaboraiton Standard Licenses

    Dear Team,
    I have a customer purchased Cisco CUWL PRO & Enhanced Licenses for 10,000 Users for Unified CM version 8.0 and now he is asking for upgrade to version 10.5. The question is :
    1-since he did reinstatement for different type of licenses and already has the order, Should the customer entitle Cisco Prime Collaboration licenses by default or he has to purchase them separately?
    2-Does the customer going to receive Cisco Prime Collaboration Standard (Porvisioning and Assurance only) ?, If so for How many license Users it comes by default?. If less than 10000 ,then how to order the remaining?.
    Thanks in advance
    Regards,

    Prime collaboration standard is free and does not require any licenses. Advanced license is separate from any UC user licenses:
    Cisco Prime Collaboration Packaging: Standard and Advanced Options
    Beginning with version 10.0, Cisco Prime Collaboration is provided in two different offerings. Cisco Prime Collaboration Standard is included with all Cisco Unified Workspace Licensing and Cisco User Connect Licensing, and Cisco Prime Collaboration Advanced is available for upgrade. The Standard option is only available and compatible with Cisco UC 10.0. The Advanced option supports Cisco UC 8.x - UC 10.x. The Standard option enables provisioning of all voice and video services purchased and fault monitoring across voice and video for a single cluster environment. For deployments that require more advanced management, Cisco Prime Collaboration Advanced offers multi-cluster scale, additional automation, deeper diagnostic capabilities, and long-term reporting. This order guide addresses Cisco Prime Collaboration Advanced only.
    Customers who are interested in Cisco Prime Collaboration Advanced may activate the “Advanced Evaluation” from within the Prime Collaboration Standard GUI, for a 60 day term, or may purchase a permanent Cisco Prime Collaboration Advanced. For more information about license installation, please refer to the Cisco Prime Collaboration Quick Start Guide 10.0 posted on Cisco.com under ‘Install and Upgrade Guides.
    from:
    http://www.cisco.com/c/en/us/products/collateral/cloud-systems-management/prime-collaboration/guide-07-729809.html
    Chris

Maybe you are looking for

  • Different LOVs for a single attribute?

    Hi, In our application, we use a "domainvalues" table to store all valid values for enumerated fields. The table has a typical design, with the domain name and the value as primary key and a field for the description. In the database this table is us

  • FlowChart Applet.. where to begin?

    Hello =) could any of you help me please I have to make an Applet to build FlowCharts.. this applet eventually has to integrate with MySQL database to save and fetch data to rebuild the FlowChart for now I've used some buttons and icons to make the f

  • Zip File for iWorkplace Servlet Sample Invalid

    I've download the sample source iWorkplace2.zip and tried to unzip it but fail. It seems that the file is corrupted (about 3M file size) Can Oracle Team help ? Rgds, Edward

  • Unable to launch and uninstall U44M1P34

    Hi, recently i have an error U44M1P34. i cannot update the app. i try to follow the previous post to uninstall the app and delete all the adobe indesign folder. but then only i reliaze i couldn't found the app in the Programs and Features. i have no

  • Browser zoom causes typing lag

    When using Outlook.com mail, my user noticed a typing lag. I reset IE, disabled all startup items, tried an external keyboard on this laptop, deleted the built in keyboard driver and let it redetect on reboot, tried Google Chrome as an alternate brow