Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remotely starting savegrp.exe on NetWorker server from HPUX clients

Status
Not open for further replies.

SNunziata

MIS
Jan 10, 2002
7
US
Current setup:
NetWorker Server - W2K, SP2, NetWorker 6.1.1
Services for UNIX installed.

We need to remotely kickoff savegrps form certain Networker HPUX clients. After the nightly batch process are completed (which vary nightly) a backup needs to be started on the Networker server from the HPUX client. We are trying to use rlogin, rexec to run savegrp local to the NetWorker server. Receiving error messages "connection refused", "authentication errors." The rhosts file is good to go. Once we login using rlogin we can run other commands such as "dir." Just can not run savegrp.

One more note: We can successfully run a savegrp when we telnet into the NetWorker server, but not using rlogin.

If there are better ways of accomplishing this we are totally open to suggestions.
 
You don't need to rlogin, rexec, or anything like that.
Create a group with all the necessary clients and start that group via nsradmin.

here I insert a code snippet from a script:
#!/bin/ksh

$NSRADMIN -s $SERVER -i - <<EOF | grep name | grep $1 | $AWK '{
print &quot;. name: &quot; $2 &quot; type: NSR group&quot;
print &quot;update autostart: start now&quot;
print &quot;yes&quot; }' | $NSRADMIN -s $SERVER
. type: NSR group
show name
print
EOF

$AWK should be the awk binary with full path
$SERVER the DNS name of the networker server
$NSRADMIN the nsradmin binary with full path
$1 is the name of the group - given as a command line argument.

For stopping a group just change one line
from
print &quot;update autostart: start now&quot;
to
print &quot;update stop now: true&quot;

I've got a script with which it is possible to start / stop / restart groups and show info about it.
The user running that script has to be on the admin list of networker.

Hope it helps a little further

Johanes
 
Johanes,

We ran a test and it worked like a charm. Thanks a million. All we have to do is massage it a little to kick off when their daily batches finish for IMIS.

Scott

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top