cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Agent and Sysprep

Randy_Hollaway
Level 3

Looking for a way to install the Windows Agent to a machine that will be imaged so that NetBU will pick up the new host name of the machine after it's been renamed.

When we deploy from image, the source machine's host name is retained in NetBU and we have to manually correct it.

 

tia

1 ACCEPTED SOLUTION

Accepted Solutions

SymTerry
Level 6
Employee Accredited

Hello,

Your best option is when your deploying your image, don't have the NetBackup client installed on it. Use the Master Server to push a NetBackup client to a server you want to backup. Else, you could try to script something like Mark mentioned

View solution in original post

4 REPLIES 4

Mark_Solutions
Level 6
Partner Accredited Certified

That is not an easy one ...

What I have seen is people use the Run key in the registry for things like that.

So in HKLM\Software\Microsoft\Windows\CurrentVersion\Run\ you add a new String Value that points to a batch file that is included in the image.

This batch file then runs registry edits to set the appropriate keys using the computer name variable- something like:

reg add "HKLM\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config" /v Browser /t REG_SZ /d %COMPUTERNAME% /f

reg add "HKLM\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config" /v Client_Name /t REG_SZ /d %COMPUTERNAME% /f

This runs every time the computer boots - to be sure you could also add a bpdown and bpup command after wards in the batch file

Hope this helps

Nicolai
Moderator
Moderator
Partner    VIP   

That will be a registry setting change.

Netbackup client name is stored in :

HKEY_LOCAL_MACHINE\SOFTWARE\Veritas\NetBackup\CurrentVersion\Config 

Pls note both the client name and browse name must be changed and the Netbackup service re-started.

SymTerry
Level 6
Employee Accredited

Hello,

Your best option is when your deploying your image, don't have the NetBackup client installed on it. Use the Master Server to push a NetBackup client to a server you want to backup. Else, you could try to script something like Mark mentioned

Randy_Hollaway
Level 3

SymTerry - agreed. thanks again.