Wednesday, 20 April 2016

How to check Console/MP logs in HP-UX


This guide will describe how to check console/MP logs from OS. 
It should be followed whenever there is any alert for event log error.

Steps: 
Go to “/var/stm/logs/os”: It’s the location where all the console/MP (FPL) logs are stored.

Check the latest fpl logs with using “slview” command.

#  slview -f fpl.log.11       [full path “/usr/sbin/diag/contrib/slview”]

The above command will show the following output, please follow the instructions:

Use the following navigation commands to display the logs. Use sequence A,1,F.

A – Alert Level  ?  Select alert level “1” ?  F – Display the logs 
[ User inputs are in bold red fonts ]
hpuxnode[os]# slview -f fpl.log.06
     Welcome to the FPL (Forward Progress Log) Viewer 1.2


   The following FPL navigation commands are available:
         D: Dump log starting at current block for capture and analysis
         F: Display first (oldest) block
         L: Display last (newest) block
         J: Jump to specified entry and display previous block
         +: Display next (forward in time) block
         -: Display previous (backward in time) block
      <cr>: Repeat previous +/- command
         ?: Display help
         q: Exit viewer

   The following event format options are available:
         K: Keyword
         R: Raw hex
         T: Text
         V: Verbose

   The following event filter options are available:
         A: Alert level
         C: Cell
         U: Unfiltered

SL (<cr>,+,-,?,F,L,J,D,K,R,T,V,A,C,U,q) > A

   Alert Level Filter:
     0: Minor Forward Progress
     1: Major Forward Progress
     2: Informational
     3: Warning
     5: Critical
     7: Fatal
     Q: Quit

For example, selecting an alert level threshold of 3
selects all events with alert levels of 3 or higher.

Please select alert level threshold:  1

Switching to alert level 1 filter.
SL (<cr>,+,-,?,F,L,J,D,K,R,T,V,A,C,U,q) >  F
7508  PM   0     *3 0x64800b1400e00000 0x0001ffffff03ff64  IOFAN_FAIL
7509                                   Mon Apr 13 09:35:42 2015
7510  MP   0      1 0x24800acc00e00000 0x000101ffffffff85  MP_BUS_DEVICE_DETACH
7511                                   Mon Apr 13 09:35:42 2015
7512  MP   0      1 0x24800acc00e00000 0x000103ffffffff85  MP_BUS_DEVICE_DETACH
7513                                   Mon Apr 13 09:35:42 2015
7514  MP   0      1 0x24800acc00e00000 0x000003ffffffff85  MP_BUS_DEVICE_DETACH
7515                                   Mon Apr 13 09:35:42 2015
7516  PDHC 0,0    2 0x54800c3900e00000 0x00000000000d000c  CELL_POWER_OFF
7517                                   Mon Apr 13 09:35:42 2015
7518  PDHC 0,4    2 0x54800c3904e00000 0x00000000000d000c  CELL_POWER_OFF
7519                                   Mon Apr 13 09:35:42 2015
7520  PDHC 0,2    2 0x54800c3902e00000 0x00000000000d000c  CELL_POWER_OFF
7521                                   Mon Apr 13 09:35:42 2015
7522  PDHC 0,6    2 0x54800c3906e00000 0x00000000000d000c  CELL_POWER_OFF
7523                                   Mon Apr 13 09:35:42 2015
7524  MP   0      1 0x24800acc00e00000 0x000001ffffffff85  MP_BUS_DEVICE_DETACH
7525                                   Mon Apr 13 09:35:42 2015
7526  CLU  0      1 0x24800b3400e00000 0x000001ffffffff8d  HIOPB_POWER_OFF
7527                                   Mon Apr 13 09:35:42 2015
7528  CLU  0      1 0x24800b3400e00000 0x000003ffffffff8d  HIOPB_POWER_OFF
7529                                   Mon Apr 13 09:35:42 2015

SL (<cr>,+,-,?,F,L,J,D,K,R,T,V,A,C,U,q) > D

7530  CLU  0      1 0x24800b3400e00000 0x000101ffffffff8d  HIOPB_POWER_OFF
7531                                   Mon Apr 13 09:35:42 2015
7532  CLU  0      1 0x24800b3400e00000 0x000103ffffffff8d  HIOPB_POWER_OFF
7533                                   Mon Apr 13 09:35:42 2015
7534  PM   0     *7 0xe4800b1e00e00000 0x0001ffffffffff64  SHUTDOWN_IOFAN
7535                                   Mon Apr 13 09:35:43 2015
7536  PM   0      2 0x4b000af800e00000 0x01000000552b8def  CABPWR_OFF
                                       Mon Apr 13 09:35:43 2015
7537  PM   0      1 0x2b000ae600e00000 0x01000000552b8def  BLOWER_SPEED_CHG_NORM
                                       Mon Apr 13 09:35:43 2015
7538  CLU  0      1 0x2b000b4100e00000 0x01000000552b8df0  SYS_BKP_POWER_OFF

No comments:

Post a Comment

Using capture groups in grep in Linux

Introduction Let me start by saying that this article isn't about capture groups in grep per se. What we are going to do here with gr...