02-19-2016 10:04 AM
Hi everybody,
I´m creating a bunch of policies with a large number of Paths to include in each policy.
So I´m doing it via CLI with help from a batch. But I found that folders with Hispanic Characters are not being added correctly.
For example
If I type
bppolicynew Policy-example
and then
bpplinclude Policy-example -add d:\ñandú
this is what I see on GUI in backup selection list
d:\±and·
Does anybody know how can I fix this on CLI?
Thanks.
Maximiliano Radakoff
02-19-2016 10:19 AM
02-19-2016 10:57 AM
Try:
bpplinclude Policy-example -add "d:\ñandú"
02-19-2016 11:50 AM
That didn't work me.
Can I ask you to check something? What do these show:
> chcp > mode con
Thanks.
02-19-2016 12:02 PM
It might look odd, but have you tried to backup using what it looks like? Does the backup work? If so, then all it is is a visual GUI issue.
02-19-2016 12:50 PM
I tried but it didn´t work.
Thanks
02-19-2016 12:51 PM
Hi
D:\Program Files\Veritas\NetBackup\bin\admincmd>chcp
Active code page: 437
D:\Program Files\Veritas\NetBackup\bin\admincmd>mode con
Status for device CON:
----------------------
Lines: 300
Columns: 80
Keyboard rate: 31
Keyboard delay: 1
Code page: 437
D:\Program Files\Veritas\NetBackup\bin\admincmd>
Thanks
Max.
02-19-2016 12:55 PM
Hi sdo.
It didn´t work.
I also obtain a different path name with bppllist.
D:\Program Files\Veritas\NetBackup\bin\admincmd>bppllist Policy-example -U
------------------------------------------------------------
Policy Name: Policy-example
Policy Type: MS-Windows
Active: yes
(...)
Clients: (none defined)
Include: d:\┬▒and┬╖
Schedule: (none defined)
And the same path that I see on GUI...
D:\Program Files\Veritas\NetBackup\bin\admincmd>bppllist Policy-example -L
Policy Name: Policy-example
Options: 0x0
template: FALSE
audit_reason: ?
Names: (none)
Policy Type: MS-Windows (13)
(...)
Clients: (none defined)
Include: d:\±and·
Schedule: (none defined)
D:\Program Files\Veritas\NetBackup\bin\admincmd>
Thanks.
Max
02-19-2016 12:57 PM
I tried testing various methods of using different code pages. No luck. Sorry. :(
02-19-2016 02:40 PM
I remember seeing similar issue with other languages... I do not remember upfront how I got that resolved...
However were you able to browse through GUI and add this path successfully ...
Also are you using notepad to create this batch file and allowed non Ascii characters
This is something related to localization issue ....
02-19-2016 04:27 PM
Does notepad have the option of saving text in UTF-8 format?
02-19-2016 06:08 PM
02-20-2016 12:30 AM
Are you suggesting that the OP edit the LC.CONF file?
My understanding was that this file is a static file which informs/instructs NetBackup how to intrepret the system locale codes on servers, i.e. if NetBackup sees that locale "x" is set on a server, then NetBackup can be told to interpret this locale "x" as being functionally equivalent to locale "y" through the use of this file. This file is not used to translate/transform "text" from one locale to another. The TN even says this:
"This implementation is not used for converting the path information of backup/restore target data objects between NetBackup master server and client with different encodings each other. In other words, NetBackup doesn't use this implementation to recognize a folder name or a file name stored in the NetBackup catalog database."
02-22-2016 04:49 AM
HI.
I am able to browse through GUI and add the path successfully.
And yes I am using Notepad++ to create this batch, but I guess I am not using Ascii Characters.
02-22-2016 04:52 AM
I´m not sure.
However, regardless I add the path with a batch, or typing the command on CLI, I obtain the same result.
02-22-2016 05:18 AM
You and I both can only hope that someone else will come forward with a solution.