100% found this document useful (1 vote)
1K views11 pages

TSM Commands

This document provides examples of commands used to manage backups and tapes in a Tivoli Storage Manager (TSM) environment. It includes commands for viewing backups, updating volumes, labeling volumes, querying scripts and occupancy, taking drives and paths offline/online, and more. The document also includes examples of queries to find failed backups, view where backup data is going, compare volumes in a library to those physically present, and audit a library.

Uploaded by

ArunKumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
1K views11 pages

TSM Commands

This document provides examples of commands used to manage backups and tapes in a Tivoli Storage Manager (TSM) environment. It includes commands for viewing backups, updating volumes, labeling volumes, querying scripts and occupancy, taking drives and paths offline/online, and more. The document also includes examples of queries to find failed backups, view where backup data is going, compare volumes in a library to those physically present, and audit a library.

Uploaded by

ArunKumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 11

variables used in examples below:

server_name=server1
lib_name=3583
drive_name=rmtx where x=1-4
View a node's backed up files
select * from backups where node_name='nodename'
Find volumes marked as unavailable
q vol * acc=unav
Update volumes to read/write status
upd vol vol_name acc=readw
Label new volumes and checkin with scratch status
labe libv lib_name vol_name checki=scr
or for bulk labeling
labe libv 3583 search=bulk labels=barcode checkin=scr
Checkin previously labeled volumes in bulk as scratch (TSM will not allow volumes to be checked in as
scratch if they contain valid data)
checki libv lib_name search=bulk checkl=barcode stat=scr
Query DRMedia volumes
q drmedia
Query volumes physically in library
q libv
* Note: using the two commands above you can locate volumes that have been "lost" by comparing output
Audit all volumes in library quickly
audit libr lib_name checkl=barcode
Query storage pools
q stgpool
Query occupancy, lists how much space each node is using
q occ
Take drive paths offline
upd path server_name drive_name srct=srv dest=dr libr=lib_name devi=/dev/drive_name onl=n
Take drive paths online
upd path server_name drive_name srct=srv dest=dr libr=lib_name devi=/dev/drive_name onl=y
Take library path offline
upd path server_name lib_name srct=serv dest=libr devi=/dev/smc0 onl=n
Take library path online

upd path server_name lib_name srct=serv dest=libr devi=/dev/smc0 onl=y


Query scripts stored on tsm server
q script
Run scripts stored on tsm server
run script_name
Display Gb used in storage pool
select sum(physical_mb)/1024 from occupancy where stgpool_name='storage_pool'
Display Gb used by a single node
select sum(physical_mb)/1024 from occupancy where node_name='nodename'
Some of these commands may vary depending on the type of library that you are dealing with, in my case it is a
IBM 3583 with a barcode reader...

how do you list the nodes whose backup is failmissed?


select node_name from events where (status='Missed' or status='Failed') and (scheduled_start >=
current_timestamp-24 hours)

or

q eve * * exception=yes
What is move data command ?
Use this command to move files from one volume to other volume.
Files from Primary storage pool volumes can be moved to the volumes defined in same storage pool or
other storage pool
Files from Copy storage pool volumes can only move to the volumes defined for same storage pool
move data volume_name
Explain the process the moving the tape from mountable state to vault state?
Whenever a tape is assigned to a copy storage pool volumes it's drm state is automatically changed to
Mountable if DRM is implemented in your environment.
The tapes in the mountable state will be automatically checkout when admin issue the command
move drm * wherest=mo tostate=vault

What are the different types of privileges in TSM Server ?


Types of pevilages available on TSM:
System
Policy
STorage
Operator
Analyst
Node
Use below command to grant autority to administrator
grant auth admin_name

Explain important TSM server files?


Important Server files :
dsmserv.opt --Contains server configuration information
dsmserv.dsk -Disk volumes defined for Db,RecoveryLog ,StgPool
devconfig.out--device information like library,drives ,paths
volhist.out --Information about Sequential volumes like what are the volumes defined for a storage poll
and db backup tapes etc
Explain important TSM client files?
mportant Client files:
dsm.opt
dsm.sys
dsmerror.log
dsmsched.log
Difference between label and checkinlibvolume?
Tape should be labelled when we are using it for the first time and use chekin thereafter..
TSM can't recognize the tape If we checkin a new tape directly without labeling it
Basic AIX CMDs used for TSM maintenance ?
lsdev -Cc tape--Available tape devices on the servers
lscfg -vpl rmt*--Detailed information of tape drives
lscfg -vpl smc*--Detailed information of Tape Library Media changer
ps -ef |grep dsmserv--To check if TSM server is running or not
errpt or errpt -a |pg or errpt -a |more --hardware errors
lslpp -l --Installed Software

lslpp -l |grep Atape--Atape Drivers Version


oslevel or oslevel --Os Version
ifconfig -a --IP Address
prtconf |pg --Complete information of the system

Volume Group Information:


lsvg
lsvg vgname
lsvg -l vgname
Cfgmgr -used to detect new devices configured
rmdev -dl rm* --To delete device from Os level
Difference between active and validate policy set?
Validate Policyset is used to check if policyset configuration is correct
Activate Policyset is used to make a policyset as active policyset within a domain

How will you check password from TSM client?


You are not able to check what password has been set for the client nodes. You may only reset the client
node's password by using the "update node" command.

Changing your TSM password


SET PASSWORD OLDPSWRD NEWPSWRD

How to check Client version?


Q NODE F=D
How do you resolve if log reaches to 100%?
if recoverylog reaches 100% means the server is crash
first we need to find out the error why the server is crash
cd/programfiles/tivoli/tsm/server>dsmserv
then we need to create the volumes for database and recoverylog by using dsmfmt cmd

we need to have the information of server configuration files and last full dbbackup
restore the database by using dsmserv restore db volume=volumename commit =yes/no

how to remove node?


Before removing the node we need to delete the filespaces of a node and backupset for a node by using
the cmd
delete filespaces nodename
delete backupset nodename
then we need to delete a node by using '
remove node nodename

What are the causes for Library offline,how will you resolve the issue?
Causes :
1)Power off line
2)May be connectivity issue
3)Magazines will brake
Resolve :
1)Re define the library with deleting path
2) re boot the llibrary and tsm server
3) if Magazines are broken remove those and reboot the library

versionexist=5 retentionextra=30 on 30th day how many backup copies you


have?
5 Versions 1 set to be active rest four are in active

How to see to which media client backup data is going?


If you want to see while during backup running issue this command
q se f=d (it shows the node name and where the data in going to which tape)

if you want to see volume details


q content volume name

Where you set devclass in library?


Define Devclass devclass name library=library name devtype=devclass type

When do you prefer image backup?


When there are many small files to be backup we go for image backup

What is the reason of recovery log size going to full?


may b two reasons...
1) logmode is in rollforward
2)not taking a backup of db regularly...

What are the major problems you have faced and you have solved?give
details?
drive goes to offline
volume read and write errors
backup is missed
backup has failed
diskpool is full
library is full

How to take Backup? give command with full syntax?


we can take backup through scheduling and manual. when we take DB BACKUP through scheduling, we
define it in admin schedule on the TSM SERVER when we take the backup through manual by using the
"BACKUP DB" commend

BACKUP DB DEVICE CLASS =NAME TYPE =FULL\\INCREMENTAL VOLUME=VOLUME


NAME COMMIT=YES

How to prepare the Scratch Volume?


by using label libvol libraryname volname labelsource=barcode status=scratch
OR
only checkin libvol is enough b\'coz of scratch volume

What are the reasons for missed backups?


1. client is down
2. client schedule service is down
3. network connectivity
4. no connectivity
5. configuration changes are made
6. max sessions reached
7. long running backup
8.node is locked
9. startup duration window is low

Difference between db fullbackup and db snapshot?


Both do the full backup but DB Snapshot does not interfere with Full+Incremental DB backup
sequence and main important thing is db snapshot wont erase the recovery log, but db full backup
erases the total recovery log.

Tell me the device name for library in TSM on AIX?


for drives -,rmt*
for library - smc0

How do you set retentions for Act log?


by using set commands
set actlogretention= no of days

How many types of Client Scheduling? Define CAD service?


main use of CAD service is reduce the burden on client . it refreshes the schedule services at the
schedule startup window
option in dsm.opt
MANAGEDSERVICE WEBCLIENT SCHEDULE

Scartch tape needed in library but all slots are full


First we have to check q drm media cmd if the volumes are in the library then we need to
checkout the volumes belonging to copy stgpool

types of volume status?


1) empty:- it is empty volume
2) full :- when ever data is filled up, that is full
3) pending :- if the tap contains any error\'s
4) filling:- when ever the tape is filling, status is filling

How to reset password for users?


update admin adminname password

what are the different sessions?


1) i dial wait:- waiting from the request from client
2) received wait:- waiting for the data from client

3) send wait:- server will send the data


4) run wait :- sends the data that is runwait
5) media wait:- server waiting for media requies

How to lock and unlock users?


2) lock:- lock admin adminname
unlock:- unlock admin adminname

How to get Server Configuration options?


q opt

Default min and max size of Rlog?


Min size :- 9mb
Max size:- 13gb

TSM SERVER Default Location in Windows/Unix/Aix?


WINDOWS:- C:program files\\Tivoli\\tsm\\server
Unix:-

\\\\\\opt\\tivoli\\tsm\\server\\bin

AIX:-

\\usr\\tivoli\\tsm\\server\\bin

What are the TSM Versions?


TSM 5.3
TSM 5.4
TSM 5.5 (95% Using)
TSM 6.X

TSM 6.2
TSM 6.3(Latest Version)

Daily Activities
TSM Server-Side Daily Administrator Checklist 1. List TSM license compliance. audit lic select
compliance from licenses 2. Query server processes and pending requests to determine if any jobs are
waiting on operator action. q pr q req q se 3. Query all disk storage pools to determine if the migration
process has completed. select stgpool_name, pct_utilized from stgpools where devclass=\'DISK\' 4. List
all drives that are OFFLINE. select drive_name from drives where not online=\'YES\' 5. List all paths that
are OFFLINE. select source_name, source_type, destination_name, destination_type from paths where
not online=\'YES\' 6. List all locked nodes. select node_name from nodes where not locked=\'NO\' 7. List
all non-writeable tape and disk volumes. q v acc=unavail q v acc=reado q v acc=destroyed select
volume_name, read_errors, write_errors from volumes where (read_errors>0 or write_errors>0) select
volume_name from volumes where devclass_name=\'DISK\' and not status=\'ONLINE\' 8. Verify that the
library has sufficient scratch volumes. select library_name,status,count(*) as "VOLUMES" from
libvolumes group by library_name,status 9. Verify that the database extension and reduction values are
non-zero and that the Cache Hit Ration is above 99%. q db f=d 10. Verify that the recovery log extension
and reduction values are non-zero and that the Wait Percentage is zero. q log f=d 11. Verify that database
and recovery log volumes are online and synchronized. q dbv f=d q logv f=d 12. Inspect TSM database
fragmentation level. select cast((100 - (cast(max_reduction_mb as float) * 256 ) / (cast(usable_pages as
float) - cast(used_pages as float) ) * 100) as decimal(4,2)) as PERCENT_FRAG from db 13. Verify that
the scheduled database backups completed successfully. select date (date_time) as date, time(date_time)
as time, volume_name, type from volhistory where type in
(\'BACKUPFULL\', \'BACKUPINCR\', \'DBSNAPSHOT\', \'DBDUMP\') 14. Verify that all CLIENT
schedules for the last day succeeded. q ev * * begind=-1 endd=today begint=00:00:00 endt=00:00:00 To
restrict the listing to only those nodes with non-completed status: q ev * * begind=-1 endd=today
begint=00:00:00 endt=00:00:00 ex=y 15. Verify that all ADMINISTRATIVE schedules for the last day
succeeded. q ev * t=a begind=-1 endd=today begint=00:00:00 endt=00:00:00 To restrict the listing to only
those nodes with non-completed status: q ev * t=a begind=-1 endd=today begint=00:00:00 endt=00:00:00
ex=y 16. Check the activity log for error messages. q actl search=AN?????E begind=-1 begint=00:00
endd=today endt=00:00 17. Open files and other missed filed will often not have the schedule name in
activity log error messages. This query will list these files: select nodename,date_time,message from
actlog where (date_time>currenttimestamp-1 day) and msgno in
(4005,4007,4018,4037,4046,4047,4987,4973,4034,4042) 18. List nodes that are not associated with a
backup schedule. select node_name from nodes where node_name not in (select node_name from
associations) 19. Cross match the TSM node name with the host name or computer name. select
node_name, tcp_address, tcp_name from nodes 20. List PRIMARY POOL volumes that have been
checked out of the library. select volume_name, stgpool_name from volumes where stgpool_name in
(select stgpool_name from stgpools where devclass\'DISK\' and pooltype=\'PRIMARY\') and
volume_name not in (select volume_name from libvolumes) 21. Checkout all D/R Media for offsite
storage. move drm * wherest=mo tost=va rem=b 22. Verify that all D/R volumes have been checked out.
select volume_name from libvolumes where volume_name in (select volume_name from volumes where

stgpool_name in (select stgpool_name from stgpools where devclass\'DISK\' and pooltype=\'COPY\')) 23.
Verify that all TSM database backup volumes have been checked out. select volume_name from
libvolumes where last_use=\'DbBackup\' 24. Identify previous offsite volumes that can be recycled to
scratch status and checkin the same. q drm wherest=vaultr move drm * wherest=vaultr tost=onsite checki
libv checkl=b stat=scr search=b wait=0 25. Generate a list of unlocked TSM administrator accounts with
full system privileges. select admin_name from admins where not system_priv=\'No\' and not
locked=\'No\' 26. List TSM Nodes and Client (BA/TDP) versions by platform. select platform_name as
OS, client_os_level as OS_VER, node_name as Node, cast(cast(client_version as char(2)) \'.\'
cast(client_release as char(2)) \'.\' cast(client_level as char(2)) \'.\' cast(client_sublevel as char(2)) as
char(15)) as "TSM Client" from nodes order by platform_name, "TSM Client", Node 27. Data backed up
in the last 24 hours: select entity, date(start_time) as DATE, time(start_time) as START_TIME,
time(end_time) as END_TIME, substr(char(end_time-start_time),3,8) as DURATION,
cast((bytes/1024/1024/1024) as decimal(18,2)) as GB_BACKED_UP, successful from summary where
cast((current_timestamp-start_time) hours as decimal)=current_timestamp-24 hours and
activity=\'BACKUP\' group by entity 28. Size and duration of archive operations for each node in the last
24 hours: select entity as "Node Name ", cast(sum(bytes/1024/1024) as decimal(10,3)) as "Total MB",
substr(cast(min(start_time) as char(26)),1,19) as "Date/Time ", cast(substr(cast(max(end_time)min(start_time) as char(20)),3,8) as char(8)) as "Length " from summary where
start_time>=current_timestamp-24 hours and activity=\'ARCHIVE\' group by entity 29. Compare
PRIMARY and COPY pool occupancy totals. select sum(num_files) as num_of_files,sum(physical_mb)
as Physical_mb,sum(logical_mb) as logical_mb from occupancy where stgpool_name in (select
stgpool_name from stgpools where pooltype=\'PRIMARY\') select sum(num_files) as
num_of_files,sum(physical_mb) as Physical_mb,sum(logical_mb) as logical_mb from occupancy where
stgpool_name in (select stgpool_name from stgpools where pooltype=\'COPY\')

http://www.expertsfollow.com/

You might also like