Changing the Destination of Notifications on Solaris SPARC

 

This procedure describes how to change an existing destination to a new NMS destination.

Before you begin

To deliver notifications to the correct destination, you must know whether your destination uses SNMPv1 or SNMPv2c. If you do not know which version you are using (v1 or v2), find out before you change the destination of the notifications. If you do not set the destination on a line of the file containing the correct version of SNMP, you will receive no notifications.

Changing Destination of Notifications on Solaris SPARC

To change the destination of notifications, do the following:

1 Use a text editor to open the /etc/srconf/agt/snmpd.cnf file.

2 To change the destination of notifications, edit the snmpTargetAddrEntry object in this file. The entry will look similar to the following:

#Entry type: snmpTargetAddrEntry

#Format: snmpTargetAddrName (text)

# snmpTargetAddrTDomain (snmpUDPDomain, snmpIPX
Domain, etc.)

# snmpTargetAddrTAddress (transport address,
i.e. 192.147.142.254:0)

# snmpTargetAddrTimeout (integer)

# snmpTargetAddrRetryCount (integer)

# snmpTargetAddrTagList (text)

# snmpTargetAddrParams (text)

# snmpTargetAddrStorageType (nonVolatile,
permanent, readOnly)

# tgtAddressMask (transport mask,
i.e. 255.255.255.255:0)

snmpTargetAddrEntry 31 snmpUDPDomain 127.0.0.1:0 100 3 localhost_v1 v1ExampleParams nonVolatile 255.255.255.255:0

snmpTargetAddrEntry 32 snmpUDPDomain 127.0.0.1:0 100 3 localhost_v2 v2cExampleParams nonVolatile 255.255.255.255:0

The first 10 lines of the entry (all lines beginning with pound (#) signs) describe the format of the snmpTargetAddrEntry fields. They are informational only.

If your destination uses SNMP v1 protocol, edit the following lines:

snmpTargetAddrEntry 31 snmpUDPDomain 127.0.0.1:0 100 3 localhost_v1 v1ExampleParams nonVolative 255.255.255.255:0

Note the destination: localhost_v1.

If your destination uses SNMP v2 protocol, edit the following lines:

snmpTargetAddrEntry 32 snmpUDPDomain 127.0.0.1:0 100 3 localhost_v2 v2cExampleParams nonVolative 255.255.255.255:0

Note the destination: localhost_v2.

Important! Do not change all these lines, only the ones that apply to the version of the protocol you are using (v1 or v2).

3 Modify the IP address on the appropriate line to the new destination IP address. The IP address of the destination is the snmpTargetAddrTAddress field. It is the fourth field in the line. The IP address must be followed by :0. For example, an IP address might be 192.143.43.22:0.

4 If localhost_v1 or localhost_v2 are not acceptable names for the new notification destination, see the procedure Adding a New Destination for Notifications on Solaris SPARC.

5 Save the snmpd.cnf file.

6 Stop the SNMP by typing the following at the command line:

# ps -ef | grep snmpdm

A message is displayed indicating the process number of the snmpdm. To kill that process from Solaris, type the following:

# kill -9 <process number>

7 Restart the SNMP daemon by typing the following at the command line:

# /etc/srconf/exe/snmpdm&

 

Outlook

When the system is running, you can direct notifications to a corporate SNMP system, such as HP OpenView or Castlerock.