Home | History | Annotate | Download | only in rusers

Lines Matching refs:RHOST

26 #  SETUP: The home directory of root on the machine exported as "RHOST"
36 # rusers RHOST
38 # rusers -a RHOST
40 # rusers -l RHOST
55 RHOST=${RHOST:=`hostname`}
75 echo "Checking for rusersd on $RHOST"
77 rpcinfo -u $RHOST rusersd > /dev/null 2>&1
79 echo "Attempting to start rusersd on $RHOST"
80 rsh -n -l root $RHOST "/usr/sbin/rpc.rusersd &"
81 [ $? -eq 0 ] || end_testcase "rusersd is inactive on $RHOST"
82 PID=`rsh -n $RHOST ps -ewf | grep rusersd | awk '{print $2 }'`
83 echo "ruserd started on $RHOST"
86 #RHOST=`echo $RHOST | cut -d. -f1` //The use is depriciated as it fails when RHOST is set to an IP address
99 rusers $RHOST > /dev/null
100 [ $? -eq 0 ] || end_testcase "rusers $RHOST - failed"
102 rusers -a $RHOST > /dev/null
103 [ $? -eq 0 ] || end_testcase "rusers -a $RHOST - failed"
108 rusers -l $RHOST > /dev/null
109 [ $? -eq 0 ] || end_testcase "rusers -l $RHOST - failed"
135 rsh -n $RHOST kill -9 $PID
136 echo "rusersd daemon stopped on $RHOST"