You can use DBISQLC.exe, I believe this is located in the X:\...\SEPM\ASA\Win32 folder.
When you open this file it will give you connection options, enter your database login which should be "dba" and whatever password. At the botton in the Data Source Name field choose SymantecEndpointSecurityDSN.
The next screen should be fairly familiar, type commands at bottom, click execute, results at top.
You can create a query and save it as an .SQL file to be ran at any time you want.
Here's some further details:
.sql File considerations:
- A .sql file contains a list of SQL commands separated by semicolons.
- After the list of SQL commands, you can specify output parameters.
- These will be necessary when outputting the results of the SQL queries to a text file.
Examples of .sql files for different types of data:
- Outputting log data:
- Log data will be held in the database in an alphanumeric text format that can be easily outputted to an ASCII file:
SELECT * FROM SEM_AGENT;
OUTPUT TO “file.txt”
FORMAT ASCII
- Outputting .xml data:
- Several configuration files for the SEPM are stored as binary data in the database, but are actually xml files. These can be outputted as xml enclosed in single quotes (‘’):
SELECT * FROM BASIC_METADATA WHERE TYPE = ‘SemClientGroupTree’;
OUTPUT TO “file.txt”
FORMAT ASCII
HEXADECIMAL OFF
Please be aware that this is outside the scope of support for our SEP technicians to assist you with.
Hopefully you wont have too many other questions cause that's about the extent of my knowledge on this :P
We do know reporting is not where it needs to be, this is why we are giving ITAnalytics out to our SEP customers. It's not perfect but its a step in the right direction for now.