sql quries tsm

Download SQL Quries Tsm

If you can't read please download the document

Upload: kiran-kumar-peteru

Post on 09-Nov-2015

7 views

Category:

Documents


1 download

DESCRIPTION

jbjkbjkbj

TRANSCRIPT

* Which client nodes currently locked from server access?select node_name from nodes where locked='YES'*How to use string operators in select statement - TSM.select * from actlog where message like 'ANR2565I%'* Which administrative clients currently locked from server access?select admin_name from admins where locked='YES'* Which client nodes that has not specified the correct password lately?select node_name from nodes where invalid_pw_count 0* Which administrative clients that has not specified the correct password lately?select admin_name from admins where invalid_pw_count 0* Which nodes in the WINDOWS policy domain are not associated with the daily backup schedule STANDARD?select node_name from nodes where domain_name='WINDOWS'and node_name-not in (select node_name from associations -where domain_name='WINDOWS'and schedule_name='STANDARD')* Which administrators have policy authority?select admin_name from admins -where upper(system_priv)'NO'or upper(policy_priv)'NO'* What messages of type E (ERROR) or W (WARNING) have been issued in the time period for which activity log records have been maintained?select date_time,msgno,message from actlog where severity='E'or severity='W'* Which administrative schedules have been defined or altered by administrator ADMIN ?select schedule_name from admin_schedules where chg_admin='ADMIN'* What are the relative administrative schedule priorities?select schedule_name,priority from admin_schedules order by priority* Which management classes have an archive copy group with a retention period greater than 365 days?select domain_name,set_name,class_name -from ar_copygroups where retver='NOLIMIT'or cast(retver as integer)>365* Which management classes specify more than 5 backup versions?select domain_name,set_name,class_name -from bu_copygroups where verexists ='NOLIMIT'or cast(verexists as integer)>5* Which client nodes are using the client option set named SECURE ?select node_name from nodes where option_set='SECURE'* How many client nodes are in each policy domain?select domain_name,num_nodes from domains* How many files have been archived from each node?select node_name,count(*)from archives group by node_name* Which clients are using space management?select node_name from auditocc where spacemg_mb 0* If the reclamation threshold were to be changed to 50 percent for storage pool TAPE , how many volumes would be reclaimed?select count(*)from volumes -where stgpool_name='TAPE' and upper(status)='FULL'and pct_utilized 3* How to examine which volumes have read errorsselect VOLUME_NAME,READ_ERRORS from volumes where read_errors >0* How to examine which volumes have an error state different from Noselect VOLUME_NAME,ERROR_STATE from volumes where error_state !='No'* How to examine which volumes have access different from READWRITEselect VOLUME_NAME,ACCESS from volumes where access !='READWRITE'* How to examine which volumes have less than ten percent utilization in device class beginning with the letters SUNselect volume_name,pct_utilized,status,access from volumes-where pct_utilized