CLI Template to run Archive Command to upgrade 3750 Switch in Prime

Does anyone have or know how to write a template to upgrade a mixed stack of 3750 switches in Prime Infrastructure 2.0?  Prime does not support upgrading a mixed stack yet, but it can be done from command line.
the command line would be:
archive download-sw /allow /overwrite tftp://10.30.2.14/3750efilename  tftp://10.30.2.14/3750filename

Hi,
Please check:
1. You need to download the correct .tar image file;
2. Copy it to the root of your FTP or TFTP server;
3. Upload, extract and install the .tar file to the switches (I always use the /imageonly option, because I don’t need the html files for management);
4. Reload the switch stack;
Please use this command:
sw-stack#archive download-sw /imageonly /overwrite /allow-feature-upgrade ftp://user:password@/image-file.tar
The boot parameters are automatically changed to the new IOS firmware. You can check the boot parameters with the show boot command.
Regards
Dont forget to rate helpful posts.

Similar Messages

  • SDM template to use for ISCI on a 3750 Switch.

    What is the recommended SDM template to use for a 3750 that will primarily be used for ISCI ISAN to server communications?

    Default Desktop template should suffice.

  • 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 many times can I run PSConfig.exe -cmd upgrad .... command

    I'm getting VSS error in my eventlog -> application. I was getting 8213 and followed http://technet.microsoft.com/en-us/library/cc734219(v=ws.10).aspx and
    now I'm gettting 8230.
    Meanwhile my backups not are running. I remember running PSConfig command when I first installed windows and sharepoint 2010 on this box for system backup to work correctly.
    Now I run WMIC  QFE  LIST  FULL /Format:HTable > C:\Temp\HotfixList.html to retrieve all the installed update to check if KBs
    2460045 or 2687453 are installed unnoticed but I don't have any history of installed updates suprising eh!
    Now I want to run
    PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent
    -install -cmd installfeatures
    just incase one of them have been installed unnotice.
    How many times can I run this PSConfig command? How dangerous is this decision?

    You can run it as many times as you want, but it will take SharePoint down on that particular server (resets IIS, for example), while it executes.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Cannot run linux commands since Snow Leopard upgrade

    Hi,
    I recently upgraded to Snow Leopard (10.6) from Leopard . . . The issue is that I can no longer run some of linux commands in the same directories where I have run them before. Two cases, chmod and rm
    chmod a+x or chmod 777, I get prompts that indicate that I am not running the command properly? What's that all about?
    The other example is a recursive remove that I use all the time to get rid of backup files . . .
    rm -rf .bak or rm-rf ./bak Neither works anymore and I'm starting to doubt myself . . . when I actually found this issue I was not retyping, just reopening the command shell, and using the arrow to get back to the command(s).
    Help! I am a professional developer, but this is really slowing me down. I can't even sudo anymore.
    Also, what is wheel? When I ls-al, I see the owner is user, but the next column appears to be a group, wheel.

    I suspect, from the examples cited, you just ran them incorrectly. For instance, you have given here
    rm-rf ./bak
    which won't work as there is no space between the command "rm" and the options "-rf" (which are for "recursive" and "force"), so the shell sees the command as being "rm-rf" and there ain't no sech thing. The other remove command is for a file named ".bak" and again I suspect you have no such file, so the command won't work. If you want to remove a particular file the easy way is to just type rm, a space, and then drag the file into the Terminal. You should not need the option to force for a file created by yourself, nor do you need recursive for a single file.
    The chmod commands need something to work on, for instance
    chmod 777 /Users/francine/Desktop/misc/driveicons
    changes the permissions of the folder "driveicons" from drwxr-xr-x to drwxrwxrwx and works just fine. If you have used a command incorrectly, using the arrow keys to move back thru the history won't help, you'll just get your incorrectly used command repeated.
    I think you just don't really understand what it is you have done and are doing. My guess is that you copied some commands you found or someone gave you, without knowing much about what the Terminal is, what a shell is, how the shell works, and so on. That is all more than a little risky, especially if you are using chmod and remove commands.
    And yes, there is a group wheel. However, generally the wheel group has root (system) as the user.
    Francine
    Francine
    Schwieder

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

  • My macbook pro is running very slow after upgrading to version 10.9.1  Here are the results of running EtreCheck:

    I am running very slowly after upgrading to ver 10.9.1 on my macbook pro.  Can anyone help me to solve this problem.  I am including the results from running Etresoft.
    Hardware Information:
              MacBook Pro (15-inch, Mid 2010)
              MacBook Pro - model: MacBookPro6,2
              1 2.53 GHz Intel Core i5 CPU: 2 cores
              8 GB RAM
    Video Information:
              Intel HD Graphics - VRAM: 288 MB
              NVIDIA GeForce GT 330M - VRAM: 256 MB
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    Startup Items:
              ChmodBPF: Path: /Library/StartupItems/ChmodBPF
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 0 days 0:53:49
    Disk Information:
              Hitachi HTS545050B9SA02 disk0 : (500.11 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) /: 499.25 GB (200.83 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              HL-DT-ST DVDRW  GS23N 
    USB Information:
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Internal Memory Card Reader
              Western Digital My Passport 071A 1 TB
                        EFI (disk1s1) <not mounted>: 209.7 MB
                        Backup (disk1s2) /Volumes/Backup: 999.83 GB (622.71 GB free)
              Apple Computer, Inc. IR Receiver
              Apple Inc. Built-in iSight
    FireWire Information:
    Thunderbolt Information:
    Kernel Extensions:
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist
              [loaded] com.kodak.aio.kcpconnector.plist
              [loaded] com.leapfrog.connect.shell.plist
              [loaded] com.microsoft.office.licensing.helper.plist
              [loaded] com.sonos.smbbump.plist
    Launch Agents:
              [loaded] com.kodak.BonjourAgent.plist
    User Launch Agents:
              [loaded] com.adobe.ARM.[...].plist
              [loaded] com.google.keystone.agent.plist
              [loaded] com.kodak.KODAK AiO Firmware Updater.plist
              [loaded] com.kodak.KODAK AiO Software Updater.plist
              [loaded] com.kodak.StatisticCollection.plist
              [loaded] com.spotify.webhelper.plist
              [loaded] uk.co.markallan.clamxav.freshclam.plist
    User Login Items:
              Monitor
              ScanSnap Manager
              Evernote
              Dropbox
              AdobeResourceSynchronizer
    3rd Party Preference Panes:
              Flash Player
              Growl
    Internet Plug-ins::
              Flip4Mac WMV Plugin: Version: 2.3.8.1
              FlashPlayer-10.6: Version: 11.9.900.170 - SDK 10.6
              Default Browser: Version: 537 - SDK 10.9
              AdobePDFViewerNPAPI: Version: 10.1.8
              AdobePDFViewer: Version: 10.1.8
              Flash Player: Version: 11.9.900.170 - SDK 10.6
              QuickTime Plugin: Version: 7.7.3
              SharePointBrowserPlugin: Version: 14.3.9 - SDK 10.6
              Silverlight: Version: 4.0.51204.0
              iPhotoPhotocast: Version: 7.0 - SDK 10.8
    User Internet Plug-ins::
              Google Earth Web Plug-in: Version: 7.1
              Dashlane: Version: Dashlane 1.0.0 - SDK 10.7
    Bad Fonts:
              None
    Old applications:
              AiOFirmwareUpdater:          Version: 7.7 - SDK 10.5
                        /Library/Printers/Kodak/AiO_Printers/AiOFirmwareUpdater.app
              Install Spotify:          Version: 1.0 - SDK 10.5
                        /Users/jimschindler/Downloads/Install Spotify.app
              KODAK AiO Home Center:          Version: 7.7.3 - SDK 10.5
                        /Library/Printers/Kodak/AiO_Printers/KODAK AiO Home Center.app
              KODAK AiO Scan:          Version: 7.7.3 - SDK 10.5
                        /Library/Printers/Kodak/AiO_Printers/KODAK AiO Scan.app
              KODAK AiO Software Updater:          Version: 7.7 - SDK 10.5
                        /Library/Printers/Kodak/AiO_Printers/KODAK AiO Software Updater.app
              KODAK AiO Uninstall:          Version: 7.7.3 - SDK 10.5
                        /Library/Printers/Kodak/AiO_Printers/KODAK AiO Uninstall.app
              Microsoft Alerts Daemon:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Alerts Daemon.app
              Microsoft AutoUpdate:          Version: 2.3.6 - SDK 10.4
                        /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
              Microsoft Chart Converter:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Chart Converter.app
              Microsoft Clip Gallery:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Clip Gallery.app
              Microsoft Database Daemon:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Database Daemon.app
              Microsoft Database Utility:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Database Utility.app
              Microsoft Document Connection:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Microsoft Document Connection.app
              Microsoft Error Reporting:          Version: 2.2.9 - SDK 10.4
                        /Library/Application Support/Microsoft/MERP2.0/Microsoft Error Reporting.app
              Microsoft Excel:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Microsoft Excel.app
              Microsoft Graph:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Graph.app
              Microsoft Language Register:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Additional Tools/Microsoft Language Register/Microsoft Language Register.app
              Microsoft Office Reminders:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Office Reminders.app
              Microsoft Outlook:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Microsoft Outlook.app
              Microsoft PowerPoint:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Microsoft PowerPoint.app
              Microsoft Ship Asserts:          Version: 1.1.4 - SDK 10.4
                        /Library/Application Support/Microsoft/MERP2.0/Microsoft Ship Asserts.app
              Microsoft Upload Center:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Microsoft Upload Center.app
              Microsoft Word:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Microsoft Word.app
              My Day:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/My Day.app
              Open XML for Excel:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Open XML for Excel.app
              Registration:          Version: 7.7.3 - SDK 10.5
                        /Library/Printers/Kodak/AiO_Printers/Registration.app
              Solver:          Version: 1.0 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/Add-Ins/Solver.app
              Spotify:          Version: 0.8.4.124.ga3559d86 - SDK 10.5
                        /Applications/Spotify.app
              SyncServicesAgent:          Version: 14.3.9 - SDK 10.5
                        /Applications/Microsoft Office 2011/Office/SyncServicesAgent.app
    Time Machine:
              Skip System Files: NO
              Mobile backups: ON
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 464.96 GB Disk used: 277.92 GB
              Destinations:
                        Backup [Local] (Last used)
                        Total size: 931.17 GB
                        Total number of backups: 85
                        Oldest backup: 2013-02-13 18:40:47 +0000
                        Last backup: 2013-12-31 17:59:26 +0000
                        Size of backup disk: Adequate
                                  Backup size 931.17 GB > (Disk used 277.92 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                  29%          Mail
                   3%          WindowServer
                   2%          mtmd
                   1%          EtreCheck
                   0%          NETGEARGenieDaemon
    Top Processes by Memory:
              410 MB          mds_stores
              238 MB          Evernote
              229 MB          Mail
              147 MB          iBank
              123 MB          WindowServer
    Virtual Memory Statistics:
              3.36 GB          Free RAM
              2.92 GB          Active RAM
              621 MB          Inactive RAM
              1.11 GB          Wired RAM
              1.67 GB          Page-ins
              0 B          Page-outs

    Things You Can Do To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with visits to:     OS X Maintenance - MacAttorney;
                                      The X Lab: The X-FAQs;
                                      The Safe Mac » Mac Performance Guide;
                                      The Safe Mac » The myth of the dirty Mac;
                                      Mac maintenance Quick Assist.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    Repair the Hard Drive - Lion/Mountain Lion/Mavericks
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the Utilites Menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD disk icon and click on the arrow button below.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    Note: Alsoft ships DW on a bootable DVD that will startup Macs running Snow Leopard or earlier. It cannot start Macs that came with Lion or later pre-installed, however, DW will work on those models.
    Suggestions for OS X Maintenance
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or later and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive.
    Helpful Links Regarding Malware Protection
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
              Mac OS X Snow Leopard and malware detection
              OS X Lion- Protect your Mac from malware
              OS X Mountain Lion- Protect your Mac from malware
              About file quarantine in OS X
    If you require anti-virus protection I recommend using VirusBarrier Express 1.1.6 or Dr.Web Light both from the App Store. They're both free, and since they're from the App Store, they won't destabilize the system. (Thank you to Thomas Reed for these recommendations.)
    Troubleshooting Applications
    I recommend downloading a utility such as TinkerTool System, OnyX, Mavericks Cache Cleaner, or Cocktail that you can use for removing old log files and archives, clearing caches, etc. Corrupted cache, log, or temporary files can cause application or OS X crashes as well as kernel panics.
    If you have Snow Leopard or Leopard, then for similar repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. Applejack does not work with Lion and later.
    Basic Backup
    For some people Time Machine will be more than adequate. Time Machine is part of OS X. There are two components:
    1. A Time Machine preferences panel as part of System Preferences;
    2. A Time Machine application located in the Applications folder. It is
        used to manage backups and to restore backups. Time Machine
        requires a backup drive that is at least twice the capacity of the
        drive being backed up.
    Alternatively, get an external drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner
      2. Get Backup
      3. Deja Vu
      4. SuperDuper!
      5. Synk Pro
      6. Tri-Backup
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files. For help with using Time Machine visit Pondini's Time Machine FAQ for help with all things Time Machine.
    Referenced software can be found at MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Pre-Mavericks
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Mavericks and later
    Open Activity Monitor in the Utilities folder.  Select All Processes from the View menu.  Click on the CPU tab in the toolbar. Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

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

  • CLI Templates in Prime

    I'm learning how to create CLI templates and have an easy question.
    A few weeks ago a created a very simple template that configured a logging server (Prime). It had two lines:
    logging facility syslog
    logging xxx.xxx.xxx.xxx  (IP of my Prime server)
    I wasn't sure if I needed to use the command 'configure terminal' or not and left it out. It turns out that Prime is smart enough to enter configure mode before running the commands but it did not write the new configuration and left all the switches with a mismatch between Run and Start.
    I'm now writing another simple template and don't know how to put in the write command. Do I just put that after some configure mode commands and trust that Prime is smart enough to exit configure mode before executing 'write' or should I explicitly put an 'exit' before 'write' ?
    This?:
    no logging event link-status
    write
    or this?:
    no logging event link-status
    exit
    write

    do copy running-config startup-config
    produces the error:
    copy not allowed in config mode or submode
    so instead I used:
    do wr

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

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

  • Applescript for running sudo commands in terminal

    I'm a newbie when it comes to Applescript and was wondering if someone could help with a basic request. I need to write a small script to do the following:
    1. Launch terminal
    2. Run the 'Sudo -s' command
    3. Enter the administrator password (in plain text)
    and then
    4. run some sudo commands like "sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add administrator"
    I actually WANT the administrator password to be in the script in plain text even though I understand the security risks (I will literally be the only person to ever see the script). I've trawled forums all over but can't seem to find what I am looking for and cannot get it working by patching together the various commands I have found. Thanks in advance for any help you can give!
    Sean

    I've included two examples.  The preferred way & the hacker way.
    with administrator
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "sudo ls -l  " & quotedUnixDesktopPath with administrator privileges
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run
    This version has an inline password.
    Notice the echo 'password' |
    The single quotes are no accident.
    It is easier to diagnose problems with debug information. I suggest adding log statements to your script to see what is going on.  Here is an example.
        Author: rccharles
        For testing, run in the Script Editor.
          1) Click on the Event Log tab to see the output from the log statement
          2) Click on Run
        For running shell commands see:
        http://developer.apple.com/mac/library/technotes/tn2002/tn2065.html
    on run
        -- Write a message into the event log.
        log "  --- Starting on " & ((current date) as string) & " --- "
        --  debug lines
        set unixDesktopPath to POSIX path of "/System/Library/User Template/"
        log "unixDesktopPath = " & unixDesktopPath
        set quotedUnixDesktopPath to quoted form of unixDesktopPath
        log "quoted form is " & quotedUnixDesktopPath
        try
            set fromUnix to do shell script "echo 'password' | sudo ls -l  " & quotedUnixDesktopPath
            display dialog "ls -l of " & quotedUnixDesktopPath & return & fromUnix
        on error errMsg
            log "ls -l error..." & errMsg
        end try
    end run

  • Sharepoint Foundation 2013 - Databases running in compatibility range, upgrade recommended

    I have an issue with Search within my SharePoint Foundation 2013 Farm. This is a new Farm, so I can remove the search service application and re-create if this is a way that can clear the 2 issues I am experiencing.
    Issue:
    My search service application seems to be working fine as I am able to crawl content and retrieve results, however the DB's associted with this search service application are reported with the following warning within the SharePoint Health Analyzer. I have
    been unable to run the Upgrade-SPContentDatabase command against these databases as I get a message saying that the content database could not be found:
    Title
    Databases running in compatibility range, upgrade recommended.
    Severity
    2 - Warning
    Category
    Configuration
    Explanation
    The following databases have versions that are older than the current SharePoint software, but are within the backwards compatible range:
    Search_Service_Application_AnalyticsReportingStoreDB_a3c64b2f3b9b4a5d83383ec0b1ecfcf4,
    Search_Service_Application_CrawlStoreDB_ffb8d716450242cc849a7f44f521bfc9,
    Search_Service_Application_DB_0fe433c02db6435db85285e9fd83863e,
    Search_Service_Application_LinksStoreDB_75efb2f689cf49f19c98a5a8155e47b7.
    Remedy
    To achieve optimal results from these databases, use Upgrade-SPContentDatabase to upgrade Content databases, or psconfig.exe to upgrade other databases.  For more information about this rule, see "http://go.microsoft.com/fwlink/?LinkID=142697".
    Kevin Evans

    http://social.technet.microsoft.com/Forums/sharepoint/en-US/d6b8a59c-e432-43a2-9581-d281c8cb7fb4/databases-running-in-compatibility-range-upgrade-recommended
    ran these hotfixes on my frontends:
    417831_intl_x64_zip.exe
    429437_intl_x64_zip.exe
    429440_intl_x64_zip.exe
    Restarted and followed by 1,2,3
    1. Open an Administrative command prompt.
    2. Change directory to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\BIN
    3. Run PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures
    If you recently applied any  hotfix check 
    http://blog.entos.at/Lists/Posts/Post.aspx?ID=14
    If this helped you resolve your issue, please mark it Answered

  • My iPhoto library won't open because "it first needs to be prepared," but running the iPhoto Library Upgrader does not change anything.  What gives?

    I'll try to be as detailed as I can:
    I have a mid-2010 iMac.  I backed-up and then wiped my Mountain Lion hard drive so that I could have a clean install of Mavericks.  I am now in the process of importing my backed-up files, like iTunes and documents, from my external back-up to my new Mavericks machine.  Everything in this process has worked so far.  I moved the iPhoto library over from the external back-up to the proper location (Users->Pictures->iPhoto Library).  Two hours later when the transfer was complete, rather than having a normol iPhoto Library icon (stack of pictures with a photo of a flower), the library appeared as a folder with a half done progress bar and an "x" close button in the corner. 
    This library would not open so I deleted it and started the whole thing over.  Two hours later, same thing.  I then restarted my machine and got a regularl looking iPhoto Library icon, but now when I try to open it I get a prompt that says "To open your library with this version of iPhoto, it first nees to be prepared: to prepare the library, use the iPhoto Library Upgrader avaliable from Apple."  I downloaded the iPhoto Library Upgrader from Apple, ran it, and it says that the library has been updated and can now be used.  But when I try to open iPhoto, I hit the same problem, iPhoto doesn't open and I instead get a prompt saying that the library needs to be prepared. 
    One more thing, when I run the iPhoto Library Upgrader, there is a un-progressing progress bar (a sideways barber shop poll) that says the program is building thumbnails, but then Upgrader gives me a prompt that the library has been upgraded (even though the progress bar is still cranking along).  PLEASE HELP.

    What version of iPhoto were you running prior to Mavericks?  First boot into Revovery volume (boot with the Command  + R keys held down) and repair the disk and disk permissions.  Then reboot back into Mavericks.
    Two hours later when the transfer was complete, rather than having a normol iPhoto Library icon (stack of pictures with a photo of a flower), the library appeared as a folder with a half done progress bar and an "x" close button in the corner.
    There was a problem with copying the older iPhoto library from the backup.  Delete the library and drag it once again from the backup drive to the Pictures folder.  Run the upgrader again. Is this what you see when your first launch the upgrader?
    OT

Maybe you are looking for

  • MY Powerbook 12" S.M.A.R.T. is failing i Need a New HD?

    I was listening to music last week and my PB was running slow so i restarted it and it took forever to login and after i logged in I went to disc Utility andd it said "This drive has reported a fatal hardware error" So I backed everything up and i go

  • Built-in iSight, MacBook Pro, Boot Camp, XP

    Though the Apple website suggests that Boot Camp has support for the built-in iSight, I cannot seem to get it to function in XP on my MacBook Pro. Following is a summary of my configuration. The built-in iSight works perfectly within OS-X. Here is my

  • Plz help anyone who know how to fix my notification badge in itunes plz give an idea how to do ?

    i cant used properly my apps like fb , youtube ang other apps because of the notification badge. they have a notice everytime i open the apps "connect the itunes to used the push notification" anyone who have experience this problem in their iphone,

  • What's the maximum hard disk size for the MBP?

    Sorry the title might sound like a dumb question, but I was wondering if my MBP Core Duo, is future proof regarding the internal hard disk. Will it recognise any capacity, or stuck at a certain level? Also what are the largest Apple supported interna

  • No Reporting Symbol for the cube.

    Hi all, no reporting symbol for an cube. I created Z cube without any aggregates and loaded data sucessfuly QM status is green but i'm not able to see the reporting symbol next the request id.  When i checked in manage content data, data is available