Index of /~tgouverneur/qua/pcaf

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory  -  
[TXT]README.html2013-02-07 16:05 2.4K 
[DIR]explorers/2013-02-07 16:05 -  
[   ]extractExplorers2013-02-07 16:05 142  
[DIR]extracted/2013-02-07 16:05 -  
[   ]packPatches2013-02-07 16:05 582  
[DIR]patches/2013-02-07 16:05 -  
[DIR]patchxrefdir/2013-02-07 16:05 -  
[   ]pca2013-02-07 16:05 158K 
[TXT]pca-ws2.patch2013-02-07 16:05 814  
[   ]pca.conf2013-02-07 16:05 102  
[   ]pcaBundle2013-02-07 16:05 1.4K 
[   ]pcaHost2013-02-07 16:05 1.0K 
[   ]pcaReport2013-02-07 16:05 202  
[DIR]target/2013-02-07 16:05 -  
[DIR]www/2013-02-07 16:05 -  

This collection of scripts is a quick hack to mimic the usage of old SUNWtlp with PCA.
This has been ripped off quickly to see if there is interest in the community for such tool.

Don't hesitate to contact me if you have trouble/question or if you simply find this script useful
and want it to be enhanced...

The final goal is to implement every single feature of the great old SUNWtlp.

Cheers,

Thomas Gouverneur 


How to make it work:
--------------------

- Install scripts

	# tar -xzvf pca-0.1.tar.gz
	# cd pca
	# vi pca.conf # adapt settings inside pca.conf

- Copy some explorer archives into explorers/ directory

	$ scp root@uxminosc101:/opt/SUNWexplo/output/*.gz explorers/
	root@uxminosc101's password: 
	explorer.847c3a4a.uxminosc101-2011.09.14.06.49.tar.gz          100%   12MB  12.4MB/s  10.9MB/s   00:01 

- Run the extractExplorers script within the main directory.

	$ ./extractExplorers 
	[-] Extracting explorer.847c3a4a.uxminosc101-2011.09.14.06.49.tar.gz

- Generate a PCA HTML report for this server

	$ ./pcaReport uxminosc101
	$ 

	Check for ${hostname}.html file inside ./www directory

- Run PCA against server ${hostname} and any option you like

	$ ./pcaHost uxminosc101 -l

- Download missing patches from repository

	$ ./pcaHost uxminosc101 -d
	Using /home/wildcat/pca/patchxrefdir/patchdiag.xref from Oct/13/11
	Host: uxminosc101 (SunOS 5.10/Generic_144488-04/sparc/sun4u)
	List: missing (204/31865)
	**SNIPPED**

- Create a patch bundle for ${hostname}

	$ ./pcaBundle uxminosc101
	[-] Adding 119254-81 into uxminosc101 target
	[-] Extracting 119254-81...done
	[-] Adding 116354-06 into uxminosc101 target
	[-] Extracting 116354-06...done
	[-] Adding 118666-32 into uxminosc101 target
	**SNIPPED**

- Pack this bundle

	$ ./packPatches uxminosc101
	[-] Compressing patches into target/uxminosc101.tar.gz ...done

- Upload this bundle to remote host and use it with live update... like you were doing with old TLP bundles ;-)

	$ ls target/uxminosc101
	116354-06  119254-81  patch_order

	$ ls -alh target/uxminosc101.tar.gz 
	-rw-r--r-- 1 wildcat users 11M Oct 14 13:36 target/uxminosc101.tar.gz



Notes:
------

 - PCA is provided inside this tar as it was patched to show links to wesunsolve.net website when generating web report. (see pca-ws2.patch)
 - This is certainly not bug-free!
 - Again, this is a quick-hack, not yet intented for production usage.