Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Using the Event Monitoring Service > Appendix B Troubleshooting

Steps to Obtain EMS Data to Reproduce an EMS Problem

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

If you are about to reproduce an EMS problem, you should obtain a full set of EMS data that allows to get all logfiles and configuration information. Here is an example for a diskmond problem.

  1. Enable debugging for EMS by issuing the command, # touch /etc/opt/resmon/debug.

  2. Enable diskmond logging and debugging

    # vi /etc/opt/resmon/dictionary/diskmond.dict

    Change the following line:

    MONITOR: /etc/opt/resmon/lbin/diskmond

    to

    MONITOR: /etc/opt/resmon/lbin/diskmond -l -d

    NOTE: Do not save a backup copy of the diskmond.dict file in the /etc/opt/resmon/dictionary directory or in any subdirectory. If you want to make a backup copy of the diskmond.dict file, save it to /tmp or any similiar path.
  3. Create the file /etc/opt/resmon/unlimited_log. If you do not create this file, the log files will be overwritten once they reach 500 KB in size.

    # touch /etc/opt/resmon/unlimited_log

    The EMS log files in /etc/opt/resmon/ are limited to 500 KB in size and are then moved to <logfile>.old. The previous *.old file is lost. The limit of 500 KB per log file can be removed by creating the file /etc/opt/resmon/unlimited_log.

    WARNING! Be careful while creating this file. Growing EMS log files can easily fill up your root file system.
  4. Set up everything for reproduction.

    Backup the /etc/opt/resmon/ tree:

    # mkdir -p /tmp/RESMON/before# cp -Rp /etc/opt/resmon/* /tmp/RESMON/before

    Save logfiles (if needed):

    # cd /etc/opt/resmon/log# tar cvf /tmp/oldlogs.tar *# cd /var/opt/resmon/log# tar rvf /tmp/oldlogs.tar diskmond.log

    Clear logfiles:

    # for i in /etc/opt/resmon/log/*log* /var/opt/resmon/log/diskmond.log> do> rm $i> done

  5. Restart EMS and reproduce the problem.

    # kill <pid of diskmond># kill <pid of registrar># date > /tmp/RESMON/startdate; kill <pid of p_client># <steps to reproduce>

  6. Check if you have successfully reproduced the problem.

  7. Collect the data.

    # cd /etc/opt

    # tar cvf /tmp/RESMON/after.tar ./resmon

    # cd /var/opt/resmon/log

    # tar rvf /tmp/RESMON/after.tar diskmond.log

  8. Disable debug logging.

    rm /etc/opt/resmon/debug

    Edit the diskmond.dict file.

    Kill diskmond, registrar, p_client.

NOTE: If you are not troubleshooting diskmond, make sure that you include the specific logfiles of the EMS Monitor you are looking at. Refer to the documentation of the EMS Monitor to find the location of the logfile.
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997, 2003, 2007 Hewlett-Packard Development Company, L.P.