Labels

hpunix (63) marathi kavita (52) linux (21) solaris11 (10) AWS (5) numerology (5)

Wednesday, July 16, 2014

Data Protector commands

Data Protector commands
S.No.
Commands
Meaning




omnicellinfo
omnicellinfo - displays configuration information about the Data Protector cell
1
omnicellinfo -cell
to list the client information & components installed on each client
2
omnicellinfo -version
To print the version of data Protector
3
omnicellinfo -dev -detail
list the device details
4
omnicellinfo -object schedule
to list the next schedule of backup
5
omnisv -status
to list the status of daemons of data protector
6
omnimm -list_pool
to list the media pools and their health.
7
omnimm -list_pool
to see the medias available in a particular media pool
8
omnisv -stop
to stop the dataprotector daemons
9
omnisv -start
to start the dataprotector daemons
10
omnicellinfo -dlinfo
to list the backup specifications available
11
omnicellinfo -mm
Displays information about the media and media pools in the cell. The report shows for each pool: the Pool Name, Media Class, Media Usage Policy, Media Allocation Policy, and Amount of Free Space in the pool.

Pool name                Media Type         Policy         # of media    Free
===============================================================================
Archivelogs                LTO-Ultrium        App+Loose       14        4797651
Daily_backups           LTO-Ultrium        App+Loose        60       4863912
Final_archives_2006   LTO-Ultrium        App+Loose         4           0
Free_LTO-Ultrium       LTO-Ultrium        Loose                32      10511056
Weekly_backups       LTO-Ultrium        App+Loose         25      3953213
rteapod_dlt8000         DLT                   App+Loose         14       286720



12
omnicellinfo -dev
Displays information about the backup devices in the cell. The report shows for each device: the Device Name, Client Name, Device Type and Media Pool.
Device name       Host             Device type             Pool
==============================================================================
rteapod_dlt8000   rteapod          Standalone              rteapod_dlt8000
rteapoy_dlt8000   rteapoy          Standalone              rteapoy_dlt8000
rtebwd_ultrium2   rtebwd           Standalone              rtebwd_ultrium2
robot                   rtebwp           SCSI-II Library
rtebwp_drive_1    rtebwp           LTO-Ultriu (in library)  Daily_backups
rtebwp_drive_2    rtebwp           LTO-Ultriu (in library)  Daily_backups
rtebwt_ultrium2   rtebwt           Standalone                rtebwt_ultrium2

13
omnicellinfo -dev -detail
to see a more detailed output



14
omnimm -list_pool
to list the medias available in a given pool

rter3p:/> omnimm -list_pool Archivelogs

Status  Medium Label                Location                 Full   Protected
===============================================================================
Good    [DC5274L1] DC5274                                    No     07/25/07 08:44:38
Good    [DC5243L1] DC5243                                    No     07/24/07 08:41:28
Good    [DC5240L1] DC5240                                    No     07/23/07 08:42:10
Good    [DC5229L1] DC5229                                    No     07/20/07 08:42:21
Good    [DC5213L1] DC5213                                    No     07/19/07 08:49:16
Good    [DC5198L1] DC5198                                    No     07/18/07 23:49:44
Good    [DC5266L1] DC5266                                    No     07/18/07 08:48:05













15
omnimm -list_pool
to list the configured pools
test:/> omnimm -list_pool

Status  Pool name                 Media Type   MS     # of media   Free [MB]
===============================================================================
Good    Archivelogs               LTO-Ultrium  No          13           4489888
Good    Daily_backups          LTO-Ultrium  No          58           4543472
Good    Final_archives_2006  LTO-Ultrium  No           4               0
Poor     Free_LTO-Ultrium      LTO-Ultrium  No          37          11754975
Good    Weekly_backups      LTO-Ultrium  No          25          3953213
16
omnidb -session -media
To list the medias used by a particular session
test:/> omnidb -session 2007/07/12-11 -media
Medium Label                   Medium ID                                       Free Blocks
===============================================================================
[DC5193L1] DC5193         ac1c1020:436b71bb:0e9a:0001             20942464
How to format a media

a.)
First recycle the media if it is under protection
omnimm -recycle ( Medium )
b.)
Export the media
omnimm -export ( Medium )
c.)
Format the media
omniminit -init -force "use this for formatting DLT medias"
Format the media
omniminit -init -force -slot "use this for formatting ultrium tapes"
rter3p:/tmp/test2> omniminit -init rtebwp_drive_1 DC5257L1 -force -slot 35
[Normal] From: MMA@rtebwp "rtebwp_drive_1"  Time: 07/19/07 11:20:28
        STARTING Media Agent "rtebwp_drive_1"

[Normal] From: MMA@rtebwp "rtebwp_drive_1"  Time: 07/19/07 11:20:36
        Loading medium from slot 35 to device /dev/rmt/2m

[Normal] From: MSM@rter3p "rtebwp_drive_1"  Time: 07/19/07 11:21:19
        Data Protector medium "[DC5257L1] DC5257" found.
        Initialization allowed.

[Normal] From: MMA@rtebwp "rtebwp_drive_1"  Time: 07/19/07 11:21:19
        /dev/rmt/2m
        Initializing new medium: "[DC5257L1] DC5257L1"

[Normal] From: MSM@rter3p "rtebwp_drive_1"  Time: 07/19/07 11:21:27
        New medium added to pool: Daily_backups
            MediumID: ac1c1020:469f3b1f:2854:0001
            Label:    [DC5257L1] DC5257L1
            Location:

[Normal] From: MMA@rtebwp "rtebwp_drive_1"  Time: 07/19/07 11:21:47
        Unloading medium to slot 35 from device /dev/rmt/2m

[Normal] From: MMA@rtebwp "rtebwp_drive_1"  Time: 07/19/07 11:22:05
        COMPLETED Media Agent "rtebwp_drive_1"
d.)
Note* be sure that you format the ultrium tape throgh ultrium drive and dlt tapes throught DLT drive
e.)
Note* After formatting is done media will be moved to the pool to which drive is assigned.  You can see this is my omnicellinfo -dev
f.)
omnimm -move_medium
to move the media to a specific pool
omnimm -media_info < media ID> -detail
 to see the pool name to which the media belongs to
test:/> omnimm -media_info DC5231L1

Medium Label        Medium ID                           Pool          Library
===============================================================================
[DC5231L1] DC5231   ac1c1020:44898289:73e5:0001         Free_LTO-Ultrium robot
Restoration
omnir -session
To restore a particular session
omnir -sap : -session -overwrite -tree <> into
  to restore SAP filesystem
what to do when a mount request comes
1
omnidb -session -report
see the session report to find out for which medium the mount request is coming.  Verify that the tape is inside the library "if it is an ultrum medium this can be verified by omniscan command".   Call andover opps if medium is not available
2
omnimnt -device<> -session
satisfy the mount request ..device can be seen from session report by issuing the above command
3
omnimnt -device<> -session -cancel
To cancel the device request
What to do when completed with error ticket comes
omnidb -session
Check all the object status.  If all the objects have completed successfully close the ticket. Else monitor the next session.
How to change the drive path using omnidownload & omniupload
omnidownload -device -file
first download the attibutes of drive in an asc11 file
rter3p:/tmp/test2> omnidownload -device rtesand_dlt8000 -file file.txt
rter3p:/tmp/test2> l
file.txt
rter3p:/tmp/test2> cat file.txt
NAME "rtesand_dlt8000"
DESCRIPTION "DLT8000 drive on rtesand"
HOST rtesand
POLICY Standalone
TYPE DLT
POOL "rtesand_dlt8000"
DRIVES
        "/dev/rmt/1m"
modify the attibutes that you wish to change
omniupload modify_device -file
modify the changes done as above using this command
To abort a backup session
omniabort -session

To restart the backup










omnib -restart {session id }


1 comment:

  1. Hi Please help to find command to change the media health from poor to good

    ReplyDelete