Скачать презентацию Chapter 15 Messages Logs and Cleanup 1 Скачать презентацию Chapter 15 Messages Logs and Cleanup 1

a67f94d2881de5fd0029a416905534ca.ppt

  • Количество слайдов: 41

Chapter 15 Messages, Logs, and Cleanup 1 Chapter 15 Messages, Logs, and Cleanup 1

Overview n n n A message is a unit of communication Messages not destroyed Overview n n n A message is a unit of communication Messages not destroyed - kept in collections called logs Cleanup - keeping old logs enough, but not too long Understanding AS/400 System Operations 2

Four Logs Include n History (QHST): n n n Automatic. Is kept in a Four Logs Include n History (QHST): n n n Automatic. Is kept in a physical file. Job: n n Automatic, but what is logged can be changed. Is kept within active jobs or in spooled output files for completed jobs. Understanding AS/400 System Operations 3

Four Logs Include (Continued) n Job accounting: n n n Not automatic; requires manual Four Logs Include (Continued) n Job accounting: n n n Not automatic; requires manual start. Is kept in a journal. Security audit: n n Not automatic; requires manual start. Is kept in a journal. Understanding AS/400 System Operations 4

Messages n Started as messages n n History Job log Security-audit journal entries Messages Messages n Started as messages n n History Job log Security-audit journal entries Messages are sent to message queues Understanding AS/400 System Operations 5

Message Queues n n User currently signed on to the system Each workstation System Message Queues n n User currently signed on to the system Each workstation System operator Programs running on the system Understanding AS/400 System Operations 6

Messages to You n n n Break Notify Program Understanding AS/400 System Operations 7 Messages to You n n n Break Notify Program Understanding AS/400 System Operations 7

Message Constructions Understanding AS/400 System Operations 8 Message Constructions Understanding AS/400 System Operations 8

CPA 4002 Message Text Understanding AS/400 System Operations 9 CPA 4002 Message Text Understanding AS/400 System Operations 9

CPA 4002 Field Data Understanding AS/400 System Operations 10 CPA 4002 Field Data Understanding AS/400 System Operations 10

System Operator Message Queue n n QSYSOPR Most important message queue n n All System Operator Message Queue n n QSYSOPR Most important message queue n n All batch jobs Problems on the system n n n Hardware Security Software Understanding AS/400 System Operations 11

System Reply List n n n Messages requiring a reply Almost always the same System Reply List n n n Messages requiring a reply Almost always the same Inquiry-only messages Understanding AS/400 System Operations 12

 System Reply List Understanding AS/400 System Operations 13 System Reply List Understanding AS/400 System Operations 13

Changing System Reply List Understanding AS/400 System Operations 14 Changing System Reply List Understanding AS/400 System Operations 14

History Logs (QHST) n History logs are: n n n Automatic. Kept in a History Logs (QHST) n History logs are: n n n Automatic. Kept in a physical file. This history log is named qhstyyjjjn where: n n n yy is the year on which the physical file was created. jjj is the Julian date on which the physical file was created. n is a sequence number (0 -9, A-Z). Understanding AS/400 System Operations 15

History Logs (QHST) (cont. ) Understanding AS/400 System Operations 16 History Logs (QHST) (cont. ) Understanding AS/400 System Operations 16

History Logs (QHST) (cont. ) Understanding AS/400 System Operations 17 History Logs (QHST) (cont. ) Understanding AS/400 System Operations 17

History Log Contents Understanding AS/400 System Operations 18 History Log Contents Understanding AS/400 System Operations 18

Expanded Message Screen Understanding AS/400 System Operations 19 Expanded Message Screen Understanding AS/400 System Operations 19

Job Logs n Job logs are: n n Automatic, but what is logged can Job Logs n Job logs are: n n Automatic, but what is logged can be changed Are kept: n n n Within active jobs In spooled output files for completed jobs QPJOBLOG or QEZJOBLOG Understanding AS/400 System Operations 20

Logging Level (cont. ) n n n Logging level - what messages should be Logging Level (cont. ) n n n Logging level - what messages should be collected for job Job Description provide characteristics Three parts to the log parameter - Logging Level Understanding AS/400 System Operations 21

Log Command Parameter Understanding AS/400 System Operations 22 Log Command Parameter Understanding AS/400 System Operations 22

Logging Level Values n Level numeric code from 0 to 4. n n n Logging Level Values n Level numeric code from 0 to 4. n n n 0 nothing is logged. 1 messages sent to job’s external message queue and severity >= specified value. 2 level 1 messages plus: n n Any requests/command from CL program with severity >= specified value. All messages associated with those requests/commands with severity >= specified value. Understanding AS/400 System Operations 23

Logging Level Values n Level numeric codes from 0 to 4 continued. n 3 Logging Level Values n Level numeric codes from 0 to 4 continued. n 3 Level - 1 messages plus: n n Level 2 messages plus: All requests/commands being from a CL program. Associated messages with requests/commands with severity >= specified value. 4 level - 1 messages plus: n n n Level 2 messages plus: Level 3 messages plus: any message with severity >= specified value. Understanding AS/400 System Operations 24

Logging Levels (continued) n Severity specifies level for requests/commands/messages logged. n n n Severity Logging Levels (continued) n Severity specifies level for requests/commands/messages logged. n n n Severity range 00 to 99. 00 informational only. 99 last message before abnormally end. serious job messages 30 or higher. Text - message text written to job log. All messages on the AS/400 have two levels. n n Level - short, 80 -bytes-or-less version. Level 2 - long version - second level message. Understanding AS/400 System Operations 25

Logging Levels (continued) n The possible values for text are: n n n *MSG—only Logging Levels (continued) n The possible values for text are: n n n *MSG—only level 1 text written to log. *SECLVL—level 2 - second level messages written to log. *NOLIST—no messages are logged unless abnormal end. Understanding AS/400 System Operations 26

Displaying the Job Log To display the job log from: n Current interactive job: Displaying the Job Log To display the job log from: n Current interactive job: n n n DSPJOBLOG WRKJOB Job active on system: n n n WRKUSRJOB WRKACTJOB Press System Request key Sign off from session, log(*list) on sign-off command Other job, do any of the following: n Understanding AS/400 System Operations WRKUSRJOB, option 8 (display spooled file) 27

Displaying the Job Log (Cont. ) To display the job log from: n Other Displaying the Job Log (Cont. ) To display the job log from: n Other job, do any of the following: n n WRKUSRJOB, option 8 (display spooled file) WRKOUTQ QPJOBLOG (or QEZJOBLOG) Understanding AS/400 System Operations 28

Job Accounting is: n n Not automatic; requires manual start. Data is kept in Job Accounting is: n n Not automatic; requires manual start. Data is kept in a journal receiver. Understanding AS/400 System Operations 29

Job Accounting Tracks n n n Information about jobs Who uses what Tracks usage Job Accounting Tracks n n n Information about jobs Who uses what Tracks usage of: n n n Processing unit Printer Display stations Database Communications Understanding AS/400 System Operations 30

Security Audit Journal The security audit journal is: n n Not automatic; requires manual Security Audit Journal The security audit journal is: n n Not automatic; requires manual start. Data is kept in a journal receiver. Understanding AS/400 System Operations 31

AS/400 Security Audit Journal n n n Must be set up first Activated before AS/400 Security Audit Journal n n n Must be set up first Activated before use Security-related activities Operator sets up what is logged Log in a journal Understanding AS/400 System Operations 32

System Cleanup n n n Automatic Cleanup User Profiles Objects Licensed Programs Device Descriptions System Cleanup n n n Automatic Cleanup User Profiles Objects Licensed Programs Device Descriptions Miscellaneous Understanding AS/400 System Operations 33

Automatic Cleanup Understanding AS/400 System Operations 34 Automatic Cleanup Understanding AS/400 System Operations 34

User Profile Cleanup Understanding AS/400 System Operations 35 User Profile Cleanup Understanding AS/400 System Operations 35

User Profile Cleanup (cont. ) Understanding AS/400 System Operations 36 User Profile Cleanup (cont. ) Understanding AS/400 System Operations 36

User Profile Cleanup (cont. ) Understanding AS/400 System Operations 37 User Profile Cleanup (cont. ) Understanding AS/400 System Operations 37

Object Cleanup n Two Options for System Operator to cleanup owned objects 1. 2. Object Cleanup n Two Options for System Operator to cleanup owned objects 1. 2. Change Object’s ownership to another user profile Delete the object Understanding AS/400 System Operations 38

1. Object Cleanup Understanding AS/400 System Operations 39 1. Object Cleanup Understanding AS/400 System Operations 39

Device Descriptions Cleanup n WRKHDWRSC *xxx. Where xxx will be: n n n CMN Device Descriptions Cleanup n WRKHDWRSC *xxx. Where xxx will be: n n n CMN for communications devices LWS for local workstation devices STG for storage resources Understanding AS/400 System Operations 40

Miscellaneous Cleanup n n n Clear Save File (CLRSAVF) command. Display File Description (DSPFD) Miscellaneous Cleanup n n n Clear Save File (CLRSAVF) command. Display File Description (DSPFD) determine files with large number of deleted records Use RGZPFM command to reclaim deleted record space Clear Message Queue (CLRMSGQ) Delete the journal receivers after saving Understanding AS/400 System Operations 41