Results 1 to 7 of 7
Thread: Search .mdb files
-
01-28-2011, 12:23 AM #1Member
- Join Date
- Jan 2008
- Posts
- 19
- Thanks
- 0
- Thanked 1 Time in 1 Post
Search .mdb files
Hi
I am trying to run a query on the TSM database to find the .mdb files in the active versions of the currently being backed client ( not retired clients). Below is the query i wrote -- but it giving me output of all the clients -- retired and currently being backed.
select node_name, left(hl_name,99), ll_name from backups where state='ACTIVE_VERSION' and ll_name like '%.MDB' > /home/rpatel1/search.txt
Output of command redirected to file '/home/rpatel1/search.txt'
Please help me with the correct syntax
-
01-28-2011, 09:08 AM #2Member
- Join Date
- Sep 2010
- Posts
- 151
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Hi,
If you know the node name, then you could do it like this:
select node_name, left(hl_name,99), ll_name from backups where state='ACTIVE_VERSION' and ll_name like '%.MDB' and node_name='nameofyournode' > /home/rpatel1/search.txt
Output of command redirected to file '/home/rpatel1/search.txt'
Also, you could use the time and put a 24 hours limit like timestamp-24
Best regards.
-
01-29-2011, 11:22 AM #3Member
- Join Date
- Jan 2008
- Posts
- 19
- Thanks
- 0
- Thanked 1 Time in 1 Post
Thanks for the response, but I am not quite familiar with SQL and so am having trouble. I cannot put single node --- since we are trying to find it for all the servers that are currently being backed. Basically we are troubleshooting on all the access database files on difference servers(client) that users put too.
Could you please help me with the time stamp command. I think that will greatly help.
Thanks again for helping
-
01-29-2011, 11:33 AM #4Member
- Join Date
- Sep 2010
- Posts
- 151
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Regardin SQL, well I'm no expert, but here is a page that is great http://thobias.org/tsm/sql/#toc104
And on the timestamp, here is an example from the page:
Objects backed up of a specific node in the last 24 hours
tsm: SERVER1> SELECT backup_date,filespace_name,type,hl_name,ll_name,ow ner, class_name FROM backups -
WHERE node_name='MY_NODE' AND backup_date>=current_timestamp-24 hours
See the backup_date uses te current_timestamp-24hours because the current ts is the current time.
And dont use the node_name parameter.
I guess you could try to see the result first and then refine the query.
-
01-29-2011, 11:42 AM #5Member
- Join Date
- Jan 2008
- Posts
- 19
- Thanks
- 0
- Thanked 1 Time in 1 Post
Running the query now
-
02-04-2011, 06:29 PM #6Member
- Join Date
- Jan 2008
- Posts
- 19
- Thanks
- 0
- Thanked 1 Time in 1 Post
Thanks ad283m, the query worked. It took more than 24 hours to run but I did get the results.
-
02-05-2011, 01:05 PM #7Member
- Join Date
- Sep 2010
- Posts
- 151
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Great!!! Glad to be of help

Read the queries in the link they are great to the daily monitoring and day to day work.
Similar Threads
-
Search
By treds in forum ScriptingReplies: 10Last Post: 10-08-2010, 11:47 AM -
search for an archived file
By toneysamuel in forum Backup / Archive DiscussionReplies: 9Last Post: 06-22-2010, 11:44 AM -
Script to search and update
By Raakin in forum ScriptingReplies: 3Last Post: 10-21-2008, 04:13 PM -
search logs
By treds in forum ScriptingReplies: 1Last Post: 12-18-2007, 05:00 AM -
Off topic - people search
By tommysoft in forum OthersReplies: 0Last Post: 09-17-2007, 08:17 AM


Reply With Quote