Environment
NetIQ AppManager 6.x
NetIQ AppManager 7.0.x
NetIQ AppManager Repository
Situation
How do I query to display data between a specific time range from the AppManager Repository?
Resolution
To display data between a specific time range:
- Open SQL Server Query Analyzer.
- Select the Repository (QDB).
- Type the following SQL query:
SELECT *
FROM ArchiveData, ArchiveDataHeader
WHERE ArchiveData.DataID = <DataID> and ArchiveData.Time > <UTC Time A> and ArchiveData.Time < <UTC Time B>
Where:- <DataID> is the DataID of the particular data stream to extract from the ArchiveData and ArchiveDataHeader tables.
- <UTC Time A>* is the first date and time of the data point to extract from the ArchiveData and ArchiveDataHeader tables.
- <UTC Time B>* is the last date and time of the data point to extract from the ArchiveData and ArchiveDataHeader tables.
*Use the prttime.exe utility on the AppManager 4.x CD to find the dates and times. This utility is located under %\Contrib\Utilities.
Example:
SELECT *
FROM ArchiveData, ArchiveDataHeader
WHERE ArchiveData.DataID = 2 and ArchiveData.Time > 1020445296 and ArchiveData.Time < 1020445326 - Execute the SQL query by using F5 or the green arrow.
To display all UTC times for a specific data stream:
- Open SQL Server Query Analyzer.
- Select the Repository (QDB).
- Type the following SQL query:
SELECT *
FROM ArchiveData, ArchiveDataHeader
WHERE ArchiveData.DataID = <DataID>Where <DataID> is the actual DataID of the specific data stream.
- Execute the SQL query by using F5 or the green arrow.
Additional Information
Formerly known as NETIQKB9643