Sie sind auf Seite 1von 6

UNIX Getconfig

UNIX Getconfig Data Collection Script


Use this script for Solaris, AIX, HP-UX, LINUX and Tru64.

Download
• UNIX Getconfig Version 7.64 (includes logic for "HDCA Diags" collections)
• UNIX Getconfig Version 7.60

Instructions
Note: You must have root access to run GetConfig.

1. Download UNIX Getconfig Version 7.60


2. If you have a Windows desktop, go to START > RUN and type 'cmd' and click OK
3. Change to the directory where you downloaded the getconfig.
example:
C:\Documents and Settings\magic8ball>cd c:\temp
C:\temp>
4. Verify the getconfig is in the directory.
c:\temp> dir get*
getcfg760.tar
5. Transfer the getconfig to the server where you intend to run the getconfig.

C:\temp>ftp myunixserver.corp.com
Connected to myunixserver.corp.com.
220 (vsFTPd 1.2.1)
User (myunixserver.corp.com:(none)): magic8ball
331 Please specify the password.
Password:
230 Login successful.
ftp> cd /tmp
250 Directory successfully changed.
ftp> pwd

https://knowledge.hitachivantara.com/Support_Information/Data_Collection/Get_Config/UNIX_Getconfig
Updated: Sun, 10 Nov 2019 08:07:37 GMT
Powered by
1
257 "/tmp"
ftp> bin
200 Type set to I
ftp> put getcfg760.tar
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 File receive OK.
ftp: 430080 bytes sent in 0.08Seconds 5513.85Kbytes/sec.
257 "/tmp"
ftp> bye
221 Goodbye.

6. Log in to the server using telnet or ssh

C:\temp> telnet myunixserver.corp.com


SunOS 5.9
login: magic8ball
password .....
Last Login: Fri Sep 26 07:23:55 from 10.3.2.11
##############################################
# Welcome to myunixserver.corp.com
##############################################
#
# cd /tmp
# ls get*
getcfg760.tar
# tar -xvf getcfg760.tar
x getcfg760
x getcfg760/getcfg
#
# cd getcfg760

7. Run the UNIX Getconfig from this directory using one of the following:

• Default mode
• Silent mode
• Silent Verbose Mode

Default Mode

##################################################################
# DEFAULT OPTION MODE
# *note: [] means accept the default option. Press *ENTER*

https://knowledge.hitachivantara.com/Support_Information/Data_Collection/Get_Config/UNIX_Getconfig
Updated: Sun, 10 Nov 2019 08:07:37 GMT
Powered by
2
##################################################################
/tmp> #./getcfg

##################################################################
GSC GetConfig Data Collection Script version 7.60
##################################################################
Display README? [n]:
Enter your case number including SD or EUC prefix : SD1234567
Specify path to save getconfig data [/tmp]:
Display additional options? [n]:
##################################################################
Gathering standard system files .........
Gathering process information .....
Gathering additional system information ......
Gathering Platform Information and Control Library info ....
Gathering list of /usr/lib & /usr/local/lib files ...
Gathering error logs .......
Gathering dmesg log ...
...

Silent Mode

##################################################################
# SILENT (NO OPTION) MODE
##################################################################
# ./getcfg casenumber -s output destination

*note:
casenumber is the Hitachi case number including prefix
-s is for silent mode
output destination is optional. If not specified /tmp is used.

In Silent Mode, ALL defaults are accepted

Silent Verbose Mode

##################################################################
# SILENT (NO OPTION) VERBOSE MODE
##################################################################
# ./getcfg casenumber -s -v output destination >/tmp/output.txt 2>&1 &

*note:
casenumber is the Hitachi case number including prefix

https://knowledge.hitachivantara.com/Support_Information/Data_Collection/Get_Config/UNIX_Getconfig
Updated: Sun, 10 Nov 2019 08:07:37 GMT
Powered by
3
-s is for silent mode
-v is for verbose mode
output destination is the destination directory

You may use any combination (-sv) or (-vs).

It is strongly advised to add ">/tmp/output.txt 2>&1" to capture the output if you run in silent or verbose mode.

For example:

# ./getcfg -s >/tmp/output.txt 2>&1 &

or

# ./getcfg -sv >/tmp/output.txt 2>&1 &

# tail -f output.txt

The above captures the output and runs the script in the background.

You may also leave out the mode flags to specify only an output destination. For example:

# ./getcfg casenumber output destination

This way you may run


# tail -f /tmp/output.txt

to view the results real-time while the getconfig completes.

Additional Options

##################################################################
# ADDITIONAL OPTIONS
# *note: [] means accept the default option. Press ENTER
##################################################################
/tmp> #./getcfg

##################################################################
GetConfig Data Collection Script version 7.60
##################################################################
Display README? [n]:
Enter your case number including SD or EUC prefix : SD1234567
Specify path to save getconfig data [/tmp]:
Display additional options? [n]: y
Verbose mode? (*note: output is sent to screen) [n]: y
Display Excludes? [n]: y

https://knowledge.hitachivantara.com/Support_Information/Data_Collection/Get_Config/UNIX_Getconfig
Updated: Sun, 10 Nov 2019 08:07:37 GMT
Powered by
4
Exclude hdvm from getconfig? [n]:
Exclude htnm from getconfig? [n]:
Exclude hssm from getconfig? [n]:
Exclude hdlm from getconfig? [n]:
Exclude veritas from getconfig? [n]:
Exclude hitrack from getconfig? [n]:
Exclude horcm from getconfig? [n]:
Exclude rapidx from getconfig? [n]:
##################################################################
Gathering standard system files .........
Gathering process information .....
Gathering additional system information ......
Gathering Platform Information and Control Library info ....
Gathering list of /usr/lib & /usr/local/lib files ...
Gathering error logs .......
Gathering dmesg log ...
...

8. Verify you can find the results in /tmp

# cd /tmp
# ls getc*
getconfig.sun.SD1234567.TRCFTP.092508.134547.tar.gz
#
# exit

9. Transfer the results FROM the server TO your desktop.

To do so you must return to your desktop.


go to START > RUN and type 'cmd' and click OK

Change to the directory where you wish to put the getconfig results

example:

C:\Documents and Settings\magic8ball>cd c:\temp


C:\temp>

C:\temp>ftp myunixserver.corp.com
Connected to myunixserver.corp.com.
220 (vsFTPd 1.2.1)
User (myunixserver.corp.com:(none)): magic8ball
331 Please specify the password.
Password:
230 Login successful.

https://knowledge.hitachivantara.com/Support_Information/Data_Collection/Get_Config/UNIX_Getconfig
Updated: Sun, 10 Nov 2019 08:07:37 GMT
Powered by
5
ftp> cd /tmp
250 Directory successfully changed.
ftp> pwd
257 "/tmp"
ftp> bin
200 Type set to I
ftp> get getconfig.sun.SD1234567.TRCFTP.092508.134547.tar.gz
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 File receive OK.
ftp: 430080 bytes sent in 0.08Seconds 5513.85Kbytes/sec.
ftp> bye

10. Verify the file is where you placed it

c:\temp> dir getc*


C:\Documents and Settings\bpatridge>dir put*
Volume in drive C is C Drive
Volume Serial Number is 8888-392B
Directory of C:\Documents and Settings\bpatridge
09/26/2008 07:00 AM 123 getcfg760.tar
09/26/2008 07:38 AM 600 getconfig.sun.SD1234567.TRCFTP.092508.134547.tar.gz
....

11. Open up your Web Browser and go to https://tuf.hitachivantara.com/upload.php, enter your case number and
upload the files.

https://knowledge.hitachivantara.com/Support_Information/Data_Collection/Get_Config/UNIX_Getconfig
Updated: Sun, 10 Nov 2019 08:07:37 GMT
Powered by
6