mksess

Use the mksess to create a Replication Manager session specifying copy relationships among groups.

Syntax

Read syntax diagramSkip visual syntax diagram>>-repcli-- --mksess-- ---cptype-- copytype-- ------------------>

>---srcgrp--group_name-- --------------------------------------->

>---poolcrit--sequence_name:filter_type=filter_value-- --------->

>--+--------------------+-- --+----------------------+-- ------->
   '--approve--+-man--+-'     '--desc--"description"-'
               '-auto-'

>--session_name-- ---------------------------------------------><

Parameters

-cptype pprc|flash
Specifies the copy type for the session. Specify either flash for FlashCopy or pprc for continuous, synchronous, remote copy.
-srcgrp group_name
Specifies the source group for the session. Choose only one group per session. Do not specify a group that is being managed by another session.
-poolcrit seq_name:filter_type=filter_value
Specifies the criteria for target Replication Manager pools based on sequence name and filter value. The sequence name is Remote Target for PPRC or Flashed Target for FlashCopy. The filter type is the location. Use a colon to separate the sequence name, filter type, and filter. Specify loc as the filter value.
-approve man | auto
An optional parameter that validates the target. Specify man for manual; specify auto for automatic. The default is automatic.
-desc "description"
An optional parameter that assigns a user-defined description of the Replication Manager group. The maximum alphanumeric character length is 250.
session_name
Assigns a user-defined session name. The session name must be unique; it cannot be the same as another existing Replication Manager session name. The maximum alphanumeric character length is 250.

Description

You can use the mksesscommand to create a Replication Manager session specifying copy relationships among groups.

Return values

Session session_name successfully created.

Possible failures

Examples

An invocation example:

repcli> mksess -cptype pprc -srcgrp mygroup -poolcrit "Remote Target:location=rtp" -approve auto mysession

The resulting output:

session mysession successfully created

Related topics

(C) Copyright International Business Machines Corporation 2004