Collecting vmPRO Logs from the Command Line |
There may be times when you cannot use the vmPRO GUI to get a support bundle. This article covers collecting the vmPRO logs from the command line.
There are two methods for collecting the support bundle using command lines:
Use an ssh tool like PuTTy to log into the vmPRO appliance on port 22, or open the vmPRO console from the vSphere Client.
UID = sysadmin
PWD = sysadmin
At the prompt, enter the command:
autosupport upload logs
This command will write a file called pansupport.sh.tar.bz2 to the /var directory.
Note: This overwrites any previous support bundle in the /var directory.
Here is some typical ssh output from running the command from the Panshell:
quantum:localhost> autosupport upload logs
Gathering support logs...
Finished support package creation (3745 KB)
Uploading support package...
Done.
quantum:localhost>
You can download the support bundle from the Samba quantum-support share. Using Windows Explorer (not a browser), the path is:
\\vmpro_ip\quantum-support
As shown here, pansupport.sh.tar.bz2 can be large.
If you’re not using the Panshell to collect the logs, you can run the command from the Bash shell.
From the Panshell, enter the following command to enter the Bash shell:
shell-escape
Run the script by entering the command:
/usr/local/pancetera/bin/pansupport.sh
This will create the support bundle in the /var directory.
Note: This overwrites any previous support bundle in the /var directory.
The following is typical console output from this command when run from the Bash shell:
quantum:localhost> shell-escape
bash-4.1# /usr/local/pancetera/bin/pansupport.sh
Cleaning up
Creating version checksums
md5sum: /usr/local/pancetera/python/controller/managementapi: Is a directory
md5sum: /usr/local/pancetera/python/controller/oldapi: Is a directory
md5sum: /usr/local/pancetera/python/controller/publicapi: Is a directory
md5sum: /usr/local/pancetera/python/controller/smartmotion: Is a directory
md5sum: /usr/local/pancetera/python/controller/structures: Is a directory
Dumping information from proc files
Adding network information
Copying executables
Dumping PostgreSQL appliance database
Dumping PostgreSQL smr databases
Dumping smr_1 database
Consolidating files
find: warning: you have specified the -maxdepth option after a non-option argument -type, but options are not positional
(-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
ls: cannot access /nsr/logs: No such file or directory
tar: Removing leading `/' from member names
tar: /tmp/report.txt: Warning: Cannot stat: No such file or directory
bash-4.1#
The error messages as shown above in the console output are normal, and you can disregard them.
You can now retrieve the bundle from the /var directory. It will be named:
pansupport.sh.tar.bz2
This page was generated by the BrainKeeper Enterprise Wiki, © 2018 |