Solaris System Management Agent Developer's Guide

Demonstration Modules

The /usr/demo/sma_snmp directory contains several demonstration modules. The demo modules illustrate methods for creating modules to solve various kinds of information-gathering problems. Later chapters in this manual discuss the demo modules in detail. The following table lists and describes the demo modules. The table also provides cross-references to the sections that discuss the demos.

Table 1–2 Descriptions of Demonstration Modules

Module Name 

Demonstrates 

Discussed in Section 

demo_module_1

Data modeling for scalar objects 

Scalar Objects

demo_module_2

Data modeling for a simple table with writable objects 

Simple Tables

demo_module_3

Data modeling for a general table 

General Tables

demo_module_4

Implementing alarms 

demo_module_4 Code Example for Alarms

demo_module_5

Persistence of module data across agent restarts 

demo_module_5 Code Example for Persistent Data

demo_module_6

Running multiple instances of a module on a single host 

Implementing Multiple Instances of a Module

demo_module_7

Dynamically updating multi-instance modules 

Enabling Dynamic Updates to a Multiple Instance Module

demo_module_8

Implementing a module as an AgentX subagent 

Deploying a Module as a Subagent

demo_module_9

Implementing objects that wait for external events without blocking the agent 

SNMP Alarm Method for Data Collection

demo_module_10

Module design that handles long running data collections so that their values can be polled by an SNMP manager 

SNMP Manager Polling Method for Data Collection

demo_module_11

How to use the Entity MIB API functions 

SMA Entity MIB Implementation

demo_module_12

How use Solstice Enterprise Agents code templates and SMA code templates to help re-implement Solstice Enterprise Agents subagents as SMA modules 

Migrating Solstice Enterprise Agent Subagents to SMA