Presentation is loading. Please wait.

Presentation is loading. Please wait.

Unit 6: Central Scheduler. 2 Objectives Upon the completion of this course, you will be able to: Describe the Tivoli Storage Manager scheduling modes.

Similar presentations


Presentation on theme: "Unit 6: Central Scheduler. 2 Objectives Upon the completion of this course, you will be able to: Describe the Tivoli Storage Manager scheduling modes."— Presentation transcript:

1 Unit 6: Central Scheduler

2 2 Objectives Upon the completion of this course, you will be able to: Describe the Tivoli Storage Manager scheduling modes available. Set server and client schedule options. Build a client schedule. Build an administrative schedule. Manage the event log.

3 3 Schedules Two types of scheduling Client scheduling – Backup/Restore and Archive/Retrieve – Client OS commands and scripts – One-time scheduled commands Administrative scheduling – Administrative commands – Scripts to automate series of events WAN/SAN 1 12 2 3 4 5 6 7 8 9 10 11 Intelligent management by central scheduling TSM Server

4 4 Central Scheduler Mode – Client Polling Client 2 Scheduling function Schedule time 1 Query for Schedule WAIT TSM SERVER 3 Start Backup/Archive 12 2 3 4 5 6 7 8 9 10 11 1 Schedules All Communications Methods Client Polling TSM DB

5 5 Central Schedule Mode – Server Prompted Client 1 TSM SERVER 3 Start Backup/Archive 12 2 3 4 5 6 7 8 9 10 11 1 Schedules TCP/IP Protocol Only Register address 2 Schedule function TSM DB

6 6 Selecting Schedule Methods SET SCHEDMODes ANY/POLLing/PRompted Administrative SYSTEM Privilege TSM SERVER Prompted Polling SCHEDMODPOlling/PRompted SCHEDLOGnamefile.name SCHEDLOGRETENTION value MAXCMDRETRIESvalue RETRYPERIODminutes PRESCHEDULECMDcmd POSTSCHEDULECMDcmd Client Options File (All Schedule Modes) Client Log File Client

7 7 Pre and Post Schedule Processing PRE command string executes first Quiesce DB Onarchive DB TSM scheduled action executes Backup resultant files from onarchive Post command string executes last Check result Start DB PREschedulecmd=command string or PRENschedulecmd=command string POSTschedulecmd=command string or POSTNschedulecmd=command Server prompts client to begin scheduled backup. 12 Backup 3 12 2 3 4 5 6 7 8 9 10 11 1 TSM Client TSM SERVER

8 8 Consistent Client Return Codes from dsmc.exe Operation failed with one or more error messages (except for skipped files) issued 12 Operation completed with one or more warning messages issued 8 Operation completed successfully, except for one or more skipped files 4 Operation completed successfully0 MeaningReturn code

9 9 Additional Server Prompted Options SCHEDMODePRompted COMMmethodTCPip TCPCLIENTAddressdomain_name/dot_address TCPCLIENTPort 1501 Client Options File CLIENT

10 10 Additional Client Polling Options QUERYSCHedperiodHow often to contact the Server (HOURS) QUERYSCH 12(Default) Client Options File CLIENT

11 11 Managing Client/Server Sessions Administrators with system privilege can set: Percentage of Maxsession that can be used for centralized scheduling. How many retries of a failed scheduled command. Duration between client/server retries. If in client polling mode: – How often to contact the server – The degree of start time randomizing MAXSCHedsessions MAXCMDRetries QUERYSCHedperiod RETRYPeriod RANDomize

12 12 Scheduler Options Summary SCHEDMODE POLLING COMMMETHOD any method SCHEDLOG SCHED.LOG SCHEDLOGRENTENTION5 MAXCMDRETRIES 2 RETRYPERIOD 15 QUERYSCHedperiod12 SET SCHEDMODE ANY SET MAXSCHNN% SET MAXCMDR2 SET RETRYP15 OR SET SCHEDMODEPOLLING SET QUERYSCH12 SET RANDOMIZE50% SCHEDMODEPROMPTED COMMMETHODTCP/IP TCPCLIENTAdomain_name/dot_address TCPCLIENTPORT1501 Options FileDSM.OPT Client Polling Options FileDSM.OPT Server Prompted (Above plus these) DSM.SYS (UNIX) TSM Server CLIENT 12 2 3 4 5 6 7 8 9 10 11 1

13 13 Passwordaccess Generate Encrypted client password stored on client workstation. Automatically picked up by TSM clien.t New password regenerated automatically when old expires. New support for Novell NetWare Macintosh Win32 GUI PASSWORDACCESS GENERATE option DSM.OPT file on singleuser clients. DSM.SYS on multiuser clients. PASSWORDDIR option Specifies location of encrypted node password. Win32 client store encrypted password in Registry. DSM.OPT C:\SECRET\TSM.PWD passwordaccess generate passworddir C:\SECRET Encrypted TSM password

14 14 Managing Schedules MILK DARK WHITE Admin with SYSTEM/POLICY Policy Domain: Dept. Chocolate SCHEDULE DAILY Priority 1 SCHEDULE WEEKLY Priority 3 NODES MILK DARK WHITE MKT1 MKT2 POLICY MC1 MC2 Schedule defined for specific policy domain. Multiple schedules for a policy domain. Clients associated with one or more schedules. Administrator defined and maintained. May prioritize schedules. Copy across policy domains.

15 15 Instructor Demonstration

16 16 Defining Schedules – Relative Date and Time Can specify date and time relative to the execution of the command. Useful for the scheduled commands. Relative date DATE=mm/dd/yyyy DATE=TODAY + number of days DATE=TODAY - number of days DATE=TODAY Relative time TIME=hh:mm:ss TIME=NOW + number of hours : number of minutes TIME=NOW - number of hours : number of minutes 12 2 3 4 5 6 7 8 9 10 11 1

17 17 Define Schedule – Command Line DEFine SCHedule domainname schedulename Type=Client DESCription=description ACTion=action OPTions=optionstring OBJects=objectstring PRIority=priorityvalue STARTDate=startdate STARTTime=starttime DURation=durationvalue DURUnits=durunitsvalue PERUnits=perunitsvalue PERiod=periodvalue DAYofweek=dayofweekvalue EXPiration=expirationvalue UPDATE Schedule... DELETE Schedule...

18 18 Query Schedule – Command Line q sched DomainSchedule NameActionState Date/TimeDurationPeriodDay STANDARDDAILY_INCRInc Bk 01/10/2000 23:05:27 2H2H1D1DAny STANDARD WEEKLY_INCRInc Bk01/10/2000 23:05:271H1H1W1WFri q scheddaily_incr f=d Policy Domain Name: STANDARD Schedule Name: DAILY_INCR Description: Daily incremental backup Action: Incremental Options: Objects: Priority: 5 Start Date/Time: 01/10/2000 23:05:27 Duration: 2 Hour (s) Period: 1 Day (s) Day of Week: Any Expiration: Last Update by (administrator): SERVER_CONSOLE Last Update Date/Time: 01/10/2000 23:05:27

19 19 DEFine ASSOCiation Command Line DEFine ASSOCiation domainname schedulename nodename(s) Schedule

20 20 Instructor Demonstration

21 21 Schedule Example MTWTF 24:00 01:00 Start Backup Startup window: Starttime = 01:00Function: Action = Incremental Backup Time between windows: Period = 2 daysDuration = 6 hours Action must start within startup window. Action may not complete within window. Schedule operations run serially on client. Event log maintained on server. 01:00 startup window actual backup time

22 22 Randomizing Example NODE ANODE B Randomize% = 50 Randomize Period 01:0004:0005:0006:0007:00 RP Startup Window Scatter schedule start time across window. Balance network/server loads. % specification Defines fraction of the window over which start times distributed. Randomization period based on time client polls. Client polling mode only. NODE BNODE A 01:30 03:01 NODE C 05:00 05:45 22:00 Polls Starts

23 23 Server Prompted Example TSM Server SET MAXSESSIONS SET MAXSCHEDSESSIONS SET SCHEDULE PROMPTED SCHEDMODEPROMPTED COMMMETHODTCPIP DSM.OPTDSM.SYS (UNIX) DEFINE SCHEDULE DOMAIN SCHEDULENAME ACTION=I, STARTT = DUR=6,PERIOD=1 DURU=HOURS, PERU=DAYS DAYOFWEEK=WEEKDAY Client 100 Register Schedule Start 90 23:30

24 24 One-time Scheduled Client Commands DEFINE CLIENTACTION command Defines a schedule Associates schedule with a client Wait parameter allows client operation to complete Schedule execution Commands executed as soon as possible by client, dependent on: – client scheduling mode – queryschedperiod for polling mode Client must have scheduler running SET CLIENTACTDURATION command Number of days before action is deleted from database.

25 25 Instructor Demonstration

26 26 Administrative Command Scheduling Administrator commands can be handled by TSM scheduler to: Automate server operations. Ensure server resources are available to clients. Ensure server functions performed with minimal manual intervention. Type of schedule (TYPE=Administrative). Can view administrative command schedule event status. Output sent to the activity log. Not associated to a policy domain. Administrator Schedule Commands 12 2 3 4 5 6 7 8 9 10 11 1 TSM SERVER

27 27 Administrator Scheduling Commands Lower threshold to immediately start migration. Lower threshold to immediately start reclamation. TSM server database backup. Inventory expiration. Storage pool backup. EXAMPLES All administrative commands except QUERY ACTLOG 12 2 3 4 5 6 7 8 9 10 11 1 TSM SERVER

28 28 Instructor Demonstration

29 29 Managing Database Events Each scheduled operation is an event. All events are recorded in the database. Provides an audit trail of completed or missed events Event records purged based on retention period Event Log Schedules DATABASE SET EVENTRETENTION 10

30 30 Query Event Command Display information on scheduled and completed events. All administrators can query events. Two types of query All events (general reporting) Failed events (exception reporting) Can select subset of a report by Policy domain, schedule name, node name, date Two report formulas Standard or detailed

31 31 Standard Event Report Schedule StartActual StartScheduled NameNode NameStatus 07/11/2000 01:00:0007/11/2000 01:12:00DAILY BACKUPMILK COMPLETED 07/11/2000 01:15:00 07/15/2000 01:30:20 DAILY BACKUPDARK FAILED 07/11/2000 02:00:0007/11/2000 02:01:55WEEKLY BACKUPWHITE STARTED 07/11/2000 02:02:0007/11/2000 02:05:25MONTHLY BACKUPMKT1 COMPLETED 07/15/2000 01:20:0007/15/2000 01:20:25RESTOREMKT2 COMPLETED 07/15/2000 01:24:00INCRTAL BACKUPPKG1 MISSED Command: Query EVent DOMAIN1 *

32 32 Detailed Event Report Policy Domain Name:DOMAIN1 Schedule Name:DAILY BACKUP Node Name: MILK Schedule Start:07/11/2000 01:00:00 Actual Start:07/11/2000 01:12:00 Completed: Status: 07/11/2000 01:13:07 COMPLETED Result:0 Command: Query EVent DOMAIN1 * Format=Detailed

33 33 Student Exercise

34 34 Summary You should now be able to: Describe the TSM scheduling modes available. Set server and client schedule options. Build a client schedule. Build an administrative schedule. Manage the event log.


Download ppt "Unit 6: Central Scheduler. 2 Objectives Upon the completion of this course, you will be able to: Describe the Tivoli Storage Manager scheduling modes."

Similar presentations


Ads by Google