Tool

aburgemeister's picture
tool
Reads:

4458

Score:
0
0
 
Comments:

0

mversionreader Tool

Author Info

27 February 2008 - 10:08am
Submitted by: aburgemeister

(View Disclaimer)

license: 
Free

Attached is a tool 'mversionreader' that is made to extend the functionality of the 'versionreader' tool which is part of Novell Sentinel. The Sentinel versionreader tool gets version information from Sentinel JAR files so a customer or Novell's Support organization can verify that the correct versions are installed in a particular system. The default tool only takes one parameter at a time which makes getting the versions of all files in a system difficult.

This tool will take either multiple files as arguments or an entire directory and will then parse all JAR files for their versions. If no parameters are specified, then the default $ESEC_HOME/lib directory is parsed. Output is written to standard out (STDOUT) and can be redirected to a file to be saved or sent to a third party like any other program's output. This script is written in Perl and is intended for use on Linux/Unix systems. The tool assumes that $ESEC_HOME is set for the running user which is normal on systems with Sentinel components installed. For usage information use the following command:

mversionreader.pl --h
Usage: ./mversionreader.pl [/path/to/directory | [/path/to/jar/file0.jar [/path/to/jar/file1.jar]...]

Redirecting output to a file:

mversionreader.pl > /tmp/versioninfo.txt

Place the file in a directory specified in the user's path for the command to work without a full path as specified above. $ESEC_HOME/bin is one example for Sentinel systems but others include (on SUSE/SLES/SLED) the user's ./bin directory (/home/username/bin for example) or /usr/local/bin if 'root' privileges are available to put the file there.

AttachmentGrootte
mversionreader.pl.txt1.61 KB

Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).

It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.




User Comments

© 2013 Novell