cancel
Showing results for 
Search instead for 
Did you mean: 

NetBackup BMR bmrprep

ryunosuke
Level 2

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)

3 REPLIES 3

Michal_Mikulik1
Moderator
Moderator
Partner    VIP    Accredited Certified

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

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

Michal_Mikulik1
Moderator
Moderator
Partner    VIP    Accredited Certified

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