cancel
Showing results for 
Search instead for 
Did you mean: 

I can´t add paths by CLI on new policies because of Hispanic Characters

Maximiliano_Rad
Level 3

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

15 REPLIES 15

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified
I don't have a solution for you... Found a post with newer NBU version and similar issue that was never solved : https://www.veritas.com/community/forums/backup-selection-and-non-english-chars

sdo
Moderator
Moderator
Partner    VIP    Certified

Try:

bpplinclude Policy-example -add "d:\ñandú"

sdo
Moderator
Moderator
Partner    VIP    Certified

That didn't work me.

Can I ask you to check something?  What do these show:

> chcp

> mode con

Thanks.

sdo
Moderator
Moderator
Partner    VIP    Certified

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.

Maximiliano_Rad
Level 3

I tried but it didn´t work. 

Thanks

Maximiliano_Rad
Level 3

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.

Maximiliano_Rad
Level 3

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

sdo
Moderator
Moderator
Partner    VIP    Certified

I tried testing various methods of using different code pages.  No luck.  Sorry.   :(

nbutech
Level 6
Accredited Certified

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

sdo
Moderator
Moderator
Partner    VIP    Certified

Does notepad have the option of saving text in UTF-8 format?

nbutech
Level 6
Accredited Certified

Check this

 

NetBackup Locale Implementation

sdo
Moderator
Moderator
Partner    VIP    Certified

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

 

Maximiliano_Rad
Level 3

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.

Maximiliano_Rad
Level 3

I´m not sure.

However, regardless I add the path with a batch, or typing the command on CLI, I obtain the same result.

sdo
Moderator
Moderator
Partner    VIP    Certified

You and I both can only hope that someone else will come forward with a solution.