02-22-2019 02:54 AM
I am currently stuck with the BMR restore script.
I want to execute bmrprep by using PowerShell invoke-command from another host which is not MasterServer.
However, executing the bpnbat command from a remote computer failed.
-----------------------
PS D:\script> Invoke-Command NBUMaster -ScriptBlock { D:\Program` Files\VERITAS\NetBackup\bin\bpnbat -login -info d:\work\authfile -loginType WEB }
Authentication successful but unable to store the user details on the current host.
+ CategoryInfo : NotSpecified: (Authentication ...e current host.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
+ PSComputerName : NBUMaster
-----------------------
Is there a way to use bmrprep from a remote computer?
Or is there a way to avoid authentication?
Environment
NBU8.1.1 (Windows)
02-22-2019 03:09 AM
Hello,
it is a very specific problem. Is bpnbat working outside PowerShell? And what about d:\work\authfile path, does it exist on the Master?
Some reference also here:
https://www.veritas.com/content/support/en_US/doc/44037985-127664609-0/v122275227-127664609
Rgds
Michal
02-24-2019 06:47 PM - edited 02-24-2019 09:05 PM
Thank you for replying.
Yes. "authfile.txt" is on the master.
Also, invoke-command from the master to the master itself has the same result.
Is there a way to succeed or avoid authentication?
-----
PS C:\Users\Administrator> Invoke-Command localhost -ScriptBlock { D:\Program` Files\VERITAS\NetBackup\bin\bpnbat -login -info d:\work\authfile.txt -loginType WEB }
Authentication successful but unable to store the user details on the current host.
+ CategoryInfo : NotSpecified: (Authentication ...e current host.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
+ PSComputerName : NBUMaster
PS C:\Users\Administrator>
-----
-----
PS C:\Users\Administrator> Invoke-Command localhost -ScriptBlock { cmd /c D:\"Program Files"\VERITAS\NetBackup\bin\bpnbat -login -info d:\work\authfile.txt -loginType WEB }
Authentication successful but unable to store the user details on the current host.
+ CategoryInfo : NotSpecified: (Authentication ...e current host.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
+ PSComputerName : localhost
PS C:\Users\Administrator>
-----
-----
PS C:\Users\Administrator> D:\Program` Files\VERITAS\NetBackup\bin\bpnbat -login -info d:\work\authfile.txt -loginType WEB
Operation completed successfully.
PS C:\Users\Administrator>
PS C:\Users\Administrator> D:\Program` Files\VERITAS\NetBackup\bin\bpnbat -whoami
------------------
Web login details:
------------------
Name: Administrator
Domain: NBUMaster
Issued by: nbumaster
Expiry Date: Feb 26 02:45:22 2019 GMT
Authentication method: Microsoft Windows
Operation completed successfully.
PS C:\Users\Administrator>
-----
02-26-2019 01:12 AM
Hello,
when commands outsite PS are OK, then you should consult this problem also on a PowerShell forum, not only on NetBackup forum.
I guess it is something with PS security settings..
Michal