JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Solaris System Management Agent Developer's Guide
search filter icon
search icon

Document Information


1.  Introduction to the System Management Agent

2.  Creating Modules

3.  Data Modeling

4.  Storing Module Data

5.  Implementing Alarms

Refresh Intervals

Asynchronous Trap Notification

Thresholds for Sending Traps

demo_module_4 Code Example for Alarms

Reading Data From the demo_module_4.conf Configuration File


Generating Traps in demo_module_4

6.  Deploying Modules

7.  Multiple Instance Modules

8.  Long-Running Data Collection

9.  Entity MIB

10.  Migration of Solstice Enterprise Agents to the System Management Agent

A.  SMA Resources

B.  MIBs Implemented in SMA



Refresh Intervals

Refresh intervals, also known as automatic refresh, can be implemented in the System Management Agent. You can use a callback mechanism that calls a specified function at regular intervals. Data refresh can be implemented by the snmp_alarm_register() function. In demo_module_4, the load data is refreshed at a configurable time interval, 60 seconds in this example, using the following callback:

snmp_alarm_register(60, SA_REPEAT, refreshLoadAvg, NULL);

void refreshLoadAvg(unsigned int clientreg, void *clientarg){

    // Refresh the load data here


The snmp_alarm_register() function can be included in the init_()module() function so that the refresh interval is set during the initialization of the module.