You are on page 1of 4

18/12/2014

TivoliStorageManagerClientCommands(dsmccommands)| tar.gz

tar.gz

01101101 01100101 01101000 00101110

Username

Password
Login

Tips & Tricks

Tw eet

Share

Like

Tivoli Storage Manager Client Commands (dsmc commands)


Submitted by root on Fri, 10/21/2011 17:16

These are just some hints. For more details please check dsmc manual.
How to enter to TSM client:
root@gz~#dsmc
How to check where are the configuration files (usually is /usr/tivoli/tsm/client/ba/bin):
root@gz~#echo$DSM_DIR
How to check when last backup ran:
root@gz~#dsmcqfi
How to check schedule (use se if you want to check it for a specific server):
root@gz~#dsmcqsched
root@gz~#dsmcqschedse=tsmserver1
How to look for files under some directory:
root@gz~#dsmcqbsubdir=yesinactive"/data/stuff/*"
How to look for files under some directory on the backup server for a host:
root@gz~#dsmcqbinactivesubdir=yesse=&ltclient>"/data/stuff/*"
How to restore from incremental backup all files in /data/stuff directory, including the deleted ones active or
inactive:
root@gz~#dsmcrestoresubdir=yeslatest"/data/stuff/*"
How to restore files to /tmp/oldfiles:
root@gz~#dsmcrestorepicksubdir=yes"/data/stuff/*"/tmp/oldfiles/
How to restore inactive files:
root@gz~#dsmcrestoreinactivepicksubdir=yes"/data/stuff/*"/tmp/oldfiles/
How to restore without overwriting existing files:
root@gz~#dsmcrestoreverbosesubdir=yesrep=no/data/stuff/
How to look for all *.arc files between specific days mm/dd/yyyy:
root@gz~#dsmcqbinactivedateformat=1subdir=yes"/oracle/archives/*.arc"FROMdate=01/03/2010
TODate=01/03/2010
http://docs.gz.ro/tsmclientcommands.html

1/4

18/12/2014

TivoliStorageManagerClientCommands(dsmccommands)| tar.gz

How to run a backup now:


root@gz~#dsmcincrver
How to backup a single file:
root@gz~#dsmcbackup"/etc/filesystems"
How to restore /exploit/ to a point in time:
root@gz~#dsmcrestoresubdir=yinapitdate="10/08/11""/exploit/*"/tmp/exploitrestore/
How to restore some files between dates:
root@gz~#dsmcrestoresubdir=yina"/exploit/*"/tmp/exploitrestore/FROMdate=05/03/2010
TODate=06/03/2010
How to display a list of all your backups on /home/ (use the detail option to display the last modification date and
the creation date of each file):
root@gz~#dsmcqbackupsub=yesdetail"/home/*"
How to display a list of all your backed up files with dateformat and timeformat options:
root@gz~#dsmcqbdate=1time=4su=y"/home/*"
How to include the timeformat option in a command (it must precede the fromtime, pittime, and totime options):
root@gz~#dsmcqbdate=1timeformat=4fromd=05/01/2006fromt=11:59AM/
How to display a list of active and inactive backup versions of files from which you can select versions to restore:
root@gz~#dsmcrestore"/user/project/*"pickinactive
How to restore all files in the /home/ directory to their state as of 3:00 PM on March 10, 2010.:
root@gz~#dsmcrestorepitd=3/10/2010pitt=15:00:00/home/
How to restore from archive:
List the backups:

root@gzaix#dsmcqarch/home/user/important.txt
IBMTivoliStorageManager
CommandLineBackup/ArchiveClientInterface
ClientVersion5,Release3,Level5.4
Clientdate/time:02/23/1213:44:54
(c)CopyrightbyIBMCorporationandother(s)1990,2007.AllRightsReserved.
NodeName:GZAIX
SessionestablishedwithserverGZTSMSERV:AIXRS/6000
ServerVersion5,Release5,Level5.2
Serverdate/time:02/23/1213:44:54Lastaccess:02/23/1213:44:47
SizeArchiveDateTimeFileExpiresonDescription

12,892,074B03/02/1106:22:39/home/user/important.txt03/01/12ArchiveDate:03/02/11
14,837,646B04/02/1106:19:00/home/user/important.txt04/01/12ArchiveDate:04/02/11
16,764,897B05/02/1105:48:05/home/user/important.txt05/01/12ArchiveDate:05/02/11
25,636,989B06/02/1106:10:06/home/user/important.txt06/01/12ArchiveDate:06/02/11
31,112,013B07/02/1106:18:35/home/user/important.txt07/01/12ArchiveDate:07/02/11
29,823,633B08/02/1106:43:03/home/user/important.txt08/01/12ArchiveDate:08/02/11
22,432,587B09/02/1109:01:12/home/user/important.txt09/01/12ArchiveDate:09/02/11
20,339,856B10/05/1111:57:45/home/user/important.txt10/04/12ArchiveDate:10/05/11
20,339,856B10/05/1111:57:45/home/user/important.txt10/04/12ArchiveDate:10/05/11
13,886,136B11/02/1105:51:21/home/user/important.txt11/01/12ArchiveDate:11/02/11
7,927,674B12/07/1105:37:25/home/user/important.txt12/06/12ArchiveDate:12/07/11
8,516,901B01/03/1212:03:54/home/user/important.txt01/02/13ArchiveDate:01/03/12
2,150,058B02/02/1206:15:12/home/user/important.txt02/01/13ArchiveDate:02/02/12
Run the restore command (if you do not specify the target path, the file will be restored on its original location):

root@gzaix#dsmcretrieve/home/user/important.txt/tmp/bm/FROMdate=09/02/11TODate=09/02/11
IBMTivoliStorageManager
CommandLineBackup/ArchiveClientInterface
ClientVersion5,Release3,Level5.4
Clientdate/time:02/23/1214:58:31
(c)CopyrightbyIBMCorporationandother(s)1990,2007.AllRightsReserved.
Retrievefunctioninvoked.
NodeName:GZAIX
http://docs.gz.ro/tsmclientcommands.html

2/4

18/12/2014

TivoliStorageManagerClientCommands(dsmccommands)| tar.gz

SessionestablishedwithserverGZTSMSERV:AIXRS/6000
ServerVersion5,Release5,Level5.2
Serverdate/time:02/23/1214:58:31Lastaccess:02/23/1214:55:43

Totalnumberofobjectsretrieved:2
Totalnumberofobjectsfailed:0
Totalnumberofbytestransferred:21.39MB
Datatransfertime:0.24sec
Networkdatatransferrate:88,638.33KB/sec
Aggregatedatatransferrate:179.85KB/sec
Elapsedprocessingtime:00:02:01
List the result:

root@gzaix#lsla/tmp/bm/user/important.txt
rwrwrw1rootcft22432587Sep0206:10/tmp/bm/user/important.txt

Show the TSM Server Connection Information:


root@gzaix#dsmcqsess
IBMTivoliStorageManager
CommandLineBackup/ArchiveClientInterfaceVersion5,Release2,Level2.9
(c)CopyrightbyIBMCorporationandother(s)1990,2003.AllRightsReserved.
NodeName:GZAIX
SessionestablishedwithserverGZTSM199:AIX
ServerVersion6,Release3,Level3.100
Serverdate/time:06.11.201310:22:29Lastaccess:06.11.201310:22:25
TSMServerConnectionInformation
ServerName.............:GZTSM199
ServerType.............:AIX
ServerVersion..........:Ver.6,Rel.3,Lev.3.100
LastAccessDate........:06.11.201310:22:29
DeleteBackupFiles.....:"Yes"
DeleteArchiveFiles....:"Yes"
NodeName...............:GZAIX
UserName...............:root

Display the TSM exclusion list:


root@gzaix#dsmcqueryinclexcl
IBMTivoliStorageManager
CommandLineBackupArchiveClientInterface
ClientVersion6,Release2,Level2.3
Clientdate/time:11/06/1314:45:35
(c)CopyrightbyIBMCorporationandother(s)1990,2010.AllRightsReserved.
NodeName:GZAIX
SessionestablishedwithserverGZTSM199:AIX
ServerVersion6,Release3,Level3.100
Serverdate/time:11/06/1314:44:37Lastaccess:11/06/1314:41:37
***FILEINCLUDE/EXCLUDE***
ModeFunctionPattern(matchfromtopdown)SourceFile

Noexcludefilespacestatementsdefined.
ExclDirectory/var/spool/qdaemonServer
ExclDirectory/var/spool/lpdServer
ExclDirectory/procServer
ExclDirectory/mntServer
ExclDirectory/media*Server
ExclDirectory/cdrom*Server
ExclDirectory/.../*.tmpServer
ExclDirectory/.../*.tempServer
ExclDirectory/.../tmpServer
ExclDirectory/.../tempServer
ExclDirectory/.../isoServer
NoDFSinclude/excludestatementsdefined.

http://docs.gz.ro/tsmclientcommands.html

3/4

18/12/2014

TivoliStorageManagerClientCommands(dsmccommands)| tar.gz

to post c omments 20746 reads

THOU SHALT NOT STEAL!

If you want to use this information on your own website, please remember: by doing copy/paste entirely it is always
stealing and you should be ashamed of yourself!
Have at least the decency to create your own text and comments and run the commands on your own servers and
provide your output, not what I did!

Tw eet

1
Share

Like

RECENT CONTENT
NIM Bosinst error: LED 611: failure: mount
root
Linux backup/restore/reinstall
root
Executing commands remotely on multiple systems via SSH
root
mksysb restoration error: Over mounting /.
root
HM C commands
root
Debian Tips & Tricks
root
Using M dadm
root
M iscellaneous
root
mksysb: An internal packing error occurred: incorrect size
root
Debian: How to split rc.local in rc.local.stop and rc.local.start
root
Debian: How to install, configure and manage ZFS
root
How to remove LVM snapshots if you get message "Can't remove open logical volume"
root
How to resize iscsi volume in Linux
root
Debian: how to create/remove bonding device
root
How to check which local device is assigned to which iscsi disk
root
FreeNAS tricks
root
VirtualBox: How to Add Serial Port for Linux Cluster Heartbeat M onitoring
root
Debian Heartbeat: Commands, Tips and Tricks
root
Debian DRBD: Tips, Tricks and Commands
root
VirtualBox Tips&Tricks
root

http://docs.gz.ro/tsmclientcommands.html

4/4

You might also like