UpdateBarcodeRange

Description

Script to update the barcodes in a specified range (change prefixes and/or suffixes or both), or to update only a single barcode.

Parameters:

  • opType : Type of operation we need to perform using the script [Change barcode, Change prefix, Change suffix, Change prefix by barcode range, Change suffix by barcode range, Change barcode by range].
  • libraryName : Name of the library on which script needs to run, if we give the library name as 'all_libraries' then the script would change the entries in all the libraries.
  • oldPrefix : The current prefix on the barcode which needs to be changed.
  • newPrefix : The new prefix which should replace the old prefix.
  • oldSuffix : The current suffix on the barcode which needs to be changed.
  • oldSuffix : The new suffix which should replace the old suffix.
  • barcodeStart : Starting range of the barcode.
  • barcodeEnd : Ending range of the barcode.
  • existingSuffix : Current suffix which is present in the barcode.
  • existingPrefix : Current prefix which is present in the barcode.
  • Usage

    Script to update the barcodes in a specified range (change prefixes and/or suffixes or both), or to update only a single barcode.

    To update only a single barcode

    qoperation execscript -sn QS_UpdateBarcodeRange -si @opType = 'Change Barcode' -si @libraryName='Name of the library' -si @oldbarcode = 'Old barcode' -si @newbarcode = 'New barcode'

    To add prefix

    qoperation execscript -sn QS_UpdateBarcodeRange -si @opType = 'Add Prefix' -si @libraryName= 'Name of the library' -si @newPrefix = 'New prefix'

    To update barcode by changing prefix of all tapes with a given prefix

    qoperation execscript -sn QS_UpdateBarcodeRange -si @opType = 'Change Prefix' -si @libraryName= 'Name of the library' -si @oldPrefix = 'Old prefix' -si @newPrefix = 'New prefix'

    To add suffix

    qoperation execscript -sn QS_UpdateBarcodeRange -si @opType = 'Add Suffix' -si @libraryName='Name of the library' -si @newSuffix = 'New Suffix'

    To update barcode by changing suffix of all tapes with a given suffix

    qoperation execscript -sn QS_UpdateBarcodeRange -si @opType = 'Change Suffix' -si @libraryName='Name of the library' -si @oldSuffix = '<Old suffix>' -si @newSuffix = 'New Suffix'

    To update a specified range of barcodes by changing prefix

    qoperation execscript -sn QS_UpdateBarcodeRange -si @opType = 'Change prefix by barcode range' -si @libraryName='Name of the library' -si @barcodeStart = 'Starting range of the barcode' -si @barcodeEnd = 'Ending range of the barcode' -si @oldPrefix = 'Old prefix' -si @newPrefix = 'New Prefix' -si @existingSuffix= 'Existing suffix'

    To update a specified range of barcodes by changing suffix

    qoperation execscript -sn QS_UpdateBarcodeRange -si @opType = 'Change suffix by barcode range' -si @libraryName='Name of the library' -si @barcodeStart = 'Starting range of the barcode' -si @barcodeEnd = 'Ending range of the barcode' -si @oldSuffix = 'Old suffix' -si @newSuffix = 'New suffix' -si @existingPrefix = 'Existing prefix'

    To update a specified range of barcodes by changing prefix and/or suffix

    qoperation execscript -sn QS_UpdateBarcodeRange -si @opType = 'Change barcode by range' -si @libraryName='Name of the library' -si @barcodeStart = 'Starting range of the barcode' -si @barcodeEnd = 'Ending range of the barcode' -si @oldPrefix = 'Old prefix' -si @newPrefix = 'New Prefix' -si @oldSuffix = 'Old suffix' -si @newSuffix = 'New suffix'

    Note:

    It is mandatory to provide a library name or the keyword all_libraries.

    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...