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

About Modules

Overview of Creating Modules

Defining a MIB

MIB File Names

Setting MIB Environment Variables

Generating Code Templates

Modifying Code Templates

Configuring the Module

Delivering the Module

Namespace Issues

Avoiding Namespace Collisions

Module Names

Library Names

3.  Data Modeling

4.  Storing Module Data

5.  Implementing Alarms

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



Setting MIB Environment Variables

You should set the MIBS and MIBDIRS environment variables to ensure that the tools that use the MIBs can find and load your MIB file. Tools that use the MIBs include mib2c and all the snmp commands such as snmpget, snmpwalk, and snmpset.

Set the MIBS environment variable to include the MIB file that you are using. For example, to add a MIB called MYTESTMIB.txt to the list of MIBs, use one of the following commands:

In the csh or tcsh shells:


In the sh or bash shells:


These commands add your MIB to the list of default MIB modules that the agent supports.

The default search path for MIB files is /etc/sma/snmp/mibs. You can modify the MIB search path by setting the MIBDIRS variable. For example, to add the path /home/mydir/mibs to the MIB search path, type the following commands:

In the csh or tcsh shells:

% setenv MIBDIRS /home/mydir/mibs:/etc/sma/snmp/mibs
% setenv MIBS ALL

In the sh or bash shells:

# MIBDIRS=/home/mydir/mibs:/etc/sma/snmp/mibs
# export MIBDIRS
# MIBS=ALL;export MIBS

Setting MIBS to ALL ensures that mib2c finds all MIBs in the search location for MIB files. Both the MIB files to be loaded and the MIB file search location can also be configured in the snmp.conf file. See the snmp.conf(4)man page for more information.

Note - You should avoid copying your MIBs into the /etc/sma/snmp/mibs directory. That directory should be reserved for the MIBs provided with SMA.