UNSOLVED

ECN-APJ

updated

11 years ago

EA

ECN-APJ

2 Intern

308 Posts

0

1996

March 30th, 2015 01:00

How to get log from InsightIQ virtual machine

How to get log from InsightIQ virtual machine

Share: twitter.png

Please click here for all contents shared by us.

Introduction

How to get log from InsightIQ virtual machine.

Detailed Information

1. Login to InsightIQ virtual machine via SSH (administrator account needed)

2. Get following information by issuing listed command below.

cat /etc/isilon/insightiq.ini |grep api_username > ~/local_config.txt
cat /var/cache/insightiq/datastore.pickle >> ~/local_config.txt
ifconfig > ~/ifconfig.txt
mount > ~/mount.txt
rpm -q isilon-insightiq.x86_64 > ~/iiqversion.txt



3-0. Zip above logs ( obtained by step2 ) into /var/log directory .

sudo tar -czvf~/ . tgz / var/log local_config.txt ifconfig.txt mount.txt iiqversion.txt

====below method is another way  of  saving logs in step2===

3-1. Zip logs in step2 and copy the Zip into /ifs/data/Isilon_Support directory via scp command.

scp ~/ . tgz root@ :/ifs/data/ Isilon_Support

*use any Isilon IP address In that cluster you wish 

3-2. User Tera Term SSH SCP function by using ``Receive ``

(From) ~/ . tgz

(To) chose your location in your PC

<Appendix Actual command output>
$ cat /etc/isilon/insightiq.ini |grep api_username > ~/local_config.txt
$ cat /var/cache/insightiq/datastore.pickle >> ~/local_config.txt
$ ifconfig > ~/ifconfig.txt
$ mount > ~/mount.txt
$ rpm -q isilon-insightiq.x86_64 > ~/iiqversion.txt
$ ls
ifconfig.txt  iiqversion.txt  local_config.txt  mount.txt
$ sudo tar -czvf ~/12345678.tgz /var/log local_config.txt ifconfig.txt mount.txt iiqversion.txt
[sudo] password for administrator:








 (Password for Insight IQ 
tar: Removing leading `/' from member names
/var/log/
/var/log/anaconda.ifcfg.log
/var/log/audit/




summary
local_config.txt
ifconfig.txt
mount.txt
iiqversion.txt
$ ls
12345678.tgz  ifconfig.txt  iiqversion.txt  local_config.txt  mount.txt





[Using step3-1]
$ scp~/12345678.tgz root@XXX.XXX.XXX.XXX:/ifs/data/Isilon_Support
The authenticity of host 'XXX.XXX.XXX.XXX (XXX.XXX.XXX.XXX)' can't be established.
DSA key fingerprint is XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'XXX.XXX.XXX.XXX' (DSA) to the list of known hosts.
Password:





 IsilonNode Password
12345678.tgz                                  100% 1644KB   1.6MB/s   00:00
→Will give log into /ifs/data/Isilon_Support

[Using step3-2]



Untitled.png

Untitled_2.png

→Logs are saved on your desktop on this example

                                                                                                                                             

Author: Aya