OpenView and NetView Appendix 2: Alternate Data-Logging Method

Table Of ContentsIT Service Vision Help


This is an alternate version of the task in Section 1, Task 3: Create a Test PDB and Process, Reduce, and Report on Your Data In this version of the task, you create your own snmpCol.conf file (the file of variables for which data are to be collected and the nodes on which the data are to be collected). You also manually stop and start the snmpCollect daemon.

Note: The procedures and the examples presented here are provided as a convenience to IT Service Vision customers. The methods outlined here are neither documented, suggested, nor supported by any Hewlett Packard documentation or IBM documentation. Although these procedures and examples have been tested with HP Open View Release 3.0 and NetView for AIX Release 4.0 and are used at SAS Institute, the Institute offers no official support for them.

Prerequisites

  1. SAS is installed.

    See Section 1, Task 1: Start the IT Service Vision Server Software.

  2. The IT Service Vision server is installed.

    See Section 1, Task 1: Start the IT Service Vision Server Software.

  3. You know which nodes support at least Level 3 management and MIB-II.

    See Section 1, Task 3: Create a Test PDB and Process, Reduce, and Report on Your Data.

Actions

  1. Make copies of three files from the !sasroot/misc/cpe directory.

    For illustration purposes only, the examples in this action assume that!sasroot is in /usr/local/sas and you are using /tmp as a work area.

    Execute the following commands:

    cd /usr/local/sas/misc/cpe
    cp csgmkcnf /tmp/csgmkcnf
    cp csghosts /tmp/csghosts
    cp csgvars /tmp/csgvars

    Note: The csgmkcng file contains a shell script that builds the snmpCol.conf file. The csghosts file will contain a list of host names of all the hosts from which you want to collect data. The csgvars file contains the recommended MIB metrics/variables in the snmpCol.conf format.

  2. Make the csgmkcnf file executable.

    Issue this command:

    chmod 755 /tmp/csgmkcnf

  3. Edit the csghosts file so that it contains the host names of all the hosts from which you want to collect data.

    Each fully qualified host name must be listed on a separate line, starting in column 1. For example, the lines for nodes dimes, swimmer, and winter might look like this:

    dimes.unx.sas.com
    swimmer.unx.sas.com
    winter.unx.sas.com

  4. Create an snmpCol.conf file.

    Issue this command:

    /tmp/csgmkcnf

  5. Back up the existing /usr/OV/conf/snmpCol.conf file.

    The existing snmpCol.conf file contains your current collection configuration. (If you made any modifications in the configuration, see Section 1, Task 3: Create a Test PDB and Process, Reduce, and Report on Your Data, the changes that you made are included in this file. In this step you will save those changes but not use them.)

    Issue this command:

    cd /usr/OV/conf
    cp -p snmpCol.conf snmpCol.conf.orig
  6. During the following actions, monitor the contents of the snmpCollect trace file.

    Messages are appended to the snmpCollect trace file as data collection takes place. The best way to monitor these messages is with the following steps:

    1. Open a new xterm window.
    2.  
    3. Issue these commands in the new window:
      cd /usr/OV/log
      tail -f snmpCol.trace

      Messages will be displayed as they are appended to the trace file.

  7. Begin logging data using the new snmpCol.conf file.
    1.  
    2. To stop the snmpCollect daemon, issue this command:
      /usr/OV/bin/ovstop snmpCollect
    3. To copy your config file over the existing config file, issue this command:
      cp /tmp/snmpCol.conf /usr/OV/conf/snmpCol.conf
    4. To restart the snmpCollect daemon, issue this command:
      /usr/OV/bin/ovstart snmpCollect

    Note: If at any time you want to return to using your former configuration, repeat this action except issue this command as the copy command:

    cp -p /usr/OV/conf/snmpCol.conf.orig /user/OV/conf/snmpCol.conf
  8. Watch the trace file as snmpCollect runs.