Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jan 2008
    Posts
    19
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default 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

  2. #2
    Member
    Join Date
    Sep 2010
    Posts
    151
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  3. #3
    Member
    Join Date
    Jan 2008
    Posts
    19
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    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

  4. #4
    Member
    Join Date
    Sep 2010
    Posts
    151
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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.

  5. #5
    Member
    Join Date
    Jan 2008
    Posts
    19
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Running the query now

  6. #6
    Member
    Join Date
    Jan 2008
    Posts
    19
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default

    Thanks ad283m, the query worked. It took more than 24 hours to run but I did get the results.

  7. #7
    Member
    Join Date
    Sep 2010
    Posts
    151
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  1. Search
    By treds in forum Scripting
    Replies: 10
    Last Post: 10-08-2010, 11:47 AM
  2. search for an archived file
    By toneysamuel in forum Backup / Archive Discussion
    Replies: 9
    Last Post: 06-22-2010, 11:44 AM
  3. Script to search and update
    By Raakin in forum Scripting
    Replies: 3
    Last Post: 10-21-2008, 04:13 PM
  4. search logs
    By treds in forum Scripting
    Replies: 1
    Last Post: 12-18-2007, 05:00 AM
  5. Off topic - people search
    By tommysoft in forum Others
    Replies: 0
    Last Post: 09-17-2007, 08:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •