Wednesday, May 27, 2009

How to remove the service events from HMC.

How to remove the service events from HMC.

Step1 > List the events for a particular time period on which the tickets are coming.

Use lssvcevents command to list the service events.

Step2> Confirm that the problem doesn’t exist.

Step3>Close the problem if it doesn’t exist.

Use chsvcevent to close the problems

Step4>list the vents again to confirm the events has been closed.

Following are the commands used (With examples).

 

NAME

1.      lssvcevents

 

 list console or serviceable events

SYNOPSIS

lssvcevents -t {console | hardware}

[-d number-of-days | -i number-of-minutes]

[-m managed-system]

[--filter "filter-data"]

[-F [attribute-names] [--header]] [--help]

 

DESCRIPTION

lssvcevents lists console events logged by the Hardware Management Console (HMC), or serviceable

ev ents.

OPTIONS

-t The type of events to list. Valid values are console for console events, or hardware for serviceable

events.

 

-d  The number of days prior to today for which events will be listed. Events that occurred today will

be listed, along with any events that occurred during the past number-of-days days.

If this option is omitted when listing console events, console events that occurred within the past 7

days will be listed.

If this option is omitted when listing serviceable events, all serviceable events will be listed.

 

-I  The number of minutes to go back and search for events. This search is based on the time that the

ev ent was initially created on the HMC, and is not affected by later updates to the event.

 

-m The name of the managed system for which serviceable events are to be listed. The name may

either be the user-defined name for the managed system, or be in the form tttt-mmm*ssssssss,

where tttt is the machine type, mmm is the model, and ssssssss is the serial number of the managed

system. The tttt-mmm*ssssssss form must be used if there are multiple managed systems with the

same user-defined name.

If this option is omitted, all serviceable events will be listed.

This option is only valid when listing serviceable events.

 

--filter The filter to apply to the serviceable events to be listed. A filter is used to select which serviceable

ev ents are to be listed. For example, only open serviceable events can be listed by using a filter to

specify the status (open) of the serviceable events to list. If a filter is not used, then all serviceable

ev ents will be listed.

 

The filter data consists of filter name/value pairs, which are in comma separated value (CSV) format.

The filter data must be enclosed in double quotes.

The format of the filter data is as follows:

"filter-name=value,filter-name=value,..."

Note that certain filters accept a comma separated list of values, as follows:

""filter-name=value,value,...",..."

When a list of values is specified, the filter name/value pair must be enclosed in double quotes.

Depending on the shell being used, nested double quote characters may need to be preceded by an

escape character, which is usually a ’\’ character.

Linux May2004 1

LSSVCEVENTS(1) UserManuals LSSVCEVENTS(1)

Multiple values can be specified for each filter.

Valid filter names for serviceable events:

problem_nums

Specify event problem number(s)

status

Specify event status. Valid values are

open or closed.

This option is not valid when listing console events.

-F A delimiter separated list of attribute names for the desired attribute values to be displayed for

each event. If no attribute names are specified, then values for all of the attributes for each event

will be displayed.

When this option is specified, only attribute values will be displayed. No attribute names will be

displayed. The attribute values displayed will be separated by the delimiter which was specified

with this option.

This option is useful when only attribute values are desired to be displayed, or when the values of

only selected attributes are desired to be displayed.

--header

Display a header record, which is a delimiter separated list of attribute names for the attribute values

that will be displayed. This header record will be the first record displayed. This option is

only valid when used with the -F option.

--help Display the help text for this command and exit.

 

EXAMPLES

List the serviceable events that occurred today:

lssvcevents -t hardware -d 0

 

List the console events that occurred within the past 3 days:

lssvcevents -t console -d 3

 

List all of the open serviceable events for the system system1:

lssvcevents -t hardware -m system1 --filter "status=open"

 

List only the problem numbers and status of all serviceable events for the system that occurred within the

last 7 days, and separate the output values with a colon:

 

lssvcevents -t hardware -m 9406-570*101234A -d 7 -F

problem_num:status

 

Examples :

 hscroot@0301:~> lssvcevents -t hardware -d 30

problem_num=32,pmh_num=,refcode=B3010002,status=Open,first_time=06/06/2008 22:52:52,last_time=06/06/2008 22:52:52,sys_name=0301,sys_mtms=7310-CR3/1098F0A,enclosure_mtms=9117-570/10CE43F,firmware_fix=,text=Communications to the SFP component on partition anrp0901 are unavailable.,created_time=06/06/2008 22:52:52,reporting_name=0301,reporting_mtms=7310-CR3/1098F0A,failing_mtms=9117-570/10CE43F,analyzing_hmc=0301,event_time=06/06/2008 22:52:52

problem_num=31,pmh_num=,refcode=B3010002,status=Open,first_time=06/06/2008 22:42:27,last_time=06/06/2008 22:42:27,sys_name=0301,sys_mtms=7310-CR3/1098F0A,enclosure_mtms=7310-CR3/1098F0A,firmware_fix=,text=Communication lost with the ctrmc RMC subsystem on the HMC with a serial number of 1098F0A. The communication error code was B301000200000070.,created_time=06/06/2008 22:42:27,reporting_name=0301,reporting_mtms=7310-CR3/1098F0A,failing_mtms=7310-CR3/1098F0A,analyzing_hmc=0301,event_time=06/06/2008 22:42:27

problem_num=30,pmh_num=,refcode=2601-706,status=Open,first_time=06/02/2008 17:54:52,last_time=06/02/2008 17:54:52,sys_name=Server-9117-570-SN10E4F1A,sys_mtms=9117-570/10E4F1A,enclosure_mtms=9117-570/10E4F1A,firmware_fix=,text=A fatal hardware error has occurred.  This adapter was successfully taken off-line.  It will remain off-line until reconfigured or the system is rebooted.  This adapter must be replaced and not brought back on-line.  Failure to adhere to this action could result in data being read or written incorrectly or in the loss of data.,created_time=06/02/2008 17:54:52,reporting_name=Server-9117-570-SN10E4F1A,reporting_mtms=9117-570/10E4F1A,failing_mtms=9117-570/10E4F1A,analyzing_hmc=0301,event_time=04/13/2008 15:51:21

Another example is ;

lssvcevents -t hardware -d 40 -m tpep0101 -s ALL

Managed System  Earliest Timestamp   Call Home  Called Home  Error Class  Description

tpep0101        06/05/2008 11:05:16  Yes        Yes          OS           The CEC or SPCN reported a non-critical error. Report the SRN and the following reference and physical location codes to your service provider.

 

 

Note : Note down the problem number and the status of the problem number >And change the status of the particular problem number to “closed” by using the following command.

 

2.      NAME

chsvcevent - update a serviceable event on the HMC.

SYNOPSIS

chsvcevent -p problem number -h analyzing hmc

-o close [--help]

DESCRIPTION

chsvcevent update a serviceable event on the HMC.

OPTIONS

-p The problem number, as displayed by the lssvcevents command.

-h The analyzing HMC, as displayed by the lssvcevents command.

-o The operation to perform. Valid values are close.

Use the close operation to close the specified serviceable event.

--help Display the help text for this command and exit.

EXAMPLES

To close a serviceable event:

chsvcevent -p 1048 -h 7315-C02/KLRMT0L -o close

 

 

Examples:

hscroot@0301:~> chsvcevent -p 32 -h 0301 -o close

hscroot@0301:~> chsvcevent -p 31 -h 0301 -o close

hscroot@0301:~> chsvcevent -p 30 -h 0301 -o close

 

Again check the service events and and make sure that the status of the problem number has been changed to closed as shown below.

 

hscroot@0301:~> lssvcevents -t hardware -d 30 --filter "status=closed"

problem_num=32,pmh_num=,refcode=B3010002,status=Closed,first_time=06/06/2008 22:52:52,last_time=06/06/2008 22:52:52,sys_name=0301,sys_mtms=7310-CR3/1098F0A,enclosure_mtms=9117-570/10CE43F,firmware_fix=,text=Communications to the SFP component on partition anrp0901 are unavailable.,created_time=06/06/2008 22:52:52,reporting_name=0301,reporting_mtms=7310-CR3/1098F0A,failing_mtms=9117-570/10CE43F,analyzing_hmc=0301,event_time=06/06/2008 22:52:52

problem_num=31,pmh_num=,refcode=B3010002,status=Closed,first_time=06/06/2008 22:42:27,last_time=06/06/2008 22:42:27,sys_name=0301,sys_mtms=7310-CR3/1098F0A,enclosure_mtms=7310-CR3/1098F0A,firmware_fix=,text=Communication lost with the ctrmc RMC subsystem on the HMC with a serial number of 1098F0A. The communication error code was B301000200000070.,created_time=06/06/2008 22:42:27,reporting_name=0301,reporting_mtms=7310-CR3/1098F0A,failing_mtms=7310-CR3/1098F0A,analyzing_hmc=0301,event_time=06/06/2008 22:42:27

problem_num=30,pmh_num=,refcode=2601-706,status=Closed,first_time=06/02/2008 17:54:52,last_time=06/02/2008 17:54:52,sys_name=Server-9117-570-SN10E4F1A,sys_mtms=9117-570/10E4F1A,enclosure_mtms=9117-570/10E4F1A,firmware_fix=,text=A fatal hardware error has occurred.  This adapter was successfully taken off-line.  It will remain off-line until reconfigured or the system is rebooted.  This adapter must be replaced and not brought back on-line.  Failure to adhere to this action could result in data being read or written incorrectly or in the loss of data.,created_time=06/02/2008 17:54:52,reporting_name=Server-9117-570-SN10E4F1A,reporting_mtms=9117-570/10E4F1A,failing_mtms=9117-570/10E4F1A,analyzing_hmc=0301,event_time=04/13/2008 15:51:21

No comments:

Post a Comment