Loading...

UpdateBarcodeRange

Scope

Intended Audience
All X
CommVault Internal  
CE/System Test  
Development  

Platform

  • CommServer (Database: CommServ)

Release

  • 11.0.0

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 suffix , Change prefix , 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.


    Usage:


    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 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 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 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 @existingSuffix= 'Exsiting 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 @oldSuffix = 'Old suffix' -si @newSuffix = 'New suffix' -si @existingPrefix = 'Exsiting prefix'
     
  • 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:


  • If you specify a barcode range it is mandatory to specify at least prefix or suffix. If a range is specified, prefix and suffix of the the startBarcode and endBarcode must be same.
     
  • It is mandatory to provide a library name or the keyword all_libraries.
     
  • Version


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