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

Friday, November 7, 2008

UNIX performance monitoring

The nmon is the IBM recommended tool to monitor the server performance (linux,AIX)
Download nmon clickhere

Setup procedure:-
This is the tool u can insert in the linux or aix machine by creating one directory, run the below mentioned command in that particular directory wr u placed the nmon file.
./nmon -fT -s 30 -c 120
It will generate one file in the hostname, export that file to your desktop machine using FTP or Winscp, the file will be in the .nmon extention, now u download the nmon analyzer clickhere

this is the EXcel file, before open this file disable the macros in the microsoft Excel security settings, and open the nmon anlyzer file click on the button available over there it will ask for the nmon file, choose the location of the file wr u have in ur desktop, this tool will generate the GUI based report.

this report have almost all nformation of your system including LPAR, CPU,MEMORY,NETWORK,HDD usage, SAN............... etc.,


You can use this at the peak time to check the performance of the servers like DB2, SQL, Websphere, HTTP servers.


regards,
Guru

Thursday, September 25, 2008

The HACMP

HACMP is the aplication developed by IBM for the AIX, but after the version 5.4 the HACMP is designed to work with linux also.
This developed on the basis of HA clustering, By default the application will choose the default location /opt/...., but the HACMP will choose /usr/es/sbin/cluster
./clstat is the command to view the cluster state, it will show you the cluster name & the resource group information.
http://rakeshs.com/viewtopic.php?f=5&t=5


regards,
Guru

Tuesday, September 16, 2008

Killing an unwanted user by giving "w" commands

KILL A USER, IN THE UNIX SENSE
To kill all the processes associated with a particular user
simply:

# kill -9 `ps -aefgrep jondoe awk '{ print $2 }'`

Thursday, September 11, 2008

Vi Cheat Sheet



Click here for the Advanced VI Cheatsheet

Modes


Vi has two modes insertion mode and command mode. The editor begins in command mode, where the cursor movement and text deletion and pasting occur. Insertion mode begins upon entering an insertion or change command. [ESC] returns the editor to command mode (where you can quit, for example by typing :q!). Most commands execute as soon as you type them except for "colon" commands which execute when you press the ruturn key.



Quitting


:xExit, saving changes
:qExit as long as there have been no changes
ZZExit and save changes if any have been made
:q!Exit and ignore any changes



Inserting Text


iInsert before cursor
IInsert before line
aAppend after cursor
AAppend after line
oOpen a new line after current line
OOpen a new line before current line
rReplace one character
RReplace many characters



Motion


hMove left
jMove down
kMove up
lMove right
wMove to next word
WMove to next blank delimited word
bMove to the beginning of the word
BMove to the beginning of blank delimted word
eMove to the end of the word
EMove to the end of Blank delimited word
(Move a sentance back
)Move a sentance forward
{Move a paragraph back
}Move a paragraph forward
0Move to the begining of the line
$Move to the end of the line
1GMove to the first line of the file
GMove to the last line of the file
nGMove to nth line of the file
:nMove to nth line of the file
fcMove forward to c
FcMove back to c
HMove to top of screen
MMove to middle of screen
LMove to botton of screen
%Move to associated ( ), { }, [ ]



Deleting Text


Almost all deletion commands are performed by typing d followed by a motion. For example, dw deletes a word. A few other deletes are:
xDelete character to the right of cursor
XDelete character to the left of cursor
DDelete to the end of the line
ddDelete current line
:dDelete current line



Yanking Text


Like deletion, almost all yank commands are performed by typing y followed by a motion. For example, y$ yanks to the end of the line. Two other yank commands are:
yyYank the current line
:yYank the current line



Changing text


The change command is a deletion command that leaves the editor in insert mode. It is performed by typing c followed by a motion. For wxample cw changes a word. A few other change commands are:
CChange to the end of the line
ccChange the whole line



Putting text


pPut after the position or after the line
PPut before the poition or before the line



Buffers


Named buffers may be specified before any deletion, change, yank or put command. The general prefix has the form "c where c is any lowercase character. for example, "adw deletes a word into buffer a. It may thereafter be put back into text with an appropriate "ap.



Markers


Named markers may be set on any line in a file. Any lower case letter may be a marker name. Markers may also be used as limits for ranges.
mcSet marker c on this line
`cGo to beginning of marker c line.
'cGo to first non-blank character of marker c line.



Search for strings


/stringSearch forward for string
?stringSearch back for string
nSearch for next instance of string
NSearch for previous instance of string



Replace


The search and replace function is accomplished with the :s command. It is commonly used in combination with ranges or the :g command (below).
:s/pattern/string/flagsReplace pattern with string according to flags.
gFlag - Replace all occurences of pattern
cFlag - Confirm replaces.
&Repeat last :s command



Regular Expressions


. (dot)Any single character except newline
*zero or more occurances of any character
[...]Any single character specified in the set
[^...]Any single character not specified in the set
^Anchor - beginning of the line
$Anchor - end of line
\<Anchor - begining of word
\>Anchor - end of word
\(...\)Grouping - usually used to group conditions
\nContents of nth grouping

[...] - Set Examples
[A-Z]The SET from Capital A to Capital Z
[a-z]The SET from lowercase a to lowercase z
[0-9]The SET from 0 to 9 (All numerals)
[./=+]The SET containing . (dot), / (slash), =, and +
[-A-F]The SET from Capital A to Capital F and the dash (dashes must be specified first)
[0-9 A-Z]The SET containing all capital letters and digits and a space
[A-Z][a-zA-Z]In the first position, the SET from Capital A to Capital Z
In the second character position, the SET containing all letters

Regular Expression Examples
/Hello/Matches if the line contains the value Hello
/^TEST$/Matches if the line contains TEST by itself
/^[a-zA-Z]/Matches if the line starts with any letter
/^[a-z].*/Matches if the first character of the line is a-z and there is at least one more of any character following it
/2134$/Matches if line ends with 2134
/\(21|35\)/Matches is the line contains 21 or 35
Note the use of ( ) with the pipe symbol to specify the 'or' condition
/[0-9]*/Matches if there are zero or more numbers in the line
/^[^#]/Matches if the first character is not a # in the line
Notes:
1. Regular expressions are case sensitive
2. Regular expressions are to be used where pattern is specified



Counts


Nearly every command may be preceded by a number that specifies how many times it is to be performed. For example, 5dw will delete 5 words and 3fe will move the cursor forward to the 3rd occurence of the letter e. Even insertions may be repeated conveniently with thismethod, say to insert the same line 100 times.



Ranges


Ranges may precede most "colon" commands and cause them to be executed on a line or lines. For example :3,7d would delete lines 3-7. Ranges are commonly combined with the :s command to perform a replacement on several lines, as with :.,$s/pattern/string/g to make a replacement from the current line to the end of the file.
:n,mRange - Lines n-m
:.Range - Current line
:$Range - Last line
:'cRange - Marker c
:%Range - All lines in file
:g/pattern/Range - All lines that contain pattern



Files


:w fileWrite to file
:r fileRead file in after line
:nGo to next file
:pGo to previos file
:e fileEdit file
!!programReplace line with output from program



Other


~Toggle upp and lower case
JJoin lines
.Repeat last text-changing command
uUndo last change
UUndo all changes to line