Juniper EX3200-4200 Switch (download and upload working)

Version 1

    Thanks to tgrenda34 and his version Juniper EX4200 Switch I used that and some help from Rachel at Solarwinds to create this device template for Juniper EX3200 and EX4200 switches.

    It's modified in that:

    download startup saves config in "| display set" format which CANNOT be uploaded with a "load override terminal" to replace the whole config (gave me syntax errors when I tried manually)
    download running will save config in hierarchy format which CAN be uploaded using "upload config" which performs a junos "load override terminal - pastes the config - hits ctrl+D and is complete.
    Upload config will do a load override terminal - so change that if you want to do something different - I set it like this so that NCM can recover a config previously downloaded (in the proper format).


    user will just have to know that startups cannot be pushed to the device using "upload config", for example as a baseline recovery or something...but the other one can.

    tested and verified on EX3200/4200 switches.  (should work for VC stacks too - though the reload should be changed in that case to reload all-members)

    script text below in case of download issues:

    <!--SolarWinds Network Management Tools-->
    <!--Copyright 2007 SolarWinds.Net All rights reserved-->
    <Configuration-Management Device="Juniper EX3200-4200 Switches" SystemOID="1.3.6.1.4.1.2636.1.1.1.2.31">
        <Commands>
            <Command Name="Reset" Value="set cli complete-on-space off${CRLF}set cli screen-width 0${CRLF}set cli screen-length 0"/>
            <Command Name="Reboot" Value="request system reboot${CRLF}yes"/>
            <Command Name="EnterConfigMode" Value="configure"/>
            <Command Name="ExitConfigMode" Value="commit and-quit"/>
            <Command Name="MenuBased" Value="false"/>
            <Command Name="VirtualPrompt" Value="%"/>
            <Command Name="EnterCLI" Value="cli${CRLF}configure${CRLF}"/>
            <Command Name="Startup" Value="| display set"/>
            <Command Name="Running" Value=""/>
            <Command Name="DownloadConfig" Value="show ${ConfigType}${CRLF}"/>
            <Command Name="UploadConfig" Value="${EnterConfigMode}${CRLF}load override terminal${CRLF}${ConfigText}${CRLF}${CRL+D}${ExitConfigMode}"/>
            <Command Name="DownloadConfigIndirect" Value="copy ${ConfigType} ${TransferProtocol}://${StorageAddress}/${StorageFilename}${CRLF}"/>
            <Command Name="UploadConfigIndirect" Value="copy ${TransferProtocol}://${StorageAddress}/${StorageFilename}  ${ConfigType}${CRLF}"/>
            <Command Name="SaveConfig" Value="${EnterConfigMode}${CRLF}${ExitConfigMode}"/>
            <Command Name="Version" Value="show version brief"/>
           
        </Commands>
    </Configuration-Management>