Skip to main content
Skip table of contents

CLI cookbook: admin application configuration

The following are done after logging into the Delphix admin app as  admin@<delphix engine hostname>.

Add Kerberos environment

CODE
jkb-5160.dcenter> cd /environment/
jkb-5160.dcenter environment> ls
Children
oracle
user
windows

Operations
create
jkb-5160.dcenter environment> create
jkb-5160.dcenter environment create *> ls
Properties
   type: HostEnvironmentCreateParameters
   hostEnvironment:
       type: UnixHostEnvironment
       name: (unset)
       aseHostEnvironmentParameters: (unset)
       description: (unset)
   hostParameters:
       type: UnixHostCreateParameters
       host:
           type: UnixHost
           address: (required)
           privilegeElevationProfile: (unset)
           sshPort: 22
           toolkitPath: (required)
           truststorePassword: (unset)
   primaryUser:
       type: EnvironmentUser
       name: (unset)
       credential:
           type: PasswordCredential
           password: (required)
       environment: (unset)
       groupId: (unset)
       userId: (unset)
jkb-5160.dcenter environment create *> set hostParameters.host.address=ln-rh64-tgt.dc2.delphix.com
jkb-5160.dcenter environment create *> set hostParameters.host.toolkitPath=/tmp
jkb-5160.dcenter environment create *> set primaryUser.credential.type=KerberosCredential
jkb-5160.dcenter environment create *> commit
   `UNIX_HOST_ENVIRONMENT-2
   Dispatched job JOB-4
   ENVIRONMENT_CREATE_AND_DISCOVER job started for "ln-rh64-tgt.dc2.delphix.com".
   ENVIRONMENT_CREATE_AND_DISCOVER job for "ln-rh64-tgt.dc2.delphix.com" completed successfully.
jkb-5160.dcenter environment>
jkb-5160-2.dcenter environment> ls
Objects
NAME                         DESCRIPTION
ln-rh64-tgt.dc2.delphix.com  -

Children
oracle
user
windows

Operations
Create
jkb-5160-2.dcenter environment> select ln-rh64-tgt.dc2.delphix.com
jkb-5160-2.dcenter environment 'ln-rh64-tgt.dc2.delphix.com'> ls
Properties
   type: UnixHostEnvironment
   name: ln-rh64-tgt.dc2.delphix.com
   aseHostEnvironmentParameters: (unset)
   description: (unset)
   enabled: true
   host: ln-rh64-tgt.dc2.delphix.com
   primaryUser: sybase
   reference: UNIX_HOST_ENVIRONMENT-1

Operations
delete
update
disable
enable
refresh
jkb-5160-2.dcenter environment 'ln-rh64-tgt.dc2.delphix.com'>

Add Kerberos ASE instance

CODE
jkb-5160-2.dcenter environment> cd /repository/
jkb-5160-2.dcenter repository> ls
Children
template

Operations
create
compatibleRepositories
jkb-5160-2.dcenter repository> create
jkb-5160-2.dcenter repository create *> ls
Properties
   type: ASEInstance
   credentials: (unset)
   dbUser: (unset)
   environment: (required)
   installationPath: (required)
   instanceName: (required)
   instanceOwner: (required)
   ports: (required)
   servicePrincipalName: (unset)
   version: (unset)
jkb-5160-2.dcenter repository create *> set credentials.type=KerberosCredential
jkb-5160-2.dcenter repository create *> set environment=ln-rh64-tgt.dc2.delphix.com
jkb-5160-2.dcenter repository create *> set installationPath=/opt/sybase/15-0
jkb-5160-2.dcenter repository create *> set ports=5100
jkb-5160-2.dcenter repository create *> set instanceName=ASE1570_S1
jkb-5160-2.dcenter repository create *> set instanceOwner=sybase
jkb-5160-2.dcenter repository create *> set servicePrincipalName=ASE1570_S1
jkb-5160-2.dcenter repository create *> commit
   `ASE_INSTANCE-1
jkb-5160-2.dcenter repository> ls
Objects
NAME        VERSION ENVIRONMENT                
ASE1570_S1  15.7 SP138 ln-rh64-tgt.dc2.delphix.com

Children
template

Operations
create
compatibleRepositories
jkb-5160-2.dcenter repository> select ASE1570_S1
jkb-5160-2.dcenter repository 'ASE1570_S1'> ls
Properties
   type: ASEInstance
   name: ASE1570_S1
   credentials:
       type: KerberosCredential
   dbUser: sybase
   discovered: false
   environment: ln-rh64-tgt.dc2.delphix.com
   installationPath: /opt/sybase/15-0
   instanceName: ASE1570_S1
   instanceOwner: sybase
   instanceOwnerGid: 500
   instanceOwnerUid: 500
   internalVersion: 15.7 SP138
   linkingEnabled: true
   pageSize: 4096
   ports: 5100
   provisioningEnabled: true
   reference: ASE_INSTANCE-1
   servicePrincipalName: ASE1570_S1
   staging: false
   version: 15.7 SP138

Operations
delete
update
jkb-5160-2.dcenter repository 'ASE1570_S1'>

Link a dSource

CODE
jkb-5160-2.dcenter> cd /database
jkb-5160-2.dcenter database> ls
Children
template

Operations
createEmpty
createRestorationDataset
export
fileMapping
link
oracleSupportedCharacterSets
provision
validateXpp
xpp
jkb-5160-2.dcenter database> link
jkb-5160-2.dcenter database link *> ls
Properties
   type: LinkParameters
   name: (required)
   description: (unset)
   group: (required)
   linkData:
       type: ASELinkData
       config: (required)
       dbCredentials:
           type: PasswordCredential
           password: (required)
       dbUser: (unset)
       dumpCredentials: (unset)
       externalFilePath: (unset)
       loadBackupPath: (required)
       loadLocation: (unset)
       operations: (unset)
       sourceHostUser: (required)
       sourcingPolicy: (unset)
       stagingHostUser: (required)
       stagingPostScript: (unset)
       stagingPreScript: (unset)
       stagingRepository: (required)
       syncParameters:
           type: ASELatestBackupSyncParameters
       validatedSyncMode: ENABLED

Operations
defaults
jkb-5160-2.dcenter database link *> set name=test1
jkb-5160-2.dcenter database link *> set group=Untitled
jkb-5160-2.dcenter database link *> set linkData.config=test1
jkb-5160-2.dcenter database link *> set linkData.dbCredentials.type=KerberosCredential
jkb-5160-2.dcenter database link *> set linkData.loadBackupPath=/home/sybase/db
jkb-5160-2.dcenter database link *> set linkData.stagingRepository=ASE1570_S1
jkb-5160-2.dcenter database link *> set linkData.sourceHostUser=sybase
jkb-5160-2.dcenter database link *> set linkData.stagingHostUser=sybase
jkb-5160-2.dcenter database link *> set linkData.syncParameters.type=ASENewBackupSyncParameters
jkb-5160-3.dcenter database link linkData syncParameters *> commit
   `ASE_DB_CONTAINER-1
   Dispatched job JOB-4
   DB_LINK job started for "Untitled/test1".
   DB_LINK job for "Untitled/test1" completed successfully.
jkb-5160-2.dcenter database>
jkb-5160-2.dcenter database> ls
Objects
NAME   PROVISIONCONTAINER  DESCRIPTION
test1  -             -

Children
template

Operations
createEmpty
createRestorationDataset
export
fileMapping
link
oracleSupportedCharacterSets
provision
validateXpp
xpp
jkb-5160-2.dcenter database>

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.