Device reboot via CLI template in PI1.3

Hi together,
Is there any possibility to force a device (e.g. a switch/router) reload via Prime Infrastructure 1.3?
I tried using a simple reload command via cli template, but it doesn't work for me.
Thanks for your answers.
Regards
Sebastian

Did you get anywhere with this?  I want to do something similar, configure just some port, not all ports.  Prime seems to work by deploying templates to device groups, but I want it to deploy by device and port groups.  Sadly it seems port groups are just monitoring filters only.
There only appears to be 17 DB variables in Prime at the moment and none of them are interface description.
I don't know if you can edit the CLITemplateDbVariablesQuery.properties file to add some more.
I don't understand why the port of port groups isn't available to configuration deployment.

Similar Messages

  • Prime infrastructure 2.1.2 cli template "copy tftp://..." error

    I tried to copy a new ios image to several 3850 switche via CLI template but it failed.
    The template lokks like:
    #INTERACTIVE
    copy tftp://10.x.x.x/cat3k_caa-universalk9.SPA.03.06.02a.E.152-2a.E2.bin flash: <IQ>Destination filename [cat3k_caa-universalk9.SPA.03.06.02a.E.152-2a.E2.bin]? <R>
    #ENDS_INTERACTIVE
    The error message looks like:
    Error : Command returned an error : copy tftp://10.x.x.x/cat3k_caa-universalk9.SPA.03.06.02a.E.152-2a.E2.bin flash: ^ % Invalid input detected at '^' marker. SLT-EGDV4-255-4(config)#
    What is wrong here?
    Regards
    Stephan

    Well, from my point of view I've set up all things regarding ssh/scp correctly, but an upgrade via software deployment and ssh fails. Here is the logfile:
    ade # cat 10.142.255.5_scp_telnet.log
    dir /all flash:
    Directory of flash:/
    54210 -rwx 2097152 Apr 28 2015 08:01:10 +02:00 nvram_config
    69697 drwx 4096 Apr 16 2015 14:27:37 +02:00 dc_profile_dir
    54215 -rw- 10435 Apr 23 2015 14:04:01 +02:00 wnweb.tgz
    14 -rw- 1248 Apr 23 2015 15:02:23 +02:00 packages.conf.3-6
    54216 -rw- 82615244 Apr 23 2015 15:02:18 +02:00 cat3k_caa-base.SPA.03.06.02aE.pkg
    54222 -rw- 99253056 Apr 23 2015 15:02:19 +02:00 cat3k_caa-wcm.SPA.10.2.120.0.pkg
    15 -rw- 1248 Apr 28 2015 07:52:55 +02:00 packages.conf.3-5
    54218 -rwx 2296 Apr 17 2015 09:52:48 +02:00 vlan.dat
    54217 -rw- 4922044 Apr 23 2015 15:02:18 +02:00 cat3k_caa-drivers.SPA.03.06.02aE.pkg
    12 drwx 4096 Jan 6 2014 07:41:29 +01:00 mnt
    85188 -rw- 79122052 Feb 10 2015 08:44:16 +01:00 cat3k_caa-base.SPA.03.03.05SE.pkg
    85189 -rw- 6521532 Feb 10 2015 08:44:16 +01:00 cat3k_caa-drivers.SPA.03.03.05SE.pkg
    85190 -rw- 34530288 Feb 10 2015 08:44:16 +01:00 cat3k_caa-infra.SPA.03.03.05SE.pkg
    85191 -rw- 34846028 Feb 10 2015 08:44:17 +01:00 cat3k_caa-iosd-universalk9.SPA.150-1.EZ5.pkg
    85192 -rw- 25170832 Feb 10 2015 08:44:17 +01:00 cat3k_caa-platform.SPA.03.03.05SE.pkg
    85193 -rw- 77456192 Feb 10 2015 08:44:17 +01:00 cat3k_caa-wcm.SPA.10.1.150.0.pkg
    54219 -rw- 33756144 Apr 23 2015 15:02:18 +02:00 cat3k_caa-infra.SPA.03.06.02aE.pkg
    54220 -rw- 42882380 Apr 23 2015 15:02:18 +02:00 cat3k_caa-iosd-universalk9.SPA.152-2a.E2.pkg
    54221 -rw- 27362192 Apr 23 2015 15:02:18 +02:00 cat3k_caa-platform.SPA.03.06.02aE.pkg
    13 -rw- 1248 Feb 10 2015 08:44:22 +01:00 packages.conf
    1621966848 bytes total (1021952000 bytes free)
    SLT-EGDV4-255-5#software clean
    Preparing clean operation ...
    [1]: Cleaning up unnecessary package files
    [1]: No path specified, will use booted path flash:packages.conf
    [1]: Cleaning flash:
    [1]: Preparing packages list to delete ...
    In use files, will not delete:
    cat3k_caa-base.SPA.03.03.05SE.pkg
    cat3k_caa-drivers.SPA.03.03.05SE.pkg
    cat3k_caa-infra.SPA.03.03.05SE.pkg
    cat3k_caa-iosd-universalk9.SPA.150-1.EZ5.pkg
    cat3k_caa-platform.SPA.03.03.05SE.pkg
    cat3k_caa-wcm.SPA.10.1.150.0.pkg
    packages.conf
    [1]: Files that will be deleted:
    cat3k_caa-base.SPA.03.06.02aE.pkg
    cat3k_caa-drivers.SPA.03.06.02aE.pkg
    cat3k_caa-infra.SPA.03.06.02aE.pkg
    cat3k_caa-iosd-universalk9.SPA.152-2a.E2.pkg
    cat3k_caa-platform.SPA.03.06.02aE.pkg
    cat3k_caa-wcm.SPA.10.2.120.0.pkg
    packages.conf.3-5
    packages.conf.3-6
    [1]: Do you want to proceed with the deletion? [yes/no]: yes
    [1]: Clean up completed
    Than it fails back to TFTP which is working but taking lots of time... Attached is a screenshot of image management in PI.

  • Sort order from NAT rules via CLI

    Hi all,
    im a newbie here and i have my first question. Hope you can help me to find a solution.
    Is there a way to change the order of NAT statements via CLI in Cisco ASA IOS 9.1 ?
    By ASDM i can change the order and bring them up and down to the place where i must have them, but i found no way to do this via CLI.
    Any Ideas?
    Greetings from germany
    Marco

    You would need to remove the NAT statements and then re-add them in the order you want them to appear.  The ASDM does it the same way but makes it easier by you just having to move the NAT rule to where you want it and apply...the ASDM does the rest.  If you set your ASDM to show the commands before they are applied you will see how the ASDM does this.  The setting is under Tool > Preferences and select Preview commands before sending them to the device
    Please remember to select a correct answer and rate helpful posts

  • Unable to login to ISE 1.2 via Cli

    Hi,
    I have a weird problem; after changing the default admin password on cli and rebooting the unit; i am no longer able to login via cli. Instead I get the following message:
    % Error: Unable to launch ADE-OS shell. Disk full.
    The ISE is running 1.2 with patch 3 installed.
    If I try to access via web, it is running normally. I was wondering if anyone encounter such issue and any suggestions on how to fix it?
    Any suggestion is appreciated.
    Thanks.

    Hi ,
    you may be probably hitting one of these two defects.
    CSCuj52520 or
    CSCuj97832.
    There are workarounds for these two defects and initially we need to know if it is the problem due to Admin user previleges corruption or issue with MNT DB growing in size and occupying the entire tablespace.
    I suspect this could be a Admin privilege corruption and can be fixed with Rescue ISO image.
    Can you please raise SR with TAC who can provide you with Rescue ISO image and help you in implementing the workaround.

  • Cli templates prime 2.1

    HI
    I was wondering. Is it possible to run a CLI template that does the following.
    1. Running the CDP neighbor command to find out who the neighbors are.
    2. And automaticly entering a description command on the interface with the hostname and IP that it has found with the cdp neighbor command.
    Im having a big network where i have description on the trunk ports who they are linked to. With device name and IP.
    But im running through my network now trying to get the hostnames a bit better and more aligned.. But everytime i change a hostname i has to follow up on all the trunk ports to make sure the descriptions there are correct as well. Would be really cool if a cli template could do that job for me.
    Thanks :)
    / Carsten

    Not an answer per se but what you're describing reminded me of Prescriptive Topology Manager. It's built into Cumulus Networks' product and based on some open source work.
    Ethan Banks also has a nice article on it at his blog.
    (And - no, doing what you ask is not a feature that's available as of PI 2.1.)

  • 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 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

  • How do I know which commands have been pushed to switch by PI CLI template

    We have PI version 1.3. I tried to deploy the built-in CLI template "vlan" just to create a vlan. I run the template and input vlan ID and name. The job is shown as successful in PI but the vlan is not created on the switch. In the transcript part of the job history, it only shows "configlet:response: config t". Please see the attachment for the screen shot. How do I know which commands have been pushed to the switch by the CLI template? How does PI push the CLI template to the switch? via snmp or telnet? I tried to run "debug tacacs authentication" and "debug tacacs accounting" on the switch because the switch is configured for command authentication and command accounting but I don't see any commands in the debug. It looks PI did not push any commands to the switch. Please help me to troubleshoot this.
    Thanks.

    The MPEG 2 Playback Component required by Streamclip is an optional purchase.
    http://store.apple.com/us/product/D2187Z/A
    There are other converters that can handle MPEG-2 files; try Handbrake.
    Regards.

  • How to setting ip address air lap 1262N-A-K9 via CLI?

    as my title, can we configure ip address air lap 1262N-A-K9 via CLI?
    Thanks for any responses

    Hi,
    Do you console access or telnet/ssh to device?
    What message do you get when you type above command?
    Regards
    Najaf
    Please rate when applicable or helpful !!!

  • CLI template creator with variables - where to start

    Hello people !
    I would like to be able to create a template that checks a device hostname and  takes actions according to it - my goal is to enable Energy Wise Domains - one for every location.
    If I could have LMS4.2 to check the hostname of the device then would be easy to attribute the device to the aproppriate domain.
    Exam.
    Device hostname AAAA_switch1 - Domain 1
    Device hostname AAAA_switch2 - Domain 1
    Device hostname BBBB_switch1 - Domain 2
    I have read several threads about this but I am not being able to understand where is the best place to start.
    Any help would be most apprecciated and will be rewarded with the deserved points
    Thanks in advance
    Isaac

    Hello again
    I am moving forward on my quest and hope that someone will give me a hand at some point   - these are my first steps on XML on LMS so I'll probably do some not so clever remarks.
    Anyway to start I have created a cli template and exported it - that way I would have an XML file with the correct structure - I thought :).
    Even if I dont do any changes and try so simply import to LMS the file created on the template I get the error message:
    "Template import Failed. Unable to parse the XML file.Please ensure that the XML file is complaint to the schema."
    Any ideas on what could be causing this?
    many thanks
    Isaac

  • 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#

  • Prime Infrastructure 2.1 CLI Template to TFTP Copy File?

    I'm trying to run the following command on a range of devices:
    copy tftp://10.10.10.10/new-acl.txt running-config
    The command is in enable mode and interactive, it prompts for confirmation of the filename.
    Here's the CLI template I've cobbled together:
    #MODE_ENABLE
    #INTERACTIVE
    copy tftp://10.10.10.10/new-acl.txt running-config<IQ>Destination filename [running-config]? <R>running-config
    #ENDS_INTERACTIVE
    #MODE_END_ENABLE
    However, it fails with:
    Error : Exception while sending interactive commands to device, java.util.regex.PatternSyntaxException:Illegal character range near index 31 'Destination filename [running-config]? ' ^
    I've tried escaping the string with single quotes, double quotes and backslashes for the []? characters, but nothing seems to work. Any advice from the community on how to proceed?

    Based on what I understood your suggestion to be, I changed the template from:
    #MODE_ENABLE
    #INTERACTIVE
    copy tftp://10.10.10.10/new-acl.txt running-config<IQ>Destination filename [running-config]? <R>running-config
    #ENDS_INTERACTIVE
    #MODE_END_ENABLE
    to:
    #MODE_ENABLE
    #INTERACTIVE
    copy tftp://10.10.10.10/new-acl.txt running-config<R>
    #ENDS_INTERACTIVE
    #MODE_END_ENABLE
    Deploying the new template resulted in the error:
    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 : Destination filename [running-config ]? Current expects : (<switchname>|<switchname>)\([^\)]+\)#\s*\z <switchname>#

  • Is there a way to add, delete or change a FAC code via CLI in CUCM?

    Hi everyone,
    I was wondering if it is possible to add, delete or change a fac code(or client matter) via CLI?
    I know how to do it via BAT tool, but I want to do it via CLI(if it's possible).
    I´m using CUCM 6.
    I'll really appreciate your comments.
    Thanks..
    Dave.

    There are no instructions n how to do this and we do not support doing any kind of changes to the DB via CLI unless instructed by TAC.
    If you still want to do so, read the data dictionary for your CUCM version and work your CLI queries, again, if anything happens and the DB becomes corrupted or you have undesired results, we won't provide any level of support.
    Previously I mentioned which are the supported methods for adding elements to the DB, I encourage you to use any of them.
    Sent from Cisco Technical Support iPad App

  • Ringer off & device reboot

    i bought this bb curve 9320 on 15 Aug 2012 from mobile store, since then i'm facing this issue of ringer going off n device reboot all of a sudden, got this checked twice with redington service center, according to redington official software needs to be updated, but they are themselves are not sure whether it will solve my problem or not, infact they suggested to use the device on 2g mode only, have checked the version, it has a latest version installed i.e 7.1.0 bundle 1319. Request help. I'm very disappointed the way blackberry provide customer service and cud not believe that this is actually happening, 15 k price tag not worth for this kind of device :-(

    Hi vikasaroraa
    Welcome to the Community
    Sorry for the problem you are having but as you know this is User Support Forums here user like you and us try to help each other.
    And regarding your problem we can try to help,Can you tell us How many Third party Applications you had installed in your device or you can try starting your device on safe mode   KB17877   and run for say 1 hrs to see if problem appear.If on safe mode those problem does not appear it means your Application ( if any installed ) are responsible .But if problem persist you can try Reloading your Device software by yourself to rule out any software.
    KB11320 : How to perform a clean Reload of the BlackBerry Device Software using BlackBerry Desktop Software for Windows.
    But if your problem reappear then I think best option is to Contact your Carrier for Warranty replacement or Repair.
    Prince
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Possible to test aggregates via web template?

    Hi,
    Is there i similar transaction code to rsrt to test web templates (instead of queries), for aggregates?
    We have a web template with several data providers and queries, and it would be a lot easier to test via the template.
    BR,
    Niclas

    Hi,
    after switching to html display you see a large box.  Just add &template_id=<your templayte name>.  The query field can be empty.
    It only works for webtemplates created with WAD 3.5 however.
    Best regards,
    Ralf

Maybe you are looking for

  • Problem with iTunes and TeamSpeak

    When I listening music in iTunes and I use TeamSpeak to talk with my friends, iTunes sound fail. iTunes is incompatible with TeamSpeak, so I want to know if you can make a patch to this. TeamSpeak Website www.goteamspeak.com Regards. Emilio Jéldrez

  • IPod "cannot be updated. The required file is in use."

    Since updating to iTunes 7 the program keeps saying that "The iPod "iPod name" cannot be updated. The required file is in use." When I click on "OK" it does in fact update. I tried to restore the iPod but couldn't do it from within iTunes but I could

  • My audio gets out of sync with my video after capturing from Sony XDCAM

    Everything was fine. I captured content from my Sony XDCAM, created pieces, no problem. Imported a .mov from my older FCP (5.1.4). FCP told me I needed to change my settings in order to use the .mov with my current timeline. I said OK, fine. Now, whe

  • TS2580 my site will not update new pages

    I have added a contact us page to my iweb site.  I have saved the work, then published the site.  When I go to visit the site the page does not show up?

  • HT5312 Wrong rescue email address, since changed. Am I safe?

    Initially I gave the wrong rescue address, which went through to someone else. I have since changed it to the right address and have verified that. Is my account now safe from whoever got the initial verification email?