How Agent Updates work in Snow Inventory Server
Agent Updates in Snow Inventory Server are used to manage computers that already have a Snow Inventory Agent installed.
Agent Updates can upgrade or downgrade agents, update agent configurations, and add or remove support files. This article explains how agents request updates, how updates created from the Configurations and Agent Updates menus behave, and which database tables store Agent Update information.
This article describes Agent Updates in Snow Inventory Server 5.x and 6.x.
Agent Update functionality
An Agent Update can perform the following tasks:
- Upgrade or downgrade the agent binary.
- Update the agent configuration.
- Add or remove support files, such as PowerShell scripts, the SIOS agent, or other files required in the agent installation directory.
Agent Updates work for all Snow Inventory Agent 5.x and 6.x versions on all supported operating systems.
How agents request updates
- Agent Updates operate as pull requests initiated by the Snow Inventory Agent.
-
The update request schedule is defined in the agent configuration file.
The following setting defines the request frequency in seconds:
<Setting key="http.poll_interval" value="21600" />
The following setting adds randomized variance to the request interval:
<Setting key="http.poll_variance" value="300" />
- The agent makes five attempts to apply an update. If the update is unsuccessful after five attempts, it is marked as Failed.
- If an update fails, the agent rolls back to the previous working files. For example, if a configuration change causes a connection problem, the agent restores the previous configuration file.
Create Agent Updates in Snow Management and Configuration Center
Agent Updates can be created in Snow Management and Configuration Center (SMACC) for Inventory from either the Configurations menu or the Agent Updates menu. The two methods behave differently.
Configurations menu
- Use the Configurations menu to view agent configurations and the number of computers using each configuration.
- When you modify a configuration, you are prompted to publish the changes to computers that have both the matching configuration name and site name.
IMPORTANT: Updates published from the Configurations menu target only computers that are present in the system when the configuration is modified. Computers that begin reporting after the change are not included in that update.
Agent Updates menu
- Use the Agent Updates menu to create updates for agent binaries and support files, such as PowerShell scripts or
sios.jarfor Oracle. - You can include a
snowagent.configfile in the update to overwrite the existing agent configuration. - Updates created from this menu are perpetual. The target computer list is updated every eight hours to include newly reporting systems that require the update.
Change configuration or site names
Configuration names and site names cannot be renamed directly from the Configurations menu.
To change a configuration name or site name, create an update from the Agent Updates menu and include a modified snowagent.config file as a support file. The file overwrites the existing configuration and applies the new settings.
Agent Update database tables
Agent Update information is stored in the following database tables:
Inv.CommandJob
This table contains all active Agent Update jobs.
Key columns include:
MetaDataJson: Contains the target computers.JobID: Unique key for the job.
Inv.CommandQueue
This table lists computers targeted for Agent Updates.
Key columns include:
TimeToLive: Contains the remaining attempts before the update is marked as failed.ResultJson: Contains details about update failure reasons.
Use the JobID column to join Inv.CommandQueue and Inv.CommandJob and correlate computers with Agent Update jobs.
Use the AssignedID column in Inv.CommandQueue and Inv.AgentManifest to identify the hostnames of targeted computers.
For additional information about Agent Updates, see Updates in the Snow Inventory Server.