SNMP is a protocol used to exchange data about network activity. With SNMP, data travels between a managed device and a network management station (NMS) where users remotely manage the network. A managed device is anything that runs SNMP such as hosts, routers, and Netscape servers.
An NMS is usually a powerful workstation with one or more network management applications installed. A network management application such as HP OpenView graphically shows information about managed devices. For example, it might show which servers in your enterprise are up or down, or the number and type of error messages received. When you use SNMP with a Netscape server, this information is transferred between the NMS and the sever through the use of two types of agents.
SNMP Subagent
The subagent gathers information about the server and passes the information to the server's master agent. Every Netscape server, except for the Administration Server, has as subagent.
SNMP Master Agent
The master agent exchanges information between the various subagents and the NMS. The master agent is installed with Enterprise Administration Server.
You can have multiple subagents installed on a host computer, but only one master agent. For example, if you had Directory Server, Enterprise Server, and the Messaging Server installed on the same host, the subagents for each of the servers would communicate with the same master agent.
Figure 9.1    Interaction between the network management station and a host computer.
How SNMP Works
A managed entity, such as a server, stores variables pertaining to network management. Variables that the master agent can access are known as managed objects. Managed objects are defined in a tree-like hierarchy known as a server's management information base (MIB).
Each Netscape server subagent provides an MIB for use in SNMP communication. The MIB is a tree-like hierarchy that contains variables pertaining to the server's management. The server reports significant events to the network management station (NMS) by sending messages or traps containing these variables. The NMS can also query the server's MIB for data, or can remotely change variables in the MIB.
Netscape MIBs
Each Netscape server has its own management information base (MIB). All Netscape MIBs are located at:
A server's MIB contains variable definitions pertaining to network management for that particular server. The top level of the MIB tree is shown in Figure 9.2.
Figure 9.2    Top level of the MIB tree
Figure 9.2 shows the internet object identifier has four subtrees: directory (1), mgmt (2), experimental (3), and private (4). The private (4) subtree contains the enterprises (1) node. Each subtree in the enterprises (1) node is assigned to an individual enterprise, which is an organization that has registered its own specific MIB extensions. An enterprise can then create product-specific subtrees under its subtree. MIBs created by companies are located under the enterprises (1) node. The Netscape MIBs are located under the enterprises (1) node.
For detailed information about Enterprise Server's network management variables, see The Enterprise Server MIB.
The Enterprise Server MIB
The Enterprise Server MIB is a file named netscape-http.mib.
This file lists each object identifier for all servers currently supported by Netscape. It also defines the Enterprise Server object identifier as netscape 1 (http OBJECT IDENTIFIER : := { netscape 1 }).
Types of SNMP Messages
GET and SET are two types of messages defined by SNMP. GET and SET messages are sent by an NMS to a master agent. You can use one or the other, or both with Enterprise Administration Server. SNMP exchanges network information in the form of protocol data units (PDUs). PDUs contain information about variables stored on the managed device. These variables, also known as managed objects, have values and titles that are reported to the NMS as necessary. PDUs sent by the server to the NMS are known as "traps." The following examples best illustrate the use of GET, SET, and "trap" messages.
NMS-initiated communication.
The NMS either requests information from the server or changes the value of a variable store in the server's MIB. For example:
The NMS sends a message to the Administration Server master agent. The message might be a request for data (a GET message), or an instruction to set a variable in the MIB (a SET message).
The master agent forwards the message to the appropriate subagent.
The subagent retrieves the data or changes the variable in the MIB.
The subagent reports data or status to the master agent, and then the master agent forwards the message back (a GET message) to the NMS.
The NMS displays the data textually or graphically through its network management application.
Server-initiated communication.
The server subagent sends a message or "trap" to the NMS when a significant event has occurred. For example:
The subagent informs the master agent that the server has stopped.
The master agent sends a message or "trap" reporting the event to the NMS.
The NMS displays the information textually or graphically through its network management application.
|