-a
-d
-f
-h Displays the help information
-n No header output
-q
Node,Tally
sys1,1
sys21,1
sys3,1
192.168.1.50,190
$ cat my.auth
user=root
password=mypass
Wednesday, January 20, 2010
Now you have an alternative to FreeTDS - GbsNcoSql
Thanks to Venkat Saranathan, who developed this tool and wrote the description. He also wrote 'gbscmd' for use with ITM 6.x.
Many times, you need to analyze the Omnibus data using scripts. For this purpose, Netcool Omnibus provides nco_sql utility that lets you run the Omnibus queries from the command line. However, one of the main limitations of the nco_sql utility is that it is nearly impossible to parse the output. The difficulties include single record spanning across multiple lines, no delimiter option to name a few.
We at Gulf Breeze worked on this requirement sometime back and developed an utility to address some of these shortcomings. The utility is written in Java and can be run with the Java Runtime that comes with Omnibus. Some of the benefits/features of this utility includes the following.
Here is a sample usage of this utility.
usage: java -jar GbsNcoSql.jar -a [-n] [-d ] [-f | -q ]
Where,
Here is a sample data.
$ java -jar GbsNcoSql.jar -a my.auth -q "SELECT Node,Tally from alerts.status"
You can create an authorization manually in text editior. Here is how my authorization file looks. Please note that in the value for server is the hostname NOT the object server name.
server=somehost
port=4100
Interested?. Please send an email to us at tony.delgross at gulfsoft.com
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment