Linux Tricks and Techniques

For Linux Experts

Use the website for easy leaning of Linux

Friday, 17 June 2016

Command Line Interface for Data Protector

 Command Line Interface for Data Protector



To start DP at the commandline
omnisv -start

Another command to see if the DP services/daemons are running
omnisv -status

To list what DP sessions are currently running
omnistat

If omnistat returns "No currently running sessions" you
can stop DP with
omnisv -stop
but close GUIs first.


To list all the sessions in DP's internal DB
omnidb -session

To list just the sessions run in the last 2 days
omnidb -sess -last 2

To get a session report of a particular session
omnidb -session [SessionID] -report
eg. omnidb -session 2000/03/17-1 -report

To get the session messages of a backup session that is in progress
omnistat -sess [SessID] -monitor
but it does not work for copy sessions.

To get information about a running session
omnistat -sess [SessionID]
eg. omnistat -sess 2000/03/17-1

To get the session messages of a running session
omnistat -sess [SessionID] -monitor
eg. omnistat -sess 2000/03/17-1 -monitor

To remove a session from DP's internal DB
omnidb -purge -sess [SessionID]
eg. omnidb -purge -sess 2005/01/12-1

To list what backups are scheduled to run...
omnicellinfo -schinfo

To start a filesystem backup
omnib -datalist [Datalist]

To start a filesystem backup in incremental 1 mode
omnib -datalist [Datalist] -mode incremental1

To start a DP SAP R/3 integration backup
omnib -sap_list [BarListName]
eg. omnib -sap_list TEST_gerrr3tst

To start a Single Mailbox Backup
omnib -mbx_list [BarListName]

To start a MS SQL backup in full mode
omnib -mssql_list [backup spec] -barmode full

To restart a failed session
omnib -restart [sessionID]
eg. omnib -restart 2001/08/04-3

To abort a session
omnistat tells you the SessionID
omniabort -session [SessionID]

Starting a forced filenames purge
omnidbutil -purge -filenames -force

Stopping a filenames purge
omnidbutil -purge_stop

To purge a particular session
omnidb -session [SessionID] -purge

To purge session messages from a particular session
omnidb -session [SessionID] -remove_msgs

To list the backups for a particular datalist (doesn't work for Barlists)
omnidb -sess -datalist [BackupSpecName]

for the last 10 days
omnidb -sess -last 10 -datalist [BackupSpecName]

Example of listing backups done of an Oracle Datalist...
omnidb -sess -datalist "Oracle8 KS_ZDB_DAILY_ONLINE2" -last 10

To clear sessions listed as running but not showing in omnistat
omnidbutil -clear

If you want to run the check in debug mode
omnidbcheck -extended -debug 1-400 DBG

To import a client
omnicc -import_host [hostname]

Example showing how to list details of a Single Mailbox backup
eg. omnidb -mbx "hpwinn71:/Single Mailbox/Greg Royle/0" -sess 2004/07/01-3

To look at the details of what has been backed up (Integrations).
omnidb -sybase
omnidb -sybase "rtcbcb:OMNI:toplarna<1:0> [DATABASE]"
omnidb -sybase "rtcbcb:OMNI:toplarna<1:0> [DATABASE]" -ses 2004/12/09-12
omnidb -sybase "rtcbcb:OMNI:toplarna<1:0> [DATABASE]" -ses 2004/12/09-12 -catalog

To stop scheduled backups from starting
omnitrig -stop

To start scheduled backups
omnitrig -start

Thanks

No comments:
Write comments