discover.conf manual page
Table of Contents

NAME

discover.conf - configuration file for SunNet Manager Discover Tool

SYNOPSIS

$SNMDISCOVERMAP/discover.conf

DESCRIPTION

The configuration file discover.conf contains parameters for certain less commonly used features of the Discover Tool. The file is stored in the directory specified by the value of the environment variable $SNMDISCOVERMAP . The discover.conf file is located in the directory defined by SNMDBDIR. If SNMDBDIR is undefined, then /var/opt/SUNWconn/snm for Solaris 2.x or /var/adm/snm for Solaris 1.x is the default directory.

You need to deal with discover.conf only if you want to:

· modify the shape or the color of the glyphs that
represent the elements found by the Discover Tool;

· use system descriptions returned by SNMP agents to
specify which type of element to create;

· have created customized views that you want to monitor;

· use the Discover Tool to find agents in addition to the
agents shipped with SNM.

SYNTAX

The syntax for discover.conf is standard for Unix configuration files. The file is an ASCII file, composed of specific types of entries. The file contains individual sets of configurable fields, each set identified by the following uppercase keywords:

OID
COLORS COMPONENTS DEFAULTS MAPPINGS MONITOR COMPONENTS AGENTS

In the discover.conf file, each of these keywords must be preceded by a hash mark (#). Except when preceding a keyword, a hash mark indicates a comment.

Within discover.conf, the order of fields is significant.

OID Section
The OID section maps object identifiers (OIDs) to element types. An element type determines the glyph used for a given element. An entry has the form <oid> <element_type>, where <element_type> is in a schema file that has been loaded into the Console. For example:

#OID
#

Sun Microsystems.2.1.1
component.ss10
HP.2.3.2.5
component.hpsnake

When a device is reachable through SNMP, the discover function tries to retrieve the OID for that device. If successful, the discover function maps the OID to the element type specified in discover.conf. Using the example above, a machine returning the OID for Sun (which can be in either the textual form of the example or the numeric 1.3.6.1.4.1.42.2.1.1.1) is created as the SNM element type component.ss10. Using the same example, if the device returns HP.2.3.2.5 the element type is component.hpsnake.

COLORS Section
The COLORS section of discover.conf allows you to create your own color names for the two sections, COMPONENTS and DEFAULTS, that follow COLORS. As shipped with SNM, the COLORS section is as follows:

#COLORS
#

RED
255 0 0
BLUE
0 0 255
ORANGE
255 0 255
YELLOW
255 255 75

See the bottom area of an element's property sheet in the SNM Console for slider bars that show values for different colors.

COMPONENTS Section
The COMPONENTS section of discover.conf associates element types with the colors defined in the COLORS section. For example:

#COMPONENTS
#

component.ss1
ORANGE
component.server
LIGHT_BLUE
bus.ethernet
RED
view.subnet
BROWN
view.network
DARK_GREEN
component.link
BLACK

DEFAULTS Section
The DEFAULTS section of discover.conf allows you to assign a specific color for all SNMP devices. For example:

#DEFAULTS
#

snmp_color
GREEN

With the entry above, glyphs for all SNMP devices will be colored green.

MAPPINGS Section
The MAPPINGS section allows you to map a keyword returned from the SNMP system description to an SNM element type. If a keyword has whitespace, it must be enclosed in quotes. The Discover Tool has the Sun machine types listed below as defaults.

"sparcstation 10"
component.ss10
"sparcstation 1"
component.ss1
"sparcstation 2"
component.ss2
"sparcstation 330"
component.ss330
"sparcstation 370"
component.ss370
sun386
component.sun386
sun3
component.sun3
sun4
component.sun3
sun470
component.sun3
sc2000
component.sc2000
sc1000
component.sc2000
ipc
component.ipc
ipx
component.ipx
lx
component.lx

The mappings in the discover.conf file are consulted before the defaults shown above. For example, if the system description returned by the remote SNMP agent is:

SNMP agent ibm pc

and you have the following entries in your discover.conf file:

#MAPPINGS

"ibm pc"
component.pc
bridge
component.bridge

the type for the element created by the Discover Tool will be component.pc. Note that the keyword can appear anywhere in the system description returned by the SNMP agent. Using the preceding example, if a system description is "better to build a bridge", the Discover Tool will create a component of the type component.bridge.

MONITOR COMPONENTS Section
The MONITOR COMPONENTS section enables the monitor function to monitor views of types other than networks and subnets. An entry in this section has the following form:

<view type>

where <view type> identifies the type of view that you want to the monitor function to monitor. The view type and view instance must be successfully loaded in the Console. The view type must have a netmask field; for the view instance, the netmask field must have a non-null value.

The view types shipped with SNM do not qualify for monitoring because they do not have a netmask field. To see the list of view types, invoke Edit>Create in the Console's control area, then click SELECT on the View category in the Create Object window.

AGENTS Section
The AGENTS section enables the Discover Tool to search for agents in addition to those shipped with SNM. An entry has the following form:

<RPC_number> <agent_name> proxy

The fields in this entry are described as follows:

<RPC_number>
The RPC number of the agent as it is specified in the /etc/services file or a directory service map or table.

<agent_name>
The agent name as it appears in the properties sheet for an element. Note that this is not na. <name>, but simply <name>.<agent_name> must identify an agent that is in a schema file that is loaded in the Console.

proxy
If the agent is a proxy agent, use the word proxy to indicate its proxy status.

AGENT Schema Section
The agent schemas for a specific type of device is configurable. The agent schemas should be listed in this section of the discover.conf file. The discover application will automatically activate the agent schemas for all the device types listed in this section along with the existing defaults. The configuration information has to be entered in a specific format. Following is an example of an entry in this section:

#
# AGENT SCHEMA MAPPING
#
<snm element type 1>
{
agentschema1
agentschema2
agentscheman
}
<snm element type 2>
{
agentschema1
agentschema2
agentscheman
}
<element type n>: These types are specified in the #OID section. <agentschema n>: Agent schema name. For example:
component.ssio
{
cpustat
diskinfo
}


Table of Contents