Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IGWN Computing and Software
GraceDB
GraceDB Server
Commits
9b11435a
Commit
9b11435a
authored
8 years ago
by
Tanner Prestegard
Browse files
Options
Downloads
Patches
Plain Diff
updates to admin docs for lvalert_send syntax
parent
2a1484b7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
admin_doc/source/new_pipeline.rst
+4
-7
4 additions, 7 deletions
admin_doc/source/new_pipeline.rst
with
4 additions
and
7 deletions
admin_doc/source/new_pipeline.rst
+
4
−
7
View file @
9b11435a
...
@@ -128,9 +128,6 @@ user as a publisher::
...
@@ -128,9 +128,6 @@ user as a publisher::
'burst_newpipeline_search2',
'burst_newpipeline_search2',
]
]
username = 'user.name'
password = 'passw0rd'
servers = [
servers = [
'lvalert.cgca.uwm.edu',
'lvalert.cgca.uwm.edu',
'lvalert-test.cgca.uwm.edu',
'lvalert-test.cgca.uwm.edu',
...
@@ -139,8 +136,7 @@ user as a publisher::
...
@@ -139,8 +136,7 @@ user as a publisher::
for server in servers:
for server in servers:
for node in nodes:
for node in nodes:
print "creating node %s for server %s ..." % (node, server)
print "creating node %s for server %s ..." % (node, server)
cmd = 'lvalert_admin -a {0} -b {1} -c {2} -d -q {3}'.format(username,
cmd = 'lvalert_admin -c {0} -d -q {1}'.format(server, node)
password, server, node)
p = subprocess.Popen(cmd, shell=True)
p = subprocess.Popen(cmd, shell=True)
out, err = p.communicate()
out, err = p.communicate()
...
@@ -153,10 +149,11 @@ user as a publisher::
...
@@ -153,10 +149,11 @@ user as a publisher::
print "adding gracedb as publisher to node %s for server %s ..." % (node, server)
print "adding gracedb as publisher to node %s for server %s ..." % (node, server)
cmd = 'lvalert_admin -a {0} -b {1} -c {2} -j gracedb -q {3}'.format(username,
cmd = 'lvalert_admin -c {0} -j gracedb -q {1}'.format( server, node)
password, server, node)
p = subprocess.Popen(cmd, shell=True)
p = subprocess.Popen(cmd, shell=True)
out, err = p.communicate()
out, err = p.communicate()
if err:
if err:
print "Error for node %s: %s" % (node, error)
print "Error for node %s: %s" % (node, error)
Note that you must have your ``.netrc`` file set up as described `here <https://gracedb.ligo.org/documentation/responding_to_lvalert.html#subscribing-to-pubsub-nodes>`__ for this to work automatically.
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