ChangeMediaType

Description

Note - if the mediatype or library name has spaces, use double quotes!

1. List ALL compatible media types for that library

QOperation.exe execscript -sn changeMediaType -si ListMediaTypes -si <Libarary Name>

2. change mediatype of a specific media

QOperation.exe execscript -sn changeMediaType -si media -si <barcode> -si <MediaType>

3. Change mediatype of all available media in library

QOperation.exe execscript -sn changeMediaType -si inlibrary -si <Libarary Name> -si <MediaType>

4. Change mediatype of all available media in library whose barcode ends with suffix

QOperation.exe execscript -sn changeMediaType -si inlibrary -si <Libarary Name> -si <MediaType> -si restrictbysuffix -si <Suffix>

5. Change mediatype of all existing AND exported media of library

QOperation.exe execscript -sn changeMediaType -si inlibraryandexported -si <Libarary Name> -si <MediaType>

6. Change mediatype of all existing AND exported media of library whose barcode ends with suffix

QOperation.exe execscript -sn changeMediaType -si inlibraryandexported -si <Libarary Name> -si <MediaType> -si restrictbysuffix -si <Suffix>

Note:- In addition to "inlibraryandexported" an additional option "inlibraryandexportedgui" can be used.

"inlibraryandexported" selects the media in the library and media which were last exported from the library.

"inlibraryandexportedgui" selects the same as above but in addition also selects media that were at one point written to inside the specified library. The name GUI comes from the fact that the exported media it selects uses a similar logic as the exported media node in the GUI.

Usage

Note - if the mediatype or library name has spaces, use double quotes!

1. List ALL compatible media types for that library

QOperation.exe execscript -sn changeMediaType -si ListMediaTypes -si <Libarary Name>

2. change mediatype of a specific media

QOperation.exe execscript -sn changeMediaType -si media -si <barcode> -si <MediaType>

3. Change mediatype of all available media in library

QOperation.exe execscript -sn changeMediaType -si inlibrary -si <Library Name> -si <MediaType>

4. Change mediatype of all available media in library whose barcode ends with suffix

QOperation.exe execscript -sn changeMediaType -si inlibrary -si <Library Name> -si <MediaType> -si restrictbysuffix -si <Suffix>

5. Change mediatype of all available media in library whose barcode ends with prefix

QOperation.exe execscript -sn changeMediaType -si inlibrary -si <Library Name> -si <MediaType> -si restrictbyprefix -si <Prefix>

6. Change mediatype of all existing AND exported media of library

QOperation.exe execscript -sn changeMediaType -si inlibraryandexported -si <Library Name> -si <MediaType>

7. Change mediatype of all existing AND exported media of library whose barcode ends with suffix

QOperation.exe execscript -sn changeMediaType -si inlibraryandexported -si <Library Name> -si <MediaType> -si restrictbysuffix -si <Suffix>

Note:- In addition to "inlibraryandexported" an additional option "inlibraryandexportedgui" can be used.

"inlibraryandexported" selects the media in the library and media which were last exported from the library.

"inlibraryandexportedgui" selects the same as above but in addition also selects media that were at one point written to inside the specified library. The name GUI comes from the fact that the exported media it selects uses a similar logic as the exported media node in the GUI.

script_name : ChangeMediaType

Details

  • Scope: All
  • Platform: CommServe (Database: CommServ)
  • Release: 11.0.0

Disclaimer of Warranties

CommVault provides software tools and utilities on an "as is" basis, as a courtesy and convenience to its users, and they may be changed from time to time without notice. These tools and utilities are provided without express, implied, or statutory warranties of any kind. You assume full risk and responsibility for the selection, possession, performance and proper installation and use of the software tools and utilities, and for verifying the results obtained there from. Your use of CommVault software tools and utilities indicates your unconditional acceptance of the above disclaimer.

Loading...