1. 登陆服务器。
查看SN号,把文件上传给工程师要以sn号作为snap文件的文件名:
# uname -uM
IBM,8203-E4A IBM,020680E75
如:
020680E75.snap.pax
2. 删除已有的服务器信息:
# snap -r
The following directories and files will be deleted:
-----------------------------------------------------------
/tmp/ibmsupt/hacmp (directory)
Do you want me to remove these directories (y/n)? y
Removing... done.
#
3. 采集当前信息:
# cd /tmp/directory
# snap -gc (注意:此命令生成的文件在/tmp/ibmsupt目录下)
/var/adm/ras/trcfile: No such file or directory
Checking space requirement for general information............................................................................................................................................................................. done.
.********Checking and initializing directory structure
Creating /tmp/ibmsupt/client_collect directory tree... done.
Creating /tmp/ibmsupt/general directory tree... done.
Creating /tmp/ibmsupt/general/diagnostics directory tree... done.
Creating /tmp/ibmsupt/pcixscsi directory tree... done.
Creating /tmp/ibmsupt/sissas directory tree... done.
Creating /tmp/ibmsupt/testcase directory tree... done.
Creating /tmp/ibmsupt/other directory tree... done.
********Finished setting up directory /tmp/ibmsupt
Checking Space requirement for client_collect
Checking for enough free space in filesystem... done.
/var/adm/ras/trcfile: No such file or directory
Gathering general system information............................................................................................................................................................................. done.
Gathering platform/scanout information.done.
Gathering client_collect data
Gathering pcixscsi system information....... done.
Gathering sissas system information....................................................................... done.
Creating compressed pax file...
Starting pax/compress process... Please wait... done.
-rw------- 1 0 0 1650746 Nov 1 09:41 snap.pax.Z
4. 生成的文件所在路径:
/tmp/ibmsupt/snap.pax.Z
5. 给snap文件相关权限,以方便下载:
# chmod 777 /tmp/ibmsupt/snap.pax.Z
6. 退出即可。
7. 在windows的cmd下,用ftp把snap.pax.Z下载下来即可。
8. C:\Documents and Settings\pcitlyi>ftp 10.76.16.20
Connected to 10.76.16.20.
220 HCBA-DB-2 FTP server (Version 4.2 Wed Jun 3 15:43:49 CDT 2009) ready.
User (10.76.16.20:(none)): ftpuser
331 Password required for ftpuser.
Password:
230-4 unsuccessful login attempt since last login.
230-Last unsuccessful login: Mon Nov 11 14:34:32 BEIST 2013 on ftp from LHNP-BAC
KUP
230-Last login: Fri Nov 8 11:37:09 BEIST 2013 on ftp from ::ffff:10.76.87.65
230 User ftpuser logged in.
ftp>
ftp> lcd d:\
Local directory now D:\.
ftp>
ftp> cd /tmp/ibmsupt
250 CWD command successful.
ftp> ls
200 PORT command successful.
150 Opening data connection for ..
client_collect
general
other
pcixscsi
script.log
sissas
snap.pax.Z
testcase
226 Transfer complete.
ftp: 收到 84 字节,用时 0.00Seconds 84000.00Kbytes/sec.
ftp>
ftp> bin
200 Type set to I.
ftp> bin
200 Type set to I.
ftp>
ftp> get snap.pax.Z
200 PORT command successful.
150 Opening data connection for snap.pax.Z (1663133 bytes).
226 Transfer complete.
ftp: 收到 1663133 字节,用时 0.16Seconds 10661.11Kbytes/sec.
ftp>
9. 到我的电脑,D盘里找到snap文件。
10. 将文件修改名称然后发邮件传给工程师:(注意文件名称前添加小机的序列号)
020680E75.snap.pax.Z
阅读(2399) | 评论(0) | 转发(0) |