For example pushing the same login message/banner to all of your devices with a few clicks.
If you only have one device it may not be such a big deal but if you have 100's or thousands of switches, routers or security devices then that could be time consuming.
....Ain't nobody got time for that!!!!...
If you've worked in the CLI on network devices you start to notice that large chunks of the configuration are the same across every platform. There may be some deltas between your EX devices and your SRX devices but CLI Configlets will help you there as well by setting device family. When you categorize by family it gives you the ability to pick and choose the groups to push the configlet to.
OK enough about how cool configlets are lets get in the Space GUI and get some!
1. Open your favorite browser and point it at space https://[space-ip]/mainui
2. Enter your login credentials: Default user = super password= juniper123
4. Navigate to CLI Configlets > Configlets
5. Click the green (+) icon and then fill in the information for your configlet. It is pretty straight forward and user friendly. Unless you are updating physical or logical interfaces with this configlet choose /device for the context.
7. Click the Create button and you wind up with your very own CLI Configlet! It will take you back to the configlet screen and you will see the entry with Name Domain Category etc. To modify that specific configlet, or view it or even clone it, first, highlight your configlet and then right click on it. You will see a menu pop up where you can do all that self explanatory fun stuff. We are going to skip that to cut down on the length of this post. The REAL purpose of this is to PUSH the configlet to the network device! So lets do that!
First lets make an observation. When I log into the device now it has a PRE configlet message that I put there manually:
ssh space@192.168.1.140
BEFORE THE CONFIGLET!
Password:
--- JUNOS 13.2X50-D19.2 built 2014-05-20 02:56:07 UTC
{master:0}
space@ex2200-1>
8. So now lets select the device, an ex2200 that is under the device section. We highlight and right-click on the ex2200 and then navigate to Device Operations > Apply CLI Configlet
9. Now locate our DEMO configlet and highlight it. The device we selected from the device field should appear below. Click Next and you should see the preview configlet area that we created a few steps ago.
10. Next you can click Apply. You can also validate the configlet but lets go ahead and Apply this puppy!
11. BAM as you can see the CLI configlet was applied succesfully! Now lets check on SSH login just to verify:
$ ssh space@192.168.1.140
THIS IS THE DEMO MESSAGE. WHEN WE PUSH THIS USING SPACE IT WILL AUTO MAGICALLY SHOW UP ON THE SWITCH!
SEVERAL CARRIAGE RETURN LINE FEEDS
Password:
--- JUNOS 13.2X50-D19.2 built 2014-05-20 02:56:07 UTC
{master:0}
space@ex2200-1>
12. Now you have the knowledge on how to create and apply a CLI configlet to not just one device but your entire enterprise if needed.
NOW THATS POWERFUL! Not to mention efficient!
Imagine having to log into 100 or 1000 devices and do that by hand? Sure you could script it but you would be the only one who really knew how to run it. Now, that it is a CLI configlet, you have empowered your entire team to make minor changes to it and push it to the network.
The login message was pretty basic. Think of it in terms of large firewall policies, policers, snmp client updates, ntp or dns updates. With a couple of clicks you can update your entire network!
I hope this provides some insight into the power and maturity of JUNOS Space and how you can use this utility to improve your network.
For more information go to: https://www.juniper.net/documentation/en_US/junos-space13.1/platform/information-products/pathway-pages/junos-space-cli-configlets-pwp.html