1. Introduction to the System Management Agent
8. Long-Running Data Collection
SNMP Alarm Method for Data Collection
demo_module_9 Code Example for SNMP Alarm Method
Managing the Timing of Data Collection
SNMP Manager Polling Method for Data Collection
demo_module_10 Code Example for SNMP Polling Method
Avoiding a Race Condition When Polling
10. Migration of Solstice Enterprise Agents to the System Management Agent
SNMP is not ideally suited to collecting data that is generated over a period of time. Time-outs specified by an SNMP manager are generally only a few seconds, to enable most problems to be detected quickly. However, some data might be useful when looked at over a longer period, for example, to indicate a developing condition. Such data can only be collected through a long-running data collection to get around the timeout issue. You can code your module to perform long-running data collection. You can choose from several different design patterns to model such operations.
The following design patterns can be used to enable a module to handle long-running data collections through the agent.
The module registers an SNMP alarm to call a function at a specified interval. For most sites, this solution is most useful for performing long-running data collections. See SNMP Alarm Method for Data Collection for more information and code examples.
The SNMP manager polls a status variable to find out whether a data collection is complete, and to determine the age of the data. The data is retrieved when the status variable returns an acceptable value. The polling approach is most useful if your site has one SNMP manager and several SNMP agents. See SNMP Manager Polling Method for Data Collection for more information and code examples.