OK, now I think I understand.... this may or may not be an SQL query.... it is just some query to a database that is part of the Lucent management application.
This implies that your command line utility
DBsurvey does the query for you based on a configuration file read from the command line,
script_name .
If you can help with the investigation on your end, we can proceed on this end:
[list=1][*]Is DBSurvey a binary file or a text file?[*]Does the command
man DBsurvey produce any output?[*]Does the command
DBsurvey -help provide any output?[*]What is the output on the screen of
DBsurvey without any arguments?[/list=1]
If you can be kind enough to answer these, we can proceed to the next step of the investigation