Forum Discussion

mk128935's avatar
mk128935
Level 5
7 years ago

redirecting password file using nbseccmd

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)?

  • 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