Results 1 to 8 of 8
Thread: Paths table in TSM 6.1 database
-
11-06-2009, 09:40 AM #1Newcomer
- Join Date
- Apr 2008
- Posts
- 9
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Paths table in TSM 6.1 database
Hi,
I see that there now isn't a paths table in the TSM DB in 6.1. Does anyone know where in the DB path information is? I'm looking to create a sql script to look up path online/offline status and can't find where I should be querying!
Thanks
-
11-06-2009, 03:02 PM #2Member
- Join Date
- Apr 2005
- Posts
- 5
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Select * from paths still works on TSM 6.1.2.0?
-
11-09-2009, 04:39 AM #3Newcomer
- Join Date
- Apr 2008
- Posts
- 9
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Yep, it does indeed work within TSM command line, but trying it from DB2 command line returns table unknown:
db2 => select * from tsmdb1.paths
SQL0204N "TSMDB1.PATHS" is an undefined name. SQLSTATE=42704
I can't see it listed as a table or a view anywhere.
I need to access the DB2 data directly for reports / monitoring, but I can't find where the paths data is stored in the DB.
Thanks
-
11-09-2009, 05:53 AM #4Member
- Join Date
- Jul 2008
- Posts
- 286
- Thanks
- 1
- Thanked 0 Times in 0 Posts
i don't install tsm 6.1 but this command running without error ?
select * from paths
-
11-09-2009, 07:20 AM #5Newcomer
- Join Date
- Apr 2008
- Posts
- 9
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Yep, select * from paths works from the 6.1 command line, and the database table/view does exist in TSM 5.5 and below, so that's all fine.
I'm looking for how to access this data direct from the TSM 6.1 DB2 database - as far as I can see I don't have a DB2 table or view called paths, which is confusing the life out of me.
I can query from the TSM command line, so it's obviously being stored somewhere... Even searching syscat.columns for any of the column names referenced in the select * from paths output returns nothing.
-
11-09-2009, 07:29 AM #6Member
- Join Date
- Jul 2008
- Posts
- 286
- Thanks
- 1
- Thanked 0 Times in 0 Posts
i used this command :
select library_name,destination_name,source_name,device,d irectory,online,destination_type,source_type from paths
-
11-09-2009, 07:32 AM #7Newcomer
- Join Date
- Apr 2008
- Posts
- 9
- Thanks
- 0
- Thanked 0 Times in 0 Posts
-
11-10-2009, 04:14 PM #8Member
- Join Date
- Apr 2009
- Posts
- 41
- Thanks
- 0
- Thanked 0 Times in 0 Posts
The SQL schema presented by the TSM SELECT command has always been a virtual schema, completely separate from the underlying database schema. This was true in 5.x and is stil true in 6.1. It's just easier to see what the underlying database schema is in 6.1 now that you can bypass TSM and go directly to DB2.
The table names presented in the TSM command line typically correspond to the objects you can define in TSM... NODES, ADMINS, DEVCLASSES, PATHS, etc.. The underlying implementation may use similar table names, or completely different names. There are even a few 'tables' available via TSM's SELECT that have no presence in the underlying database at all.... OPTIONS being the typical example of this.
All of which just goes to explain why there's a difference between what you see on the TSM command line and what is presented to you by DB2. The other thing to keep in mind is that the TSM SQL interface as seen from the TSM command line is a supported external interface. The database schema as seen from DB2 is not. The underlying database schema is the internal implementation used by TSM, and can change without notice. So if you have a dependency on the data you're trying to find, you should use the TSM SQL interface instead of DB2's.
Now, with all these caveats in mind ... look at the NA_PATH table...Last edited by kehannigan; 11-10-2009 at 04:26 PM.
--Ken Hannigan
Tivoli Storage Manager Server Development
Similar Threads
-
TEP - TSM Drive Paths
By ChrisRees in forum TSM Reporting & MonitoringReplies: 12Last Post: 09-25-2009, 05:07 AM -
Paths on TSm changing by themselves?
By spiffy in forum Tape / Media LibraryReplies: 4Last Post: 10-30-2008, 12:13 PM -
TS3500, TSM on AIX and Control paths
By Stephan in forum TSM ServerReplies: 8Last Post: 10-09-2008, 01:42 PM -
Need to Join Nodes table and Occupancy table
By PierCed_3 in forum TSM Reporting & MonitoringReplies: 1Last Post: 05-01-2008, 06:00 PM -
drive WWN and TSM database table
By denisl in forum Tape / Media LibraryReplies: 4Last Post: 05-24-2007, 09:52 PM


Reply With Quote
