Skip to content

dx_ctl_js_bookmarks

Marcin Przepiorowski edited this page Dec 9, 2016 · 10 revisions

SYNOPSIS

dx_ctl_js_bookmarks    [ -engine|d <delphix identifier> | -all ] 
                        -action create | remove
                        -template_name template_name
                        -container_name container_name 
                        -bookmark_name bookmark_name 
                       [-bookmark_time "YYYY-MM-DD HH24:MI:SS" | first | latest ]
                       [-snapshots first | last | both | all]
                       [-source source_name]
                       [-container_name container_name]  
                       [ --help|? ] [ -debug ]

DESCRIPTION

Create or remove the Jet Stream bookmarks on Delphix Engine.

ARGUMENTS

Delphix Engine selection - if not specified a default host(s) from dxtools.conf will be used.

  • -engine|d Specify Delphix Engine name from dxtools.conf file
  • -all Display databases on all Delphix appliance

Options

  • -action action_name Action name. Allowed values are :

    create - to create bookmark

    remove - to delete bookmark ( be aware that without bookmark_name - all bookmarks from template or container will be deleted)

  • -template_name template_name Set templare for bookmark using template name

  • -container_name container_name Set container for bookmark using container name

  • -bookmark_name bookmark_name Set bookmark name

  • -bookmark_time time Set bookmark time. Allowed values:

    - "YYYY-MM-DD HH:MI:SS" - timestamp (24h)

    - first - use a branch creation time for bookmark (for template or container)

    - latest - use latest possible time from container or template (now)

  • -source source_name Set source name used for snapshot based bookmark creation

  • -snapshots snapshot Use snapshot from source to create bookmarks. Allowed values:

    • -all - create bookmarks for all snapshot of source created after template was created
    • -first - create bookmark for a first snapshot of source after template was created
    • -last - create bookmark for a last snapshot of source after template was created

OPTIONS

  • -help
    Print this screen
  • -debug Turn on debugging

EXAMPLES

Create template bookmarks for all snapshots for template "template"" and source "oracle", bookmarks name starts with prefix "pre" plus time of snapshot,

dx_ctl_js_bookmarks -d Landshark5 -bookmark_name "pre" -template_name template -snapshots all -source oracle -action create
Starting job JOB-7623 for bookmark pre-2016-10-12 12:02:31.
5 - 100
Job JOB-7623 finished with state: COMPLETED

Create template bookmark for a first snapshot of source "oracle" taken after template was created

dx_ctl_js_bookmarks -d Landshark5 -bookmark_name "firstsnap" -template_name template -snapshots first -source oracle -action create
Starting job JOB-7625 for bookmark firstsnap-2016-10-12 12:02:31.
5 - 100
Job JOB-7625 finished with state: COMPLETED

Create template bookmark for particular time

dx_ctl_js_bookmarks -d Landshark5 -bookmark_name "fixeddate" -template_name template -bookmark_time "2016-10-12 13:05:02" -branch_name master -action create
Starting job JOB-7626 for bookmark fixeddate.
5 - 100
Job JOB-7626 finished with state: COMPLETED

Create container bookmart for latest point

dx_ctl_js_bookmarks -d Landshark5 -bookmark_name "cont_now" -bookmark_time latest -container_name cont1 -action create -template_name template
Starting job JOB-7627 for bookmark cont_now.
5 - 43 - 100
Job JOB-7627 finished with state: COMPLETED

Deleting bookmark for template

dx_ctl_js_bookmarks -d Landshark5 -bookmark_name "firstsnap-2016-10-12 12:02:31" -action remove -template_name template
Starting job JOB-7629 for bookmark firstsnap-2016-10-12 12:02:31.
0 - 100
Job JOB-7629 finished with state: COMPLETED

Delphix

Clone this wiki locally