![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||||||||||||
Solution Type Technical Instruction Sure Solution 1555123.1 : Collect ILOM snapshot(s) by running STB7.3 and later domain Explorer
In this Document
Applies to:SPARC M5-32 - Version All Versions and laterSPARC T5-2 - Version All Versions and later SPARC T4-2 - Version Not Applicable and later SPARC T3-2 - Version Not Applicable and later Sun Fire X4100 M2 Server - Version Not Applicable and later Information in this document applies to any platform. GoalThis document describes ILOM snapshot collection by running a domain Explorer. The Explorer module ilomsnaphot is completely re-written, starting with Services Tool Bundle (STB) 7.3. It applies to all the servers running ILOM 3.0 or later with domain(s) running Solaris 10 or Solaris 11 and describes the usage of the ilomsnapshot module of Explorer 7.3 (as part of STB7.3) or newer.
SolutionPlease refer to Collecting snapshot on ILOM 3.x and later platforms [ID 1020204.1] for further details about collecting ILOM snapshot from ILOM or when using the ilomsnapshot module of Explorer 7.2 and before.
This file will always be used. It will be used when running Explorer in interactive and non-interactive modes.
Its permissions should be 400 or 600, otherwise will be ignored. This file will only be used when running in non-interactive mode and will contain the following information:
Explorer will first connect to the Archive host to obtain the ILOM information (this information is contained in the different sections from '$HOME/.explorer' file at the archive host).
Explorer will connect to the ILOM host where a snapshot has been launched. Note for M5-32 servers : due to the 20 minutes timeout, it's very likely that the ILOM snaphot collection will not finished before the timeout expires. As a result, the Explorer output will not contain the ILOM snapshot. Using the ilomsnaphot module for Explorer 7.3 and later can be summarized as following (details are described later in this document) :
There is no need to create 'ilomsnapshotinput.txt' file.
You need to create 'ilomsnapshotinput.txt' file as described above in the Explorer host. Archive host setup (always required)The archival host must be a host that can be reached over the network by both the explorer host and the ILOM Service Processor. The archival and explorer host can be the same host. The archival host must have a valid user with a valid homedir to hold the snapshots. [ILOM:t4_2_tvp540_e_sp]
CLN="FILE" DIR="/home/explo/ilom_snapshot" ENC="N" HST="t4-2-tvp540-e-sp" SCH="sftp" TYP="normal-logonly" USR="root"
Further reference available from Oracle Explorer Data Collector: Modules, Module Groups, Module Aliases Summary [ID 1536532.1]
Explorer host setup (non-interactive mode only)Using non-interactive mode also requires to create an input file (ilomsnapshotinput.txt) as usual : File ilomsnapshotinput.txt should be owned by root user and its permissions should be 400 or 600.
T shared ilom_shared_password
"A" : type.
"I" : type.
"T" : type.
Snapshot executionOnce it has retrieved the snapshot context, this module gathers the following Integrated Lights Out Manager (ILOM) commands through SSH: set /X/diag/snapshot dataset="${DATASET}"
set /X/diag/snapshot encrypt_output="${ENCRYPT}" set /X/diag/snapshot dump_uri="${SCH}://${USER}@${HOST}${DIR}" show /X/diag/snapshot result
ExampleIn the following example, explorer executed as root on host t4-1-tvp540-f (solaris 11.1) will collect the ILOM snapshot from the SP t4-1-tvp540-f-sp as user expluser. t4-1-tvp540-f is used as archive host as well via user jack. -> create /X/users/expluser
Creating user... Enter new password: ********* Enter new password again: ********* Created /SP/users/expluser -> set /X/users/expluser role=ao Set 'role' to 'ao' root@t4-1-tvp540-f:~# ssh-keygen -t dsa
Generating public/private dsa key pair. Enter file in which to save the key (/root/.ssh/id_dsa): /root/.ssh/id_dsa already exists. Overwrite (yes/no)? yes Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /root/.ssh/id_dsa. Your public key has been saved in /root/.ssh/id_dsa.pub. The key fingerprint is: 59:56:85:73:0a:39:75:24:0a:57:1e:ff:24:16:8a:bd root@t4-1-tvp540-f root@t4-1-tvp540-f:~# ssh -l expluser t4-1-tvp540-f-sp
The authenticity of host 't4-1-tvp540-f-sp.' can't be established. RSA key fingerprint is 6f:f9:3d:2e:c2:bc:1a:00:b2:4e:0a:b3:36:95:d7:3b. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 't4-1-tvp540-f-sp' (RSA) to the list of known hosts. Password: Oracle(R) Integrated Lights Out Manager Version 3.0.16.9.a r76782 Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. Warning: The system appears to be in manufacturing test mode. Contact Service immediately. ->
-> cd /SP/users/expluser/ssh/keys/1
/SP/users/expluser/ssh/keys/1 -> set clear_action=true Are you sure you want to clear /SP/users/expluser/ssh/keys/1 (y/n)? y Set 'clear_action' to 'true'
-> set load_uri=sftp://jack:password@t4-1-tvp540-f/root/.ssh/id_dsa.pub
Load successful. -> ls -d properties /SP/users/expluser/ssh/keys/1 Properties: fingerprint = 59:56:85:73:0a:39:75:24:0a:57:1e:ff:24:16:8a:bd algorithm = ssh-dss embedded_comment = (none) bit_length = 1024 load_uri = (Cannot show property) clear_action = (Cannot show property) root@t4-1-tvp540-f:~# ssh -l expluser t4-1-tvp540-f-sp
Oracle(R) Integrated Lights Out Manager Version 3.0.16.9.a r76782 Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. Warning: The system appears to be in manufacturing test mode. Contact Service immediately.
jack@t4-1-tvp540-f:~$ ls -la ~/.explorer
-rw------- 1 jack staff 129 May 21 13:30 /home/jack/.explorer jack@t4-1-tvp540-f:~$ more /home/jack/.explorer [ILOM:t4_1_sp] CLN="NONE" DIR="ilomsnapshot" ENC="N" HST="t4-1-tvp540-f-sp" SCH="sftp" TYP="normal" USR="expluser" root@t4-1-tvp540-f:~# explorer -w !default,ilomsnapshot,interactive
… Defined ilomsnapshot archive contexts: Select an action: D Define new ilomsnapshot archive context R Return Enter the selection Hit "Return" to accept the default (R) > D Enter the ilomsnapshot section name to use from .explorer file > t4_1_sp Enter the user for connecting to the ilomsnapshot archive host > jack Enter the host name or IP address of an ilomsnapshot archive host, or '-' for localhost > - Defined ilomsnapshot archive contexts: 1 t4_1_sp from jack on local host Select an action: D Define new ilomsnapshot archive context S Suppress an existing ilomsnapshot archive context R Return Enter the selection Hit "Return" to accept the default (R) > R ... May 21 13:36:16 t4-1-tvp540-f[7685] ilomsnapshot_start:RUNNING May 21 13:36:16 t4-1-tvp540-f[7685] ilomsnapshot_start:Starting snapshot on t4-1-tvp540-f-sp Enter jack password for archive host t4-1-tvp540-f: Please re-enter it to confirm: May 21 13:36:36 t4-1-tvp540-f[7685] ilomsnapshot_start:Data gathering started for t4-1-tvp540-f-sp … May 21 13:37:47 t4-1-tvp540-f[7685] ilomsnapshot_finish:RUNNING May 21 13:37:47 t4-1-tvp540-f[7685] ilomsnapshot_finish:Collecting snapshot from t4-1-tvp540-f-sp (can take time) May 21 13:42:44 t4-1-tvp540-f[7685] ilomsnapshot_finish:Data gathering complete for t4-1-tvp540-f-sp … May 21 13:42:46 t4-1-tvp540-f[7685] explorer: Explorer finished root@t4-1-tvp540-f:~# ls -la /var/explorer/output/explorer.85e8e8c2.t4-1-tvp540-f-2013.05.21.12.35/ilom/t4-1-tvp540-f-sp/
total 32 drwx------ 2 root root 5 May 21 13:42 . drwx------ 3 root root 3 May 21 13:42 .. -rw------- 1 root root 2100 May 21 13:42 ilomsnapshot_finish.out -rw------- 1 root root 427 May 21 13:36 ilomsnapshot_start.out -rw------- 1 root root 50 May 21 13:42 t4-1-tvp540-f-sp_1.2.3.4_2013-05-21T12-22-57.zip jack@t4-1-tvp540-f:~$ ls -la ~/ilomsnapshot/
total 15403 drwx------ 2 jack staff 5 May 21 13:36 . drwxr-xr-x 3 jack staff 7 May 21 13:30 .. -rw-r--r-- 1 jack staff 2592664 May 21 13:42 t4-1-tvp540-f-sp._1.2.3.4_2013-05-21T12-22-57.zip -> ls
/SP/diag/snapshot Targets: Properties: dataset = normal dump_uri = (Cannot show property) encrypt_output = false result = Collecting data into sftp://jack@t4-1-tvp540-f/home/jack/ilomsnapshot/t4-1-tvp540-f-sp_1.2.3.4_2013-05-21T12-22-57.zip Snapshot Complete. Done. root@t4-1-tvp540-f:~# ls -la /etc/explorer/ilomsnapshotinput.txt
-rw------- 1 root root 39 May 21 12:08 /etc/explorer/ilomsnapshotinput.txt root@t4-1-tvp540-f:~# more /etc/explorer/ilomsnapshotinput.txt A t4-1-tvp540-f jack t4_1_sp password Since the keys have been exchanged, no "I" record needed. root@t4-1-tvp540-f:~# explorer -w ilomsnapshot
… May 21 13:54:44 t4-1-tvp540-f[9180] ilomsnapshot_start:RUNNING May 21 13:54:50 t4-1-tvp540-f[9180] ilomsnapshot_start:Starting snapshot on t4-1-tvp540-f-sp May 21 13:55:01 t4-1-tvp540-f[9180] ilomsnapshot_start:Data gathering started for t4-1-tvp540-f-sp … May 21 13:56:13 t4-1-tvp540-f[9180] ilomsnapshot_finish:RUNNING May 21 13:56:13 t4-1-tvp540-f[9180] ilomsnapshot_finish:Collecting snapshot from t4-1-tvp540-f-sp (can take time) May 21 14:01:15 t4-1-tvp540-f[9180] ilomsnapshot_finish:Data gathering complete for t4-1-tvp540-f-sp … May 21 14:01:18 t4-1-tvp540-f[9180] explorer: data collection complete May 21 14:01:19 t4-1-tvp540-f[9180] explorer: Removing previous explorers from /var/explorer/output ... May 21 14:01:19 t4-1-tvp540-f[9180] explorer: Explorer finished
root@t4-1-tvp540-f:~# ls -la /var/explorer/output/explorer.85e8e8c2.t4-1-tvp540-f-2013.05.21.12.54/ilom/t4-1-tvp540-f-sp/
total 5157 drwx------ 2 root root 5 May 21 14:01 . drwx------ 3 root root 3 May 21 14:01 .. -rw------- 1 root root 2100 May 21 14:01 ilomsnapshot_finish.out -rw------- 1 root root 427 May 21 13:55 ilomsnapshot_start.out -rw------- 1 root root 2594875 May 21 14:01 t4-1-tvp540-f-sp_1.2.3.4_2013-05-21T12-41-22.zip jack@t4-1-tvp540-f:~$ ls -la ~/ilomsnapshot/ total 20530 -rw-r--r-- 1 jack staff 2592664 May 21 13:42 t4-1-tvp540-f-sp_1.2.3.4_2013-05-21T12-22-57.zip -rw-r--r-- 1 jack staff 2594875 May 21 14:01 t4-1-tvp540-f-sp_1.2.3.4_2013-05-21T12-41-22.zip -> ls /SP/diag/snapshot Targets: Properties: dataset = normal dump_uri = (Cannot show property) encrypt_output = false result = Collecting data into sftp://jack@t4-1-tvp540-f/home/jack/ilomsnapshot/t4-1-tvp540-f-sp_1.2.3.4_2013-05-21T12-41-22.zip Snapshot Complete. Done. Attachments This solution has no attachment |
||||||||||||||||||||||||
|