Welcome


Thursday, December 25, 2008

TSM client side access

Hi dudes,

There is something crazy about this TSM in all our mind, after looking on to this, its much easier like linux. I hope that the below mentioned messages will give you some dare to speak about TSM in the conference,

Basic Info on TSM Client



Some Terms:

Node Name: Name assigned to TSM client while registering in TSM server



Backup: It’s a backup, which can have 2 or more versions in TSM Server

1. Active version of backup which is the latest backup
2. Inactive version of backup which is older than the latest backup



Archive: It’s a backup, which can have any no. of versions depends upon the expiry date defined in the management class(no. of days of archive stored in tsm server)



You can open a TSM client software using

1. dsm – GUI based tool
2. dsmc – Text based tool



Lets get into some basic commands:


To View the session information like the server name, node name (client) etc…



$ dsmc query session

IBM Tivoli Storage Manager

Command Line Backup/Archive Client Interface

Client Version 5, Release 3, Level 0.12

Client date/time: 11/24/0801:15:11

(c) Copyright by IBM Corporation and other(s) 1990, 2005. All Rights Reserved.



Node Name: DDADB350

Session established with server TSM_SERVER: AIX-RS/6000

Server Version 5, Release 2, Level 3.0

Data compression forced on by the server

Server date/time: 11/24/0801:15:12 Last access: 11/24/0800:54:26



TSM Server Connection Information



Server Name.............: TSM_SERVER

Server Type.............: AIX-RS/6000

Server Version..........: Ver. 5, Rel. 2, Lev. 3.0

Last Access Date........: 11/24/0800:54:26

Delete Backup Files.....: "Yes"

Delete Archive Files....: "Yes"

Node Name...............: DDADB350

User Name...............: root



This shows that

client name is CLIENT

TSM server name is TSM_SERVER.

TSM Server version is 5.2

TSM Client version is 5.3

How to take a backup:



To take selective files:

$ dsmc selective /usr/* -subdir=yes



To take incremental:

$ dsmc incremental /usr/* -subdir=yes





How to archive:



$ dsmc archive /usr/* -archmc=arch0365 –subdir=yes



Here archmc is the term for management class and arch0365 is a customized management class, which will keep the data in tape for 365 days. We can create customized MC in TSM Server.



How to check the active backup:

$ dsmc query backup /usr/* -subdir=yes



How to check the inactive backup:

$ dsmc query backup /usr/* -inactive –subdir=yes



How to check for archived data:

$ dsmc query archive /usr/* -subdir=yes

This will list the files archived, which can be on different dates:



You can use from date option to get a list of archive from that particular date:

$ dsmc query archive /usr/* -fromdate=11/02/06 –subdir=yes





How to check the latest backup date and time:

$ dsmc query filespace

here fs means the file space. File space is the space kept in TSM server for each file system. This command will list the backup information with last backup date.



$ root dsmc query filespace

IBM Tivoli Storage Manager

Command Line Backup/Archive Client Interface

Client Version 5, Release 3, Level 0.12

Client date/time: 11/24/0801:25:50

(c) Copyright by IBM Corporation and other(s) 1990, 2005. All Rights Reserved.



Node Name: DDADB350

Session established with server TSM_SERVER: AIX-RS/6000

Server Version 5, Release 2, Level 3.0

Data compression forced on by the server

Server date/time: 11/24/0801:25:50 Last access: 11/24/0801:15:12

TSM Scrollable Window - Query Filespace



# Last Incr Date Type File Space Name

---------------------------------------------------------------------------------------------------------------------

1. | 02/10/06 22:01:45 JFS /

2. | 02/10/06 22:04:46 JFS2 /db2/RVI/db2dump

3. | 11/24/0800:54:17 JFS2 /db2/RVI/dbs

4. | 02/10/06 22:04:46 JFS2 /db2/RVI/sapdata

5. | 02/10/06 22:04:46 JFS2 /db2/RVI/sapdatat

6. | 02/10/06 22:04:47 JFS2 /db2/db2as

7. | 02/10/06 22:04:54 JFS2 /db2/db2rvi

8. | 02/10/06 22:04:07 JFS /home

9. | 00/00/00 00:00:00 API:archive /mksysb_apitsm

10. | 02/10/06 22:04:18 JFS /opt

11. | 02/10/06 22:05:19 JFS2 /opt/TWS

12. | 11/24/0800:54:10 JFS2 /sapmnt/RVI

13. | 11/24/0800:54:25 JFS2 /sapwork/RVI

14. | 00/00/00 00:00:00 JFS /snap

15. | 02/10/06 22:03:41 JFS /usr

16. | 02/10/06 22:04:27 JFS /usr/local

17. | 02/10/06 22:04:36 JFS /usr/local/Tivoli/lcf/ddadb350

18. | 11/24/0800:54:14 JFS2 /usr/sap/RVI

19. | 02/10/06 22:04:01 JFS /var

20. | 02/10/06 22:04:41 JFS /var/local

0---------10--------20--------30--------40--------50--------60--------70--------80--------90--------100-------110----

=Up =Down =Right =Left =Quit

query filespace> Q





How to restore active backup:

$ dsmc restore /usr/* -subdir=yes



You have to use “subdir” option to restore subdirectories.



How to restore inactive backups:

$ dsmc restore /usr/* - inactive –subdir=yes



How to restore archive:

$ dsmc retrieve /usr/* -subdir=yes



You can retrieve a archive from a particular date using “fromdate” option.

$ dsmc retrieve /usr/* -fromdate=11/02/06 –subdir=yes



To get the scheduled backup information on a client:



$ dsmc

tsm> q schedule

Schedule Name: AIX_05_client_04

Description: Incr backups

Schedule Style: Classic

Action: Incremental

Options:

Objects:

Priority: 5

Next Execution: 20 Hours and 27 Minutes

Duration: 1 Hour

Period: 1 Day

Day of Week: Any

Month:

Day of Month:

Week of Month:

Expire: Never



Schedule Name: AIX_05_MKSYSB_19

Description: Monthly System Backup

Schedule Style: Classic

Action: Command

Options:

Objects: /usr/local/bin/mksysb_apitsm

Priority: 5

Next Execution: 190 Hours and 27 Minutes

Duration: 1 Hour

Period: 1 Month

Day of Week: Any

Month:

Day of Month:

Week of Month:

Expire: Never



Here we have 2 schedules for this client.



For help:



$ dsmc

Ø help

To search the IBM Tivoli Storage Manager technical support Web site to find

technical solutions and answers to frequently asked questions, refer to

http://www.ibm.com/software/sysmgmt/products/support/IBMTivoliStorageManager.html.



The following help topics are available.

Enter the number of the desired help topic or 'q' to quit,

'd' to scroll down, 'u' to scroll up.



0 - Summary of Changes for TSM Version 5.3

1 - Using Commands

2 - Select from the commands listed below:

3 - ARCHIVE

4 - BACKUP GROUP

5 - BACKUP IMAGE

6 - BACKUP NAS

7 - BACKUP WAS

8 - CANCEL PROCESS

9 - CANCEL RESTORE

10 - DELETE ACCESS

11 - DELETE ARCHIVE

12 - DELETE BACKUP

13 - DELETE FILESPACE

14 - DELETE GROUP

15 - EXPIRE

16 - HELP

17 - INCREMENTAL

18 - LOOP

19 - MACRO

20 - MONITOR PROCESS

21 - PREVIEW

22 - QUERY ACCESS

23 - QUERY ARCHIVE

24 - QUERY BACKUP

25 - QUERY BACKUPSET

26 - QUERY FILESPACE

27 - QUERY GROUP

28 - QUERY IMAGE

29 - QUERY INCLEXCL

30 - QUERY MGMTCLASS

31 - QUERY NODE

32 - QUERY OPTIONS

33 - QUERY RESTORE



You can get the syntax of any command here.


will be continue.............



warm regards,

Guru

**********************

*Experiance the name, *

*men given to thier mistake *

Wednesday, December 24, 2008

Adding the printer quue

Hi,

The procedure to add the network printer queue is not a difficult task at any time, in AIX too.

Example: Printer IP (192.168.1.2)
Put the entry in your AIX server host file

vi /etc/hots
192.168.1.2 tallyprinter

Smitty printer --> print spooling --> Add a print queue -->remote--> Local filtering before sending to print server--> others(select if printer is not listed)-->generic printer -->

ASCII (lp001)
hostname of remote server (tallyprinter)
name of the queue on the remote server (lp001)

press Enter...............

now the network printer is added with the name "lp001"
you can check the printer with the command
"lp -dlp001 /etc/host"



regards,
Guru