cancel
Showing results for 
Search instead for 
Did you mean: 

redirecting password file using nbseccmd

mk128935
Level 5
Employee

Hi, I'm trying to run nbseccmd command (in Windows) that encrypts disaster recovery packages by redirecting the password file which is in text but the passphrase within the text file doesn't seem to get recognized properly. Strangely, this works in Linux.  

 

 "C:\Program Files\Veritas\NetBackup\bin\admincmd\nbseccmd" -drpkgpassphrase < C:\work\test\input.txt

          > Caution:

          > Only the following characters are supported for the passphrase:

          > White spaces, uppercase characters (A to Z), lowercase characters

          >  (a to z), numbers (0 to 9), and special characters that include:

          > ~ ! @ # $ % ^ & * ( ) _ + - = ` { } [ ] | : ; ' , . / " ? < >

          > Enter passphrase for encrypting DR Package :

 This is the content of the input.txt file:

------------------------------------

passphrase#123A

passphrase#123A

Any ideas as to why this doesn't work in Windows (but it works in Linux)?

2 REPLIES 2

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

Hi

I'm not sure but I don't think Windows understands this concept <

Maybe this one >, but not this one <

Try this

for /F %A IN (hello.txt) do "C:\Program Files\Veritas\NetBackup\bin\admincmd\nbseccmd" -drpkgpassphrase %A

Thank you. I'll give this a try.