首页 » Exadata » 如何创建Snapshot 使用Oracle ILOM Command-Line Interface

如何创建Snapshot 使用Oracle ILOM Command-Line Interface

Oracle ILOM服务快照工具用于收集Oracle服务人员使用的数据来诊断系统问题,除非Oracle Service要求收集,否则平时我们不用使用该工具。

创建ILOM Snapshot有两种方法,1. 通过WEB 接口使用浏览器登录ILOM; 2. 使用ILOM 命令行方式; 这里记录如何使用ILOM命令行:

从DB server查看ILOM 的IP
eg.

$ cat /etc/hosts

登录ILOM
eg.

$ ssh  exadcell03-ilom
Password: 
Oracle(R) Integrated Lights Out Manager
Version 3.0.16.10.d r74499
Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.

->

配置Snapshot选项和生成路径

->set /SP/diag/snapshot dataset=<data>
->set /SP/diag/snapshot dump_uri=<URI>
eg.
-> set /SP/diag/snapshot dataset=normal
-> /SP/diag/snapshot dump_uri=sftp://root:welcome@192.168.60.42/tmp

Oracle ILOM service processor (SP)

Value
Option
Header
data
normal
Specifies that the Oracle ILOM, operating system, and hardware information is collected.
full

Specifies that all data is collected (“full” collection).


Note – Using this option might reset the running host.


normal-logonly orfull-logonly

Specifies that only log files are collected.
URI
Any valid target directory location

Specifies the URI of the target directory. The URI format is as follows: protocol://username:password@host/directory where protocol can be one of these transfer methods: SFTP or FTP.

For example, to store the snapshot information in the directory named data on the host, define the URI as follows: ftp://joe:mypasswd@host_ip_address/data

The directory data is relative to the user login, so the directory would probably be /home/joe/data.

生成Snapshot

-> cd /SP/diag/snapshot
-> show

等待Snapshot Complete完成或查看show 的输出result:

取Snapshot 文件

上一步的命令执行成功后会在URI指定的程序中生成上面的zip包文件,生成如下格式:Machine name-ilom_192.168.60.42_2017-12-05T01-17-45.zip。unzip 查看CONFIG文件中有目录结构。

 

打赏

对不起,这篇文章暂时关闭评论。