How to execute SQL Command using Pattern for discovery.

nimmi25025
Kilo Expert

Hello All,

I need to run some SQL command in pattern. So I wanted to know if I can do that directly writing command(for e.g. select * from _v_database) in "Set Command Details" after selecting the "Parse Command Output". Or I need to set applicative credentials for this.

 

Regards,

Nimmi

2 REPLIES 2

Michael Skov1
Giga Contributor

If you want to run a specific sql command, you can use sqlcmd. See step 46 "get the edition from sql query if empty" from the sql pattern for inspiration, which runs a sql command. 

Another alternative is to use wmi (also see pattern for inspriation)

Please give the exact name of pattern. 

And Netezza is running on Linux based Appliance. So in that case will WMI query work?

 

Regards,

Nimmi