Architecting, installing and maintaining your SAS environment

Is there a method to restart object spawners on all GRID nodes via command from master node?

Reply
Contributor
Posts: 39

Is there a method to restart object spawners on all GRID nodes via command from master node?

Hi All,

We have a GRID environment with 7 compute nodes.  It's tedious to remote into each node and restart the object spawner service.  Is there a command to use from the master node or an option SAS Management Console that will restart that service on all nodes?

Thanks,

Dan

Occasional Learner
Posts: 1

Re: Is there a method to restart object spawners on all GRID nodes via command from master node?

Hi ,

You can write a script to start/stop SAS services , remotely , see SC ( Service Control Manager ) for Windows environment.

Dorel.

Contributor
Posts: 27

Re: Is there a method to restart object spawners on all GRID nodes via command from master node?

You need a script something like this

#! /bin/ksh

action=status # Or pass as $1 parameter

remotepath=/opt/sas/ServerConfig/Lev1/SASApp  # For example

for node in node1 node2 node3 node4 node5 node6 node7 ; do

$ ssh sasaccount@hostname "$remotepath/ObjectSpawner.sh $action"

done

You will need to create an ssh key pair and put the ssh public key in $HOME/.ssh on each node first then test ssh to each node from sasaccount@masternode

Ask a Question
Discussion stats
  • 2 replies
  • 440 views
  • 1 like
  • 3 in conversation