IBM Support

HMC Classic View: Collecting PEDBG from the HMC

Troubleshooting


Problem

This document describes how to collect diagnostic data from the HMC that might be required for problem determination. The instructions refer to the enhanced UI used in Version 7 and Version 8.8.6 and earlier of the HMC.

Resolving The Problem

This document describes how to collect HMC diagnostic data (pedbg data) for use with problem determination. For issues involving servers managed by two HMCs, the data should be collected on both HMCs.

Section 1. Preparing to Collect the Data

Step 1: (Optional) Enable remote command execution
To collect pedbg remotely you must:

oEnable remote command execution
HMC Management > Remote Command Execution
oConfigure the HMC firewall to allow remote ssh connections
HMC Management > Configure Network Settings, Lan Adapters Tab, Select the interface used for remote access, click Details, then the Firewall tab. Secure Shell will be selected by default, click Allow Incoming button, then OK, OK to save.
oObtain a ssh client such as PuTTY

For further information see IBM support document "Configuring the Version 7 HMC to Accept SSH Connections and Remote Commands" at http://www.ibm.com/support/docview.wss?uid=nas8N1012875 

Step 2: Ensure a user ID of hscpe with a task role of hmcpe exists on the HMC.
The hcpe id is not a built-in id like hscroot, it must be created. To administer HMC users you must be logged in as hscroot or a hmcsuperadmin user.

Locally (at the HMC): Open a restricted shell locally on the HMC by selecting HMC Management in the left frame. Select Open a Restricted Shell in the right frame.

Remotely: Open a ssh session (PuTTY) to the HMC.

oDetermining if the hscpe user ID exists and what roles are assigned to it.

lshmcusr --filter "names=hscpe"

If the hscpe user ID exists, you will receive a reply similar to the following:

name=hscpe,taskrole=hmcpe,description=Service,pwage=99999,resourcerole=

If the hscpe user ID does not exist, you will receive the message No results were found. Continue with Step C.
oCreating the hscpe user ID :

mkhmcusr -u hscpe -a hmcpe -d IBM Service

When this command is run, a prompt will appear to type the password for the new user.
oReseting a lost password

chhmcusr -u hscpe -t passwd

When this command is run, a prompt will appear to type the new password for the user.


Section 2. Collecting Data Using PEDBG

Step 1: Log in as user hscpe.
You must be logged in to a restricted shell terminal session as user hscpe with role hmcpe to collect pedbg.

Remotely: Log into a ssh (PuTTY) session with user hscpe.

Locally: Log into the local HMC as user hscpe then open a restricted shell by selecting HMC Management in the navigation area, then select Open a Restricted Shell in the work frame (right frame).

Optional: Switch to user hscpe when Logged on as Another User
The following uses ssh to switch to user ID hscpe when the user is already logged on with another user ID. HMC Management > Remote Command Execution must be enabled. In the restricted shell terminal run the command:

ssh hscpe@localhost

If prompted to verify authenticity of the host, reply yes and press enter.
The authenticity of host 'localhost (127.0.0.1)' can't be established.
RSA key fingerprint is 5c:c7:df:d0:a0:14:e2:5b:45:5d:09:a7:0f:7a:77:5c.
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/home/hscroot/.ssh/known_hosts).
Password:
Last login: Thu Jan 24 14:23:49 2013 from localhost.localdomain
hscpe@hmc770:~>

Step 2: Recreate the problem.
If possible, recreate the problem prior to collecting pedbg. Otherwise, note the HMC date and time. Notify your support representative of the date and time of the problem being investigated relative to the HMC clock and HMC time delta if it is incorrect. For example "The problem occurred approximately 2pm on 3/16. The HMC time is 30 minutes slow so that would be about 1:30pm HMC time.".

Step 3: Collect pedbg
Note: For problems involving managed servers managed by two HMCs, perform this on both HMCs.

Run PEDBG command
Run the pedbg command with the options specified by the support representative.

If the support representative did not specify the options (or for issues that may need more than a few hours of historic data) type the following:
pedbg -c -q 4

If the problem was recreated immediately prior to pedbg collection, the "-q 3" option can typically be used (this results in a much smaller file):
pedbg -c -q 3


Section 3. Getting the Data to IBM
There are many ways the data can be sent to IBM. The following is a list of preferred methods, starting with the quickest and easiest method. The method used varies depending on the type of network access available to the HMC and the availability of media.

o

FTP directly from HMC to IBM

IBM no longer allows unsecured FTP.  Either the -S or -s flags must be used for secure file transfer.


If the HMC has a network connection that allows SFTP (Secure FTP) to the Internet, use the following command to send the file directly to IBM Support via ECuRep:

sendfile -S -f /dump/HMClogsxxxxxxxx.zip -h sftp.ecurep.ibm.com -d /toibm/hw/ -n TSddddddddd.HMClogsxxxxxxxxx.zip -u Your_IBM_Support_File_Transfer_ID


**Upload to ECuRep requires an IBM Support File Transfer ID . The IBM Support File Transfer ID is valid until revoked. The password part of it is only displayed at creation time. If the password to a Transfer ID is lost, you must delete the Transfer ID and create a new one.  Each IBM Support Transfer ID is linked an IBMid.  If you do not already have an IBMid, you can obtain one here.

NOTE: IBM has disabled FTP.  HMC Version 8.8.6 and earlier can no longer use this method of transmission.  ecurep and blue diamond repositories require SFTP (-S) which is only available with HMC 8.8.7 and above. Information on uploading pedbg using enhanced UI (8.8.7 and above) is available at  https://www-01.ibm.com/support/docview.wss?uid=nas8N1022548   

Or, to upload data to IBM Blue Diamond, use the following command:

sendfile -S -f /dump/HMClogsxxxxxxxx.zip -h msciftpgw.im-ies.ibm.com -d /IBM/YourCompanyFolder -n TSddddddddd.HMClogsxxxxxxxxx.zip -u Your_IBM_Blue_Diamond_User_ID

ParameterReference
-fThe pedbg .zip file name created in Section 2, Step 3. The command ls /dump can be used to display the file name.
Note: Type "/dump/HMClo" then hit the tab key to complete the name using the shell's tab completion feature.
-nThe pedbg .zip file renamed to start with case number in the following format.
Case number: TSddddddddd.HMClogsxxxxxxxxx.zip where
  • TSddddddddd is the support case number

  • HMClogsxxxxxxxxx.zip is the original file name as used with the -f parameter.

-dDirectory to upload to: For IBM i /toibm/os400/ ; for AIX /toibm/aix/ ; for hardware /toibm/hw
-SUse -S (strict SFTP) for uploading to ECuRep and IBM Blue Diamond repositories (requires HMC V8R8.7.0 SP2, V9R920 or later).
-s
Deprecated as no servers at IBM support data transfers with scp.
oUse removable media (USB flash drive) to move the pedbg to another workstation with Internet access.
To copy the pedbg file to media:

a Insert the formatted USB flash drive. For USB, wait several seconds for the USB device to be detected.
b Type the command: pedbg -c -q 9
c Reply yes to the prompt "Would you like to move zip file to a DVD or other device?"
d Enter the device name from the list when prompted.
The device name is the mount point for the target device. For example, for the first USB flash drive its typically "/media/sdb1".

Once on USB flash, use another workstation to upload the data. See "Sending the pedbg to IBM from another workstation or server with internet access" below.
o
Use SCP or FTP to copy the pedbg file to another workstation with Internet access.

If another server or workstation on the network has Internet access and network access to the HMC, then the data can be copied to the other server with FTP or SCP and uploaded to IBM support from there.

SCP (secure copy)
SCP (secure copy) can be used to copy the file from the HMC. Microsoft Windows 10 and later, MacOS, and Linux all include a standard scp command as part of the OS. 
 
Example of copying the file from Microsoft Windows 10 or newer using standard scp at the command line:
  • Change directory to where you want the file to be downloaded and run:
    scp -O hscpe@myhmc:/dump/HMClogs.HMClogsxxxxxxxxx.zip .
 
Example of copying the file from MacOS or Linux using standard scp at the command line:
  • Change directory to where you want the file to be downloaded and run:
    scp hscpe@myhmc:/dump/HMClogs.HMClogsxxxxxxxxx.zip .

Earlier versions of Windows require installing a 3rd party secure copy utility such as PuTTY pscp.

Example of copying the file to a PC using PuTTY pscp:
  • "C:\Program Files\PuTTY\pscp" -scp hscpe@myhmc:/dump/HMClogs.cs6hmcb0312H04.zip c:\temp\


For further information on using PuTTY pscp, refer to Copying an HMC File to a Microsoft Windows PC Using PuTTY.

FTP/SFTP
Use the sendfile command to FTP the data from the HMC to another server. Refer to Secure FTP direction from HMC to IBM for an example of the syntax or use the --help option.

o

Sending the pedbg to IBM from another workstation or server with internet access

a. Rename the pedbg file:

Rename the pedbg file, adding the case number to the beginning of the file name using the format:

TSddddddddd.HMClogsxxxxxxxxx.zip 

Where:

  • TSddddddddd The support case number.
  • HMClogsxxxxxxxxx.zip  The pedbg .zip file name created in Section 2, Step 3.


b. Send the file to IBM:

To upload the file to ECuRep, browse to https://www.ecurep.ibm.com/ and upload the file under your case number. 

 
For further information on ECuRep, including command line instructions, see Instructions for Sending Data to IBM Support.
 
To send data to IBM Blue Diamond instead of ECuRep or  testcase , use https://msciftpgw.im-ies.ibm.com/ .
 
For further information on IBM Blue Diamond, see Blue Diamond Help.

[{"Product":{"code":"SSB6AA","label":"Power System Hardware Management Console Physical Appliance"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"HMC","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Historical Number

451766819

Document Information

Modified date:
26 February 2026

UID

nas8N1018878