--- SS SAS RC Scripts ---
The stop|start|status scheme we use is not converntional. Trying to use the supplied RC scripts was problematic.
In /opt/docs/..
-rw-r--r-- 1 root root 1678 Jul 2 2019 00.StartSAS
-rwx------ 1 root root 440 Apr 17 2019 CheckMounts.bash
-rw-r--r-- 1 root root 2723 Nov 11 2019 MountiSCSI.txt
-rw-r--r-- 1 root root 141 Jul 17 2017 PingAll.sh
-rwx------ 1 root root 355 May 18 2018 Remove-LasrServer-sasva.sh
lrwxrwxrwx 1 root root 41 Jul 2 2019 sas.servers -> /opt/sasinside/sasconfig/Lev1/sas.servers
lrwxrwxrwx 1 root root 45 Jul 2 2019 sas.servers.mid -> /opt/sasinside/sasconfig/Lev1/sas.servers.mid
lrwxrwxrwx 1 root root 45 Jul 2 2019 sas.servers.pre -> /opt/sasinside/sasconfig/Lev1/sas.servers.pre
-rwx------ 1 root root 65 Aug 10 2017 SIMSH-hosts.sh
-rw-r--r-- 1 root root 1709 Jan 20 2020 StartSas
-rw-r--r-- 1 root root 228 Oct 31 2019 Start-StopLASR-Serve
-rw-r--r-- 1 root root 456 Jul 11 2017 StatusSAS
-rw-r--r-- 1 root root 230 Jul 2 2019 StopLASR-Server
-rw-r--r-- 1 root root 928 Feb 26 2020 StopSAS
-rw-r--r-- 1 root root 94 Aug 13 2018 WhatOrder
StartSAS
#!/usr/bin/bash
clear
printf "
========================================================
"
df -hT /opt /sastmp /BinghamtonUniversity /BKUP-CANNED
printf "
========================================================
"
printf "If /opt /sastmp /BinghamtonUniversity are not mounted,
look at /etc/fstab or /opt/docs/MountiSCSI.txt to mount them
mount -v /dev/mapper/cdb /opt
mount -v /dev/mapper/cde1 /sastmp
mount -v /dev/mapper/cdd /BinghamtonUniversity
mount -v /dev/mapper/cdf /BKUP-CANNED
...
"
printf "Hit Ctrl-C
IF they are mounted hit Enter to start CLI for SAS :"
read anything
date
### 1. Start SAS Servers -- This can takes a rather long time
echo "su - sas -c \"/opt/sasinside/sasconfig/Lev1/sas.servers start\""
su - sas -c "/opt/sasinside/sasconfig/Lev1/sas.servers start"
### 2. Start LASR Monitor
echo "su - sas -c \"/opt/sasinside/sasconfig/Lev1/Applications/SASVisualAnalytics/HighPerformanceConfiguration/LASRMonitor.sh start\""
su - sas -c "/opt/sasinside/sasconfig/Lev1/Applications/SASVisualAnalytics/HighPerformanceConfiguration/LASRMonitor.sh start"
### 3. Start Deployment Agent
echo "su - sas -c \"/opt/sasinside/sashome/SASDeploymentAgent/9.4/agent.sh start\"
su - sas -c \"/opt/sasinside/sashome/SASDeploymentAgent/9.4/agentadmin.sh stat up\""
su - sas -c "/opt/sasinside/sashome/SASDeploymentAgent/9.4/agent.sh start"
su - sas -c "/opt/sasinside/sashome/SASDeploymentAgent/9.4/agentadmin.sh stat up"
### 4. Check till all processes are running
clear; ps -ef | grep sas | grep -v grep
echo "clear; ps -ef | grep sas | grep -v grep"
echo "REPEAT TILL ALL SAS PROCESSES APPEAR..."
date
### 5. Remind about hq-agent.sh
echo "Once all services are started here ...
Run /etc/init.d/Start-hq-agent.sh on each node.
"
StopLASR-Server
https://busas.binghamton.edu:8343/SASVisualAnalyticsHub/
https://busas.binghamton.edu:8343/SASVisualAnalyticsAdministrator
sas s@su3/2
Administor ORANGE
LASR Servers
Server and click [ ] which is the common icon for STOP
StatusSAS
date
### 1. Status LASR Monitor
echo "su - sas -c \"/opt/sasinside/sasconfig/Lev1/Applications/SASVisualAnalytics/HighPerformanceConfiguration/LASRMonitor.sh status\""
su - sas -c "/opt/sasinside/sasconfig/Lev1/Applications/SASVisualAnalytics/HighPerformanceConfiguration/LASRMonitor.sh status"
### 2. Status SAS Servers
echo "su - sas -c \"/opt/sasinside/sasconfig/Lev1/sas.servers status\""
su - sas -c "/opt/sasinside/sasconfig/Lev1/sas.servers status"
+ cat StopLASR-Server
https://busas.binghamton.edu:8343/SASVisualAnalyticsHub/
https://busas.binghamton.edu:8343/SASVisualAnalyticsAdministrator
sas s@su3/2
Administor ORANGE
LASR Servers
Server and click [ ] which is the common icon for STOP
StopSAS
date
### 1. Shutdown Deployment Agent
echo "su - sas -c \"/opt/sasinside/sashome/SASDeploymentAgent/9.4/agent.sh stop\""
su - sas -c "/opt/sasinside/sashome/SASDeploymentAgent/9.4/agent.sh stop"
### 2. Shutdown LASR Monitor
echo "su - sas -c \"/opt/sasinside/sasconfig/Lev1/Applications/SASVisualAnalytics/HighPerformanceConfiguration/LASRMonitor.sh stop\""
su - sas -c "/opt/sasinside/sasconfig/Lev1/Applications/SASVisualAnalytics/HighPerformanceConfiguration/LASRMonitor.sh stop"
### 3. Shutdown SAS Servers
echo "su - sas -c \"/opt/sasinside/sasconfig/Lev1/sas.servers stop\""
su - sas -c "/opt/sasinside/sasconfig/Lev1/sas.servers stop"
### 4. Check till all processes are stopped
clear; ps -ef | grep sas | grep -v grep
echo "clear;ps -ef | grep sas | grep -v grep"
echo "REPEAT TILL NO SAS PROCESSES APPEAR..."
echo "
THEN run the following and reboot...
umount /opt
umount /sastmp
umount /BinghamtonUniversity"
date