Performing Network Device OS Upgrades Using Netpicker

Netpicker upgrades device software with a sequence of up to five automation jobs per platform: precheck, stage image, activate, reload, and postcheck. You can copy the image days ahead and keep the disruptive steps for the maintenance window. These are example jobs: test them on a lab device first. Supported platforms, limitations, and the details of each job are in the Network Automation Jobs repository README.

Before you begin

  • The Transferium file server is set up and the devices can reach it. See Setting Up the Transferium File Server in Netpicker.
  • The devices are in Netpicker with working credentials.
  • You have the vendor image, and the release notes confirm the upgrade path.
  • You have console access and an approved maintenance window.

Jobs directory

If the jobs are not available under Automation → Jobs, copy them from jobs/os_upgrade/<platform>/ in the Netpicker Network Automation Jobs repository. For example, the Cisco IOS precheck is in jobs/os_upgrade/cisco_ios/step1_precheck.  
Netpicker Automation Jobs page filtered to show OS upgrade jobs
OS upgrade jobs in Automation → Jobs.

Upload the image

Go to Automation → Device File Upload, select the platform, and give the image a tag, for example 17.12.04. Every job that requires the image asks for this tag as file_tag.
  • Keep the vendor's filename, such as cat9k_iosxe.17.12.04.SPA.bin or EOS-4.31.2F.swi. The jobs read the version from it.
  • Note the file size shown after the upload. You need it to check free space on the device.
Netpicker Upload File form with platform and image tags
Netpicker Device file upload page listing uploaded images, platforms, tags, sizes and MD5 values

Run the upgrade

Run the jobs in order, on the same devices, using the same file_tag wherever it is requested. Go to the next step only after [SUCCESS].
  1. Precheck (step1_precheck) — read-only. Checks the current version and platform conditions. Then complete the [MANUAL] checks it prints, including free space against the image size.
  2. Stage image (step2_stage_image) — copies the image and checks its MD5 on the device. No reload occurs, so you can run it days ahead. If a file with the same name but a wrong MD5 is already there, the job stops; delete that file manually. On IOS-XE install mode, it also runs install add.
  3. Activate (step3_activate) — makes the new image the next boot image (IOS and EOS) or installs it (Junos). A configuration backup is taken automatically.
  4. Reload (step4_reload) — on IOS and Junos, schedules the reload in N minutes or cancels it. On EOS, it reloads immediately, so schedule the job in Netpicker for the maintenance window.
  5. Postcheck (step5_postcheck) — when the device is back, confirms that it runs the new version.
Cisco IOS-XE install mode: step 3 runs install activate and reloads the device immediately; there is no step 4. Then run step 5 with commit = yes before the auto-abort timer expires, or the device rolls back to the old version.
Netpicker stored OS upgrade precheck job with device, file tag and job result
Run the precheck and review its result before continuing.
Netpicker OS upgrade precheck log highlighting success and manual checks
The job log distinguishes automated success from manual checks.

Variables and results

Most jobs that use an image ask only for file_tag. Some jobs ask for additional variables like below:
Job Extra variables
cisco_ios_step4_reload action = schedule or cancel; reload_minutes = 1–1440
juniper_junos_step4_reload action = schedule or cancel; reboot_minutes = 1–1440
cisco_xe_step3_activate auto_abort_minutes = 30–1200 (default 120)
cisco_xe_step5_postcheck commit (default no)
juniper_junos_step2_stage_image validate (default no)
In the job log, [SUCCESS] means go on, [FAILED] means fix the problem and run again, [SKIP] means nothing was needed, and [MANUAL] is a check to perform manually. [INITIATED] or [UNCONFIRMED] means the reload started: wait for the device, then run the postcheck.
Netpicker stored reload job with file tag, schedule action and reload minutes
Example reload job variables for Cisco IOS.

Would you like a hands-on session?

A couple times a week our in-house trainer is available for a private or group session. In this session we can cover our Slurp'it or Mock'it solution but also integrations with Netpicker, NetBox, Nautobot & Infrahub.

Yes, keep me informed

Connect with us on LinkedIn to stay updated on the latest happenings, news, and exciting developments at Slurp'it. Just click the button below to follow us and be a part of our professional network.

Newsletter