HP-UX Event ManagerAdministrator's Guide.pdf

(817 KB) Pobierz
5991-6660.book
HP-UX Event Manager
Administrator’s Guide
HP-UX 11i v3
Edition 1
Manufacturing Part Number : 5991-6660
February 2007
© Copyright 2007 Hewlett-Packard Development Company, L.P.
 
60779211.003.png
Legal Notices
Confidential computer software. Valid license from HP required for possession, use or
copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software,
Computer Software Documentation, and Technical Data for Commercial Items are
licensed to the U.S. Government under vendor’s standard commercial license.
The only warranties for HP products and services are set forth in the express warranty
statements accompanying such products and services. Nothing herein should be
construed as constituting an additional warranty. HP shall not be liable for technical or
editorial errors or omissions contained herein.
UNIX is a registered trademark of The Open Group.
© Copyright 2007 Hewlett-Packard Development Company, L.P.
60779211.004.png
Contents
About This Document
1. Introduction
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
How Event Manager Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Event Manager Command Line Utilities. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Event Manager Application Programming Interface . . . . . . . . . . . . . . . . . . . . . . . 22
Event Manager System Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Event Manager Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Event Manager Event Model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2. Using Event Manager
Starting and Stopping Event Manager. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Monitoring Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Displaying Events Using evmshow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Retrieving Stored Events Using evmget . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Sorting Events Using evmsort . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Monitoring Events Using evmwatch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Posting Events Using evmpost. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Posting Events from a Shell Script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Understanding the Event Manager Mark Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Listing a Registered Event . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Using the -A Option to Simplify the Command String. . . . . . . . . . . . . . . . . . . . . . . . 50
Logging and Forwarding Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Logging Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Using Forwarding to Handle Events Automatically. . . . . . . . . . . . . . . . . . . . . . . . . . 52
Introduction to Event Filters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Advanced Selection and Filtering Techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Filtering By Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Using the Event-Id to Select Events for Detailed Display . . . . . . . . . . . . . . . . . . . 57
Searching for Reserved Component Names. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Using Filter Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
3
60779211.005.png
Contents
3. Configuring Event Manager
Configuring Event Manager Daemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Configuring Event Manager Channel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Configuring Event Manager Logger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Secondary Logger Configuration Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Managing Log Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
Installing Event Manager Clients. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Event Authorization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
User Authentication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
User Authorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Event Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
4. Troubleshooting
Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Common Problems and Workarounds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
4
60779211.001.png
Contents
5
60779211.002.png
Zgłoś jeśli naruszono regulamin