IBM Support

Copying an HMC File to a Microsoft Windows PC Using PuTTY

Troubleshooting


Problem

This document describes how to copy a file from a HMC to a Microsoft Windows PC using the "PuTTY" Secure Copy (pscp) utility. This technique can be used to transfer HMC files such as pedbg to a Windows PC that has remote access to port 22 (ssh protocol).

Resolving The Problem

The following process shows how pedbg data can be copied from the HMC to a PC using Secure Copy Protocol (SCP).

oConfigure the HMC for remote command execution (ssh)
EnhancedUI: Enabling ssh/remote command execution
Classic UI: Configuring the HMC to Accept SSH Connections and Remote Commands


oEnsure the PC can access the HMC
Test the connection by logging in to the HMC remotely with a ssh client such as PuTTY. You can also list the file to be copied to ensure it exists and the hmc user has read access.


o.Obtain a scp client such as PuTTY pscp:
pscp can be obtained from the PuTTY home page or one of the alternate sites (such as putty.org).
http://www.chiark.greenend.org.uk/~sgtatham/putty/

Download and install using the Windows installer or download just the pscp.exe binary.

Note: Any implementation of SCP should work as long as it does not use a restricted command such as cd. Many of the graphical SCP clients use the cd command and will fail with a restricted command error.


oOpen a Windows command prompt
windows key + r
type "cmd" and click Ok


oView the help
Run the command:
"c:\program files\putty\pscp"


oCopy the file from the HMC to the PC using pscp
"c:\program files\putty\pscp" -scp <user>@<host>:<HMC file path/name> <PC file path/name>

where:
<user> = a valid user profile on the HMC, hscpe should be used or another user ID with a role of hmcpe
<host> = the IP address or host name of the HMC. This is typically the eth1 address.
<HMC file path/name> = the fully qualified, case sensitive, file name created when pedbg was run (i.e. file on the HMC)
<PC file path/name> = the path and file name to be created on the Windows PC

Example

"C:\Program Files\PuTTY>pscp" -scp hscpe@ihmc7063:/dump/HMClogs.ihmc706305212126.zip c:\temp\HMClogs.ihmc706305212126.zip

where:
<user> = hscpe
<host> = 9.10.49.94
<HMC file path/name> = /dump/HMClogs.ihmc706305212126.zip
<PC file path/name> =c:\temp\HMClogs.ihmc706305212126.zip

Tip: To avoid typing errors, copy/paste the file name from a putty ssh session. For example to copy a pedbg file, from a putty ssh window, run ls /dump to list the file; use left mouse to highlight the file name (putty copies the text to the clipboard automatically). In the Windows command prompt, right click and select paste.


oSend the data to IBM

Select the preferred server for your geography to upload the pedbg file:
Preferred servers depending on geography
GeographyServer
North AmericaTestcasehttps://testcase.boulder.ibm.com
EuropeECuRephttp://www.ecurep.ibm.com/app/upload
Asia PacificTestcase or EcuRep
Note: When using the testcase, ensure the file name begins with the PMR or Ticket number (for example 12345.123.000.HMClogs10262004194012.zip). When using the ecurep upload enter the pmr or ticket number in the upload form.

For further information including command line sFTP instructions see Instructions for Sending Data to IBM Support at http://www-01.ibm.com/support/docview.wss?uid=nas8N1019224


[{"Product":{"code":"SGGSNP","label":"Hardware Management Console V9"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"Rack Mount and DeskTop - All models","Platform":[{"code":"PF033","label":"Windows"},{"code":"","label":"Windows 7"}],"Version":"8.8.5;8.8.6;8.8.7","Edition":"Personal;Workstation","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
22 September 2021

UID

nas8N1022439