cancel
Showing results for 
Search instead for 
Did you mean: 

Any Tool for analyzing "vxexplore" data ?

Sameer_Nirmal
Level 4

Hi all,

Is there any tool to analyze the "vxexplore" data?


Thanks in advance.


20 REPLIES 20

Sameer_Nirmal
Level 4
Bumping up.......

Any comments pls?

Rodolfo_Bonnin
Level 3
Hi Sam,

I've developed a perl tool that takes vxexplorer output directory, and generates reports, based on an XML config file and perl plugins. It was a side project ( has a way to go ) and is kind of AIX centric ATM, but it could be a kickstart for future works.

A screenshot of the HTML index page (Data and further results are deleted due for security reasons):



Please let me know if you are interested.

bsobek
Level 5
Hi Rofolfa,
 
that sounds interesting. It's possible to test it?
 
thanks
 
 
Greets
Bjoern

Rodolfo_Bonnin
Level 3
Hi Bjoern,

The tool can be downloaded in its current beta status from
http://bonninr.googlepages.com/src.tar.gz

To execute:
perl main.pl <directory of uncompressed vxexplorer output> <output directory>

Please let me know if there is any comment/suggestion you have about it.

Regards,
Rodolfo Bonnin.


Message Edited by Rodolfo Bonnin on 02-01-2008 07:44 AM

Sameer_Nirmal
Level 4
wow!! Awsome Rodolfo!

Thanks a lot for sharing the tool.  I had lost the hope to get any comment/reply to this thread or such tool in here and  I have been thinking of developing one myself.

I am also thinking of Sun explorer  data analysis tool  to provide a html based interface just as an ease to browse the information.

I will test this tool of yours on Solaris and will let you know.

Thanks again.

bsobek
Level 5
Hi,
 
I tried to test the tool on Solaris 10 (sparc). I've installed the required perl-modules
XML-NamespaceSupport
XML::SAX
XML::Simple
XML::Dumper
 
Are there any other requirements? When I start the Tool
 
# perl main.pl <Explorer-Dir> <output-Dir>, I just got a menu.html File in the output-directory
 
> cat /tmp/menu.html
<html>
<head>
<link rel="stylesheet"  href="css/style.css" >
</head>
<body>
<!--contents -->
<!--/contents -->
</body>
</html>
Do you have any ideas?
 
Thhanks!
 
Regards
Bjoern

Rodolfo_Bonnin
Level 3
Hi Bjoern,

I've fixed a command line handling bug, which prevented correct initialization,  and added two plugins, one that generate some llt diagnostic information, and another one that generates a service groups dependency graph using dot from graphviz package. If not installed, the plugin simply exits without output.

Download from http://milagodo.no-ip.info/src-rev15.tar.gz

Regarding the menu, it is dynamically  generated from the XML file, as a  first step we should check if the XML file  contents are correctly converted in a Perl data structure.

Please add the following to main.pl at line 30:

print Dumper($data);


And see the output. It should begin like:

$VAR1 = {
          'vxexplorer_path' => {
                               'path' => 'reserved'
                             },
          'categories' => {
                          'category' => [
                                        {
                                          'filter' => [
                                                      {
                                                        'plugin' => {

...

I`ll setup a Solaris box/VM to have the tool working on it.

PS, Would anybody share vxexplorer output from  non-sensible clusters
on Win/HP-UX/Solaris SPARC? It could help the tool development, as I don't have access to such environments. Many thanks in advance.


Regards.
R.B.


Message Edited by Rodolfo Bonnin on 02-05-2008 08:38 AM

Message Edited by Rodolfo Bonnin on 02-05-2008 08:41 AM

Message Edited by Rodolfo Bonnin on 02-05-2008 08:44 AM

bsobek
Level 5
Hi,
 
I added "print Dumper($data);" at line 30 and ran the scripts. I got the structure you mentioned.
 
But the result is still the same :(
 
do you have any idea, why I get no output-files? is it because of solaris?
 
which version of VRTSexplorer do you use?
 
I'm not very familiar with perl,  The XML::SIMPLE is XML::Simple in my case and the path to perl-binary is /usr/bin/perl. I corrected it for my environment. Which version of perl do you use? (I use the standard solaris version v5.8.4)
 
 
Greets
Bjoern
 
 
 
 
 

bsobek
Level 5

Hi,

all text-files had a ^M at the end, after converting witrh dos2unix the script run partialy:

executing plugin: overview
No such file or directory at lib/templating.pm line 58.
executing plugin: env
executing plugin: ps
executing plugin: depgraph
executing plugin: gabstatus
executing plugin: hadversion
No such file or directory at plugins/vxfs_fs_aix.pl line 14.
executing plugin: var_vcs_engineA_logs
executing plugin: var_vcs_engineA_logs_analysis
Can't call method "mtime" on an undefined value at plugins/var_vcs_EngineA_logs_analysis.pl line 11.
executing plugin: mount
Died at plugins/mountpoints_aix.pl line 16.
executing plugin: vxfs_fs
No such file or directory at plugins/vxfs_fs_aix.pl line 14.
executing plugin: vxdisklist
executing plugin: vxdglist
executing plugin: details
No such file or directory at plugins/error-var_adm_stream.pl line 12.
executing plugin: lltdiags

It seems, that this plugin doesn's return :(

 

Greets

Bjoern

Rodolfo_Bonnin
Level 3
Hi Bjoern,
Thank for your feedback! and sorry for the basic error, I was about to try it on Linux and Solaris, if done before, the required changes  would  have been clear.

I uploaded a cleaned up version of the tool, with your changes and llt plugin deactivated by default while I investigate the issues with it. OS detection is now on todo list.

About the errors in Solaris:

*No such file or directory at lib/templating.pm line 58: Will investigate on it.

*Every _aix error is simply due to files
exclusively belonging to AIX generated explorers. The tool should be capable on deactivating plugins based on architecture.

*Can't call method "mtime" on an undefined value at plugins/var_vcs_EngineA_logs_analysis.pl line 11 : Please install Time::localtime. Better dependencies documentation is added as todo.

*No such file or directory at plugins/error-var_adm_stream.pl line 12 : will also investigate on it.

Download new version from http://milagodo.no-ip.info/src-rev17.tar.gz

Regards,
R.B

Rodolfo_Bonnin
Level 3
The tool's last version is now located at:

http://slashtmp.com.ar/files/vxanalyzer/vxanalyzer-rev17.tar.gz

Regards,
Rodolfo Bonnin.

CyberMartyr
Level 3

Will there be any updates to this project?  I get the following output with a -w

perl main.pl /unix_ops/VRTSexplorer_311-965-873_tapdom2 /unix_ops/output

 

Scalar value @ARGV[1] better written as $ARGV[1] at main.pl line 14.
Scalar value @ARGV[0] better written as $ARGV[0] at main.pl line 75.
Scalar value @ARGV[0] better written as $ARGV[0] at main.pl line 90.
Name "main::result" used only once: possible typo at main.pl line 90.
Use of uninitialized value in concatenation (.) or string at main.pl line 33.

 

CyberMartyr
Level 3

And this...

 

Sorry for the size...

 

 

and nothing in my output folder files but the empty template

 

Rodolfo_Bonnin
Level 3

Hi Douglas,

 

I'm looking into this issue. Feel free to suggest any new useful filter/functionality you see for the tool.

 

Regards,

Rodolfo Bonnin.

Message Edited by Rodolfo Bonnin on 07-18-2008 10:22 AM

CyberMartyr
Level 3
I don't have any suggestions yet as I have not seen the tool work yet but I am willing to provide a webpage and some hosting for this tool on my personal company website.

Rodolfo_Bonnin
Level 3

Douglas,

 

I did a couple of fixes to the tool, solving some path issues. I'll be uploading a new version in the following hours. Thanks for having a look at it.

 

Regards,

Rodolfo Bonnin.

Rodolfo_Bonnin
Level 3

Hi all,

 

A new version of vxanalyzer is available here

Changes:

 

-Some hardcoded paths fixed.

-Output directory tree generation fixes.

-Several minor corrections.

 

This tool requires XML::Simple, and optionally uses graphviz's dot utility to generate a graphical representation of ServiceGroups dependencies.

 

Usage: 

$ perl main.pl Uncompressed_Vxexplorer_Dir Output_dir

 

Regards,

Rodolfo Bonnin.

CyberMartyr
Level 3

Progress!

 

Here is my new output!

 

/unix_ops/output/menu.htmlexecuting plugin: overview
No such file or directory at lib/templating.pm line 58, <F> line 1.
executing plugin: env
executing plugin: ps
executing plugin: depgraph
executing plugin: gabstatus
executing plugin: hadversion
executing plugin: var_vcs_engineA_logs
executing plugin: var_vcs_engineA_logs_analysis
Can't call method "mtime" on an undefined value at plugins/var_vcs_EngineA_logs_analysis.pl line 11.
executing plugin: mount
Died at plugins/mountpoints_aix.pl line 16.
executing plugin: vxfs_fs
executing plugin: vxdisklist
executing plugin: vxdglist
executing plugin: details
No such file or directory at plugins/error-var_adm_stream.pl line 12.

 

Also you have to change this line:

$xml = XML::SIMPLE->new(); in main.pl to this:

$xml = XML::Simple->new();

 

Some links did generate in the output folder but most were either not found or blank.

CyberMartyr
Level 3
PM me if your interested in my zipped up VRTSexplorer data and output directory from your software.  I will provide links so you can analyze.