[Veritas-bu] Barcode labels 8 char, NB reads 1st 6

Lue-Fook-Sang, Andre andre.lue-fook-sang at thomson.com
Thu Mar 3 16:57:59 CST 2005


Thanks for your responses thus far.

However, I made the entry MEDIA_ID_BARCODE_CHARS 0 8 1:2:3:4:5:6 in
/usr/openv/volmgr/vm.conf, stopped and restarted all NB, but the ID's are
still displaying like they were before "0001L2". I was expecting "000001" L2
dropped.

What did I miss?

Thanks
Andre

-----Original Message-----
From: veritas-bu-admin at mailman.eng.auburn.edu
[mailto:veritas-bu-admin at mailman.eng.auburn.edu] On Behalf Of J R
Sent: Thursday, March 03, 2005 3:24 PM
To: veritas-bu at mailman.eng.auburn.edu
Subject: Re: [Veritas-bu] Barcode labels 8 char, NB reads 1st 6


NetBackup only creates volume names with 6 characters.
It sees all 8 of them. What you need to do is create
media ID generation rules. With these you can specify
which set of 6 characters will be used to create the
volume name (media ID). From the technote
http://seer.support.veritas.com/docs/236271.htm:

Media ID generation rules can be added to the vm.conf
file to specify the robot number and barcode length
with multiple configuration entries for each robot or
for each barcode format. With NetBackup 4.5, media ID generation rules can
also be added to the vm.conf file via the "Inventory Robot" function of the
NetBackup administration console graphical user interface.

The media ID generation rule has the following syntax:

MEDIA_ID_BARCODE_CHARS <robot_number> <barcode_length>
<c1>:<c2>:<c3>:<c4>:<c5>:<c6>

where robot_number is the robot number, barcode_length
is the number of characters in the media's barcode
format, 
c1 is the first character of the Media ID
c2 is the second character of the Media ID 
c3 is the third character of the Media ID  
c4 is the fourth character of the Media ID
c5 is the fifth character of the Media ID
      c6 is the sixth character of the Media ID

c1-c6 can specify a character from the media barcode
or specify a fixed character by prefixing the
character with a "#".

For example, the rule:

MEDIA_ID_BARCODE_CHARS 0 8 #N:1:3:4:5:6

generates media IDs for robot 0 using the character N
and the 1st, 3rd, 4th-6th characters of the 8
character barcode, and for the barcode, 123456L1
generates media ID N13456.

The rule:

MEDIA_ID_BARCODE_CHARS 0 8 1:2:3:4:5:6

generates media IDs for robot 0 using the 1st-6th
characters of the 8 character barcode,  and for the
barcode 006498L2 generates media ID 006498.

Thanks,

Jeff Redington


"A wise man once said 'Wherever you go, there you are'"
      -Mike Brady _______________________________________________
Veritas-bu maillist  -  Veritas-bu at mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu



More information about the Veritas-bu mailing list