10-09-2018 04:46 AM
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)?
10-09-2018 05:05 AM
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
10-09-2018 10:57 PM
Thank you. I'll give this a try.