cancel
Showing results for 
Search instead for 
Did you mean: 

Use bpstart to remotely execute commands?

kleetuss14
Level 3

I have a Solaris 10 based NetBackup 7.0.1 environment.

I have a need to use NDMP to backup some Enterprise Vault archive storage that is stored on a NetApp.

I want to put Enterprise Vault into backup mode using bpstart_notify scripts but cannot do it in the traditional way (bpstart script on client) since the "client" in my policy is the NetApp filer.

Could anyone provide some ideas on how to have a bpstart script on the Master with commands or embedded scripts that can remotely execute some Powershell commands on the EV server?

 

thx!

Joe

3 REPLIES 3

J_H_Is_gone
Level 6

Use the Parent Notify script instead ( only runs on the master)

It gets  input pararams.

# NOTE: this script will always be run in "background" mode, meaning that

# GenBackupJob (nbjm) will NOT wait for it's completion.

#

# This script:

# receives 5 parameters:

# CLIENT - the client hostname

# POLICY - the policy label

# SCHEDULE - the schedule label

# SCHEDULE_TYPE - the type of schedule: FULL INCR UBAK UARC

# STATUS - the backup status for this job

# STREAM - the backup stream number for this job always -1

# must be executable by the root user

# should exit with 0 upon successful completion 

 

Set you if testings statements to only have it run for this one job.

then in the if do what you need.

 

then if needed use the parent_end_notify to restart it.

kleetuss14
Level 3

Thanks for the reply J.H.

This looks similar to the bpstart/end scripts.

The part I'm stuck on is how to have commands in either the parentnotify or bp notify scripts actually execute on a different server.

Solaris Master (script) --> Windows 2008 running Enterprise Vault

I guess this isn't really a NetBackup question...but thought a forum of NetBackup guys could probably provide an answer...figuring I'm probably not the first guy to try to do this. :)

 

Joe

J_H_Is_gone
Level 6

As I am a unix geek and not a windows geek cannot help with that part, its got be some kind of command some where.

But once you find it you can use the Parent Notify laugh