Selasa, 06 Oktober 2009

Cara Collecting Data Konfigurasi Sistem Solaris melalui Sun Explorer Tools

Di solaris ada tool untuk mengambil semua konfigurasi yang ada di system, tool tersebut adalah Sun Explorer . Tool ini bermanfaat untuk mengetahui current configuration yang bisa kita ambil berupa file-file dan kita baca tanpa harus konek ke server dan mengetikkan perintah-perintah. Selain itu biasanya, jika mesin server akan di reinstall wajib hukumnya untuk mengetahui konfigurasi sebelumnya, sehingga jika konfigurasi-konfigursi (hostname, IP, dan lain-lainnya) sudah diketahui maka tidak bingung-bingung untuk tanya kesana kemari mengenai konfigurasi IP dan lain sebagainya, kecuali jika ada permintaan perubahan konfigurasi dari kostumer.

Umunmya, jika solaris sudah diupdate path nya dengan EIS, maka Sun Explorer ini sudah include terinstall di dalamnya.

Cara running exporer :

1. Login sebagai superuser
2. Masuk ke direktori /opt/SUNWexplo/bin (umumnya tool explorer terinstal di /opt dengan packages SUNWexplo
3. Running explorer
• #./explorer
Output interactivenya :
root@coba-coba # ./explorer
WARNING: EXP_CONTRACT_ID not set!

1 warnings found in /etc/opt/SUNWexplo/default/explorer

ATTENTION: Are you using Sun Explorer Data Collector to help in the resolution
of an issue on a Sun product? In some cases, remote collaboration tools such
as Sun's Shared Shell can accelerate issue resolution. Ask your Service
representative about Shared Shell or visit http://www.sun.com/sharedshell.
It's secure, safe, and easy to use.

Apr 08 08:59:39 coba-coba[6799] explorer: explorer ID: explorer.2266a153.coba-coba-2009.04.08.01.59
Apr 08 08:59:39 coba-coba[6799] patch: RUNNING
Apr 08 08:59:46 coba-coba[6799] pkg: RUNNING
Apr 08 09:00:09 coba-coba[6799] sysconfig: RUNNING
Apr 08 09:00:33 coba-coba[6799] sysconfig: exited: AP not installed
Apr 08 09:00:34 coba-coba[6799] cluster: RUNNING
Apr 08 09:00:37 coba-coba[6799] cluster: exited: Cluster software not installed
Apr 08 09:00:37 coba-coba[6799] crypto: RUNNING
Apr 08 09:00:38 coba-coba[6799] cst: RUNNING
Apr 08 09:00:38 coba-coba[6799] cst: exited: CST not installed
Apr 08 09:00:38 coba-coba[6799] disks: RUNNING
Apr 08 09:00:55 coba-coba[6799] emc: RUNNING
Apr 08 09:00:55 coba-coba[6799] emc: exited: EMCpower not installed
Apr 08 09:00:55 coba-coba[6799] etc: RUNNING
Apr 08 09:00:56 coba-coba[6799] fcal: RUNNING
Apr 08 09:00:56 coba-coba[6799] firelink: RUNNING
Apr 08 09:00:56 coba-coba[6799] firelink: exited: Sun Firelink Interconnect not installed
Apr 08 09:00:56 coba-coba[6799] fma: RUNNING
Apr 08 09:00:57 coba-coba[6799] fru: RUNNING
Apr 08 09:00:57 coba-coba[6799] fru: exited: FRUid not installed
Apr 08 09:00:57 coba-coba[6799] hds: RUNNING
Apr 08 09:00:57 coba-coba[6799] hds: exited: No Hitachi software found
Apr 08 09:00:57 coba-coba[6799] ilomextended: RUNNING
Apr 08 09:00:57 coba-coba[6799] indy: RUNNING
Apr 08 09:00:57 coba-coba[6799] init: RUNNING
Apr 08 09:00:58 coba-coba[6799] ipmi: RUNNING
Apr 08 09:01:05 coba-coba[6799] ipmiextended: RUNNING
Apr 08 09:01:05 coba-coba[6799] j2se: RUNNING
Apr 08 09:01:09 coba-coba[6799] ldap: RUNNING
Apr 08 09:01:09 coba-coba[6799] lic: RUNNING
Apr 08 09:01:09 coba-coba[6799] lp: RUNNING
Apr 08 09:01:10 coba-coba[6799] lvm: RUNNING
Apr 08 09:01:10 coba-coba[6799] messages: RUNNING
Apr 08 09:01:10 coba-coba[6799] ndd: RUNNING
Apr 08 09:01:20 coba-coba[6799] netconnect: RUNNING
Apr 08 09:01:20 coba-coba[6799] netconnect: exited: Not sparc platform
Apr 08 09:01:20 coba-coba[6799] netinfo: RUNNING
Apr 08 09:01:34 coba-coba[6799] pci: RUNNING
Apr 08 09:01:34 coba-coba[6799] photon: RUNNING
Apr 08 09:01:34 coba-coba[6799] photon: exited: No photons installed
Apr 08 09:01:34 coba-coba[6799] prometheus: RUNNING
Apr 08 09:01:34 coba-coba[6799] prometheus: exited: Storage Manager not installed
Apr 08 09:01:34 coba-coba[6799] quorumserv: RUNNING
Apr 08 09:01:34 coba-coba[6799] quorumserv: exited: Cluster Quorum Server software not installed
Apr 08 09:01:34 coba-coba[6799] samfs: RUNNING
Apr 08 09:01:34 coba-coba[6799] samfs: exited: SAM-FS or QFS not installed
Apr 08 09:01:34 coba-coba[6799] sanextended: RUNNING
Apr 08 09:01:35 coba-coba[6799] sap: RUNNING
Apr 08 09:01:35 coba-coba[6799] sap: exited: SAP not installed
Apr 08 09:01:35 coba-coba[6799] sbu: RUNNING
Apr 08 09:01:35 coba-coba[6799] sbu: exited: Solstice Backup not installed
Apr 08 09:01:35 coba-coba[6799] se3k: RUNNING
Apr 08 09:01:35 coba-coba[6799] se3k: exited: neither SUNWsccli nor SUNWsscs installed
Apr 08 09:01:35 coba-coba[6799] se3kextended: RUNNING
Apr 08 09:01:35 coba-coba[6799] se3kextended: exited: neither SUNWsccli nor SUNWsscs installed
Apr 08 09:01:35 coba-coba[6799] se61xx: RUNNING
Apr 08 09:01:35 coba-coba[6799] se6320: RUNNING
Apr 08 09:01:35 coba-coba[6799] se6920: RUNNING
Apr 08 09:01:36 coba-coba[6799] servicetags: RUNNING
Apr 08 09:01:36 coba-coba[6799] sf15k_ndd: RUNNING
Apr 08 09:01:36 coba-coba[6799] sf15k_sc: RUNNING
Apr 08 09:01:36 coba-coba[6799] sf15k_sc: exited: SMS not installed
Apr 08 09:01:36 coba-coba[6799] sonoma: RUNNING
Apr 08 09:01:36 coba-coba[6799] sonoma: exited: No A3X00 installed
Apr 08 09:01:36 coba-coba[6799] ssa: RUNNING
Apr 08 09:01:36 coba-coba[6799] ssa: exited: No SSAs installed
Apr 08 09:01:36 coba-coba[6799] ssp: RUNNING
Apr 08 09:01:36 coba-coba[6799] ssp: exited: Not an SSP system
Apr 08 09:01:36 coba-coba[6799] st25xx: RUNNING
Apr 08 09:01:37 coba-coba[6799] st5800: RUNNING
Apr 08 09:01:37 coba-coba[6799] storade: RUNNING
Apr 08 09:01:37 coba-coba[6799] storade: exited: StorAde Data Service's not installed
Apr 08 09:01:37 coba-coba[6799] storedge: RUNNING
Apr 08 09:01:37 coba-coba[6799] storedge: exited: StorEdge Data Services, Storage Manager Basic Apps not installed
Apr 08 09:01:37 coba-coba[6799] stortools: RUNNING
Apr 08 09:01:37 coba-coba[6799] stortools: exited: StorTools not installed
Apr 08 09:01:37 coba-coba[6799] sunjes: RUNNING
Apr 08 09:01:43 coba-coba[6799] sunjes: exited: Sun Java Enterprise System is not installed
Apr 08 09:01:43 coba-coba[6799] sunray: RUNNING
Apr 08 09:01:43 coba-coba[6799] sunray: exited: SUNWuto not installed
Apr 08 09:01:43 coba-coba[6799] t3: RUNNING
Apr 08 09:01:43 coba-coba[6799] t3: exited: T3 and T4 not installed
Apr 08 09:01:43 coba-coba[6799] t3extended: RUNNING
Apr 08 09:01:43 coba-coba[6799] tape: RUNNING
Apr 08 09:01:43 coba-coba[6799] Tx000: RUNNING
Apr 08 09:01:43 coba-coba[6799] Tx000: exited: Module cannot be run on this platform
Apr 08 09:01:43 coba-coba[6799] u4ft: RUNNING
Apr 08 09:01:43 coba-coba[6799] u4ft: exited: Not an FT1800 system
Apr 08 09:01:44 coba-coba[6799] var: RUNNING
Apr 08 09:01:44 coba-coba[6799] vtsst: RUNNING
Apr 08 09:01:44 coba-coba[6799] vtsst: exited: StorTools Diagnostics not installed
Apr 08 09:01:44 coba-coba[6799] vxfs: RUNNING
Apr 08 09:01:44 coba-coba[6799] vxfs: exited: VxFS not installed
Apr 08 09:01:44 coba-coba[6799] vxvm: RUNNING
Apr 08 09:01:44 coba-coba[6799] vxvm: exited: VxVM not installed
Apr 08 09:01:45 coba-coba[6799] xscfextended: RUNNING
Apr 08 09:01:45 coba-coba[6799] explorer: data collection complete
Apr 08 09:01:47 coba-coba[6799] explorer: removing previous explorers from /opt/SUNWexplo/output
Apr 08 09:01:47 coba-coba[6799] explorer: Explorer finished
root@coba-coba #

jika dibaca dan kita cermati dari hasil keluaran interactivenya, yang saya hightlight dengan tinta warna kuning adalah package yang belum atau tidak terinstal pada mesini tersebut.

4. Pastikan data keluarannya di /opt/SUNWexplo/output
5. Ambil datanya melalui ftp (jika koneksi dilakukan melalui jaringan, jita tidak, copy saja langsung filenya)
• contoh
• Disisi laptop atau komputer console
C:\> ftp 192.168.10
Connected to 192.168.100.10.
220 coba-coba FTP server ready
User (192.168.100.10:(none)):root
Password:
230 User root logged in.
ftp> bin
200 Type set to I.
ftp> hash
Hash mark printing On ftp: (2048 bytes/hash mark) .
ftp> cd /opt/SUNWexplo
250 CWD command successful.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
LICENSEREADME
bin
doc
java
lib
man
output
tmp
tools
226 Transfer complete.
ftp: 61 bytes received in 0,01Seconds 7,63Kbytes/sec.
ftp> cd output
250 CWD command successful.
ftp> ls
200 PORT command successful.
550 *: No such file or directory.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
explorer.2266a153.coba-coba-2009.04.08.01.59
explorer.2266a153.coba-coba-2009.04.08.01.59.tar.gz
226 Transfer complete.
ftp: 99 bytes received in 0,00Seconds 99,00Kbytes/sec.
ftp> get explorer.2266a153.coba-coba-2009.04.08.01.59.tar.gz
200 PORT command successful.
150 Opening BINARY mode data connection for explorer.2266a153.coba-coba-2009.04.
08.01.59.tar.gz (2615124 bytes).
################################################################################
################################################################################
############################################################################> Re
place Existing File with Temp File:I/O Error
226 Transfer complete.
ftp: 2615124 bytes received in 0,37Seconds 7029,90Kbytes/sec.
ftp> by
221-You have transferred 2615124 bytes in 1 files.
221-Total traffic for this session was 2616344 bytes in 3 transfers.
221-Thank you for using the FTP service on coba-coba.
221 Goodbye.

C:\>

File akan diletakkan pada drive C dan kita bisa mengekstraknya lalu membacanya

Jika tool ini belum terinstall pada server maka baiknya tool untuk kolektif data sistem konfigursi pada solaris ini di install terlebih dahulu, berikut step-step untuk menginstall package SUNWexplo :

a. Login sebagai superuser
#su
b. kopi file resource ke server melalui ftp.
# cp SunExplorer.tar.Z /var/tmp
c. Uncompress dan untar file SunExplorer.tar.Z:
# uncompress SunExplorer.tar.Z
# tar xvf SunExplorer.tar
d. Install Explorer
# pkgadd -d . SUNWexplo SUNWexplu
Selama proses instalasi diikuti semua proses permintaan instalasi

Tidak ada komentar:

Posting Komentar