Automating patching in ArcGIS Enterprise
In another article, we talk about why it's important to apply patches. Running patches by hand works, but let's be honest, we get busy, and we forget. To keep ArcGIS Enterprise in peak condition, consistency is key. Let's take it a step further and automate it.
For IT teams who love a good script and control, the Patch Notification tool supports command-line execution. They can do this by calling the patchnotification.bat file, which is located in <ArcGIS Enterprise installation directory>\tools\patchnotification
The patchnotification.bat file can be used in any ArcGIS Enterprise component machine (ArcGIS Server, Portal for ArcGIS, or ArcGIS Data Store). For single machine deployments, the tool can be used with any of the component directories.
Adding the parameter -h to that call, will provide an overview of all available options and settings, including some examples. For instance, if you are running the utility from the command prompt, use –i sec to install only security patches, and –i all to apply all available patches.
Schedule your updates with tasks
You can use Windows Task Scheduler or a Cron job on Linux to set up a scheduled task that runs the Patching tool in the background. This not only lets you check for updates on a more regular basis, but it also gives you more freedom to install updates outside of work hours, which helps reduce the downtime that comes with the installation.
If you’re interested, this Esri Support Article provides excellent step-by-step instructions on how to create a CMD file and use Windows Task Scheduler to automate the process.
Additional info
By default, all downloaded files will be saved and kept in the system temp location, and downloaded patch folders will never be deleted. To change either of these properties, click the settings button at the bottom of the utility and click the Install Settings tab.
To change the default download location for patches, specify the new download location in the Download folder path
To specify that downloaded files and folders be deleted after a successful patch installation, click the Delete patch folder menu and select Always delete after successful installs
Consistency is the foundation of a healthy ArcGIS Enterprise deployment. Using the Command Prompt tools and Task Scheduler, you can ensure your patches are applied during off-hours, keeping your system in peak condition with minimal downtime.
Don't wait for the next "Update Available" notification ; automate your patching process today to stay ahead of the curve.