oracle收集snop,SNAP收集服务器信息

本文详细介绍了如何通过Linux命令在服务器上生成SN号为依据的Snap文件,包括登录、删除旧信息、采集当前状态、压缩文件、设置权限及FTP下载步骤。最后,展示了如何在Windows上使用FTP下载并命名发送给工程师。
摘要由CSDN通过智能技术生成

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

阅读(1554) | 评论(0) | 转发(0) |

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值