Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Commits
687f17b4
Commit
687f17b4
authored
8 years ago
by
sveseli
Browse files
Options
Downloads
Patches
Plain Diff
modify monitor script for sectors 11b and 11c
parent
84a35013
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sbin/dm_remote_control.sh
+5
-3
5 additions, 3 deletions
sbin/dm_remote_control.sh
with
5 additions
and
3 deletions
sbin/dm_remote_control.sh
+
5
−
3
View file @
687f17b4
...
@@ -5,14 +5,16 @@ ACTION=${ACTION:=status}
...
@@ -5,14 +5,16 @@ ACTION=${ACTION:=status}
echo
$0
:
ACTION
=
$ACTION
echo
$0
:
ACTION
=
$ACTION
echo
echo
STATION_LIST
=
"CentralStorage:apsgpfs08:ds 1ID:pinotnoir:daq 6IDD:s6iddm:daq 6BM:s6bmdm:daq 7ID:gremlin:daq 8IDI:amethyst:daq 33ID:sis:daq 34IDE:hpcs34:daq"
# Format is DISPLAY_NAME:MACHINE:HOME_DIRECTORY:SERVICE_TYPE
STATION_LIST
=
"CentralStorage:apsgpfs08:dm:ds 1ID:pinotnoir:dm:daq 6IDD:s6iddm:dm:daq 6BM:s6bmdm:dm:daq 7ID:gremlin:dm:daq 8IDI:amethyst:dm:daq 11IDB:s11idbdm:dm_idb:daq 11IDC:s11idcdm:dm_idc:daq 33ID:sis:dm:daq 34IDE:hpcs34:dm:daq"
for
s
in
$STATION_LIST
;
do
for
s
in
$STATION_LIST
;
do
stationName
=
`
echo
$s
|
cut
-f1
-d
':'
`
stationName
=
`
echo
$s
|
cut
-f1
-d
':'
`
nodeName
=
`
echo
$s
|
cut
-f2
-d
':'
`
nodeName
=
`
echo
$s
|
cut
-f2
-d
':'
`
scriptName
=
`
echo
$s
|
cut
-f3
-d
':'
`
homeDir
=
`
echo
$s
|
cut
-f3
-d
':'
`
scriptName
=
`
echo
$s
|
cut
-f4
-d
':'
`
echo
"**********************************"
echo
"**********************************"
echo
"Station:
$stationName
(
$nodeName
)"
echo
"Station:
$stationName
(
$nodeName
)"
ssh dmadmin@
$nodeName
"/home/
dm
/production/etc/init.d/dm-
${
scriptName
}
-services
$ACTION
"
ssh dmadmin@
$nodeName
"/home/
${
homeDir
}
/production/etc/init.d/dm-
${
scriptName
}
-services
$ACTION
"
echo
echo
done
done
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment