Рет қаралды 7,520
Hello and welcome to module 11 of the NetBox 'Zero-to-Hero' course. zerotohero.net...
Now it's time for the Brisbane office to 'go live', so Eric is going to use a custom script to Update the status of the Site, and all Locations, Racks, Devices, Clusters and VMs at the site from `Planned` to `Active`. Using a script to do this will be much quicker and more convenient than having to go into each section of the NetBox UI to update the status of all the objects. He can simply run the script to update everything in a couple of seconds!
Eric's boss has also just informed him that a new branch office is planned for Stockholm, Sweden and that he should plan for this also. As the company has standardized on the same network equipment for all branch office locations, Eric is going to use another Custom Script to create the planned site, as well as the network devices that he is planning to deploy there.
By the end of this module you will be able to:
- Describe what Custom Scripts are in NetBox and what kind of tasks they can be used to accomplish
- Understand the basics of writing Custom Scripts and also where to find documentation to help you develop your own scripts
- Kick start your own Custom Scripts collection, with two example scripts to get you up and running
Get Hands On
If you'd like to follow along with the examples used in this course, it's super easy to do, and you have a few options:
1. Run NetBox as a container with NetBox Docker - github.com/net.... - This is the quickest way to get your own dedicated NetBox instance going and it only takes a few minutes to spin up on your laptop!
2. Follow the official documentation - docs.netbox.de.... and do a full installation of all the NetBox components. These instructions have been tested on Ubuntu and CentOS Linux.
3. Use the public demo instance of NetBox - demo.netbox.dev/
The NetBox version used in the video for this module is `v3.3.2`, and the Custom Script Examples can be found here: github.com/net...
Join the Discussion
If you have any questions as you go through the course then pop on over to the NetBox Zero to Hero channel - netdev-communi.... on the NetDev Community Slack! If you aren't already a member then you can sign up for free at netdev.chat/
Useful Links
- Zero To Hero Git Repo - github.com/net....
- Official NetBox Documentation - docs.netbox.de...
- NetBox Docker - github.com/net....
- NetBox Cloud - www.getnetbox.io/ is a hosted solution offered by NS1