rcmd 1.5.7 → 1.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec_status +7 -7
- data/Gemfile.lock +17 -9
- data/README.md +18 -4
- data/doc/rdocs/OptionParser.html +44 -72
- data/doc/rdocs/README_md.html +117 -129
- data/doc/rdocs/Rcmd.html +69 -94
- data/doc/rdocs/created.rid +5 -5
- data/doc/rdocs/css/fonts.css +167 -0
- data/doc/rdocs/{rdoc.css → css/rdoc.css} +237 -242
- data/doc/rdocs/fonts/Lato-Light.ttf +0 -0
- data/doc/rdocs/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/rdocs/fonts/Lato-Regular.ttf +0 -0
- data/doc/rdocs/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/rdocs/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/rdocs/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/rdocs/index.html +107 -102
- data/doc/rdocs/js/darkfish.js +33 -27
- data/doc/rdocs/js/navigation.js.gz +0 -0
- data/doc/rdocs/js/search.js +20 -5
- data/doc/rdocs/js/search_index.js.gz +0 -0
- data/doc/rdocs/js/searcher.js +3 -2
- data/doc/rdocs/js/searcher.js.gz +0 -0
- data/doc/rdocs/table_of_contents.html +26 -25
- data/exe/rcmd +12 -4
- data/lib/rcmd/version.rb +1 -1
- data/rcmd.gemspec +1 -1
- metadata +51 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db367fb9ee0a345d21efe9d34e2e1a82a825567d
|
4
|
+
data.tar.gz: 45e96daee3ac72dd2a3cdda0f576adc8553aa193
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fd26cf8b227ee8ace5e8fadc4b0f9591d67355d8c84ef0dbf3833bf099e1a0763ac6d63a3e96f2a69417abadac71942baeee8a5865366814b628296c4d4d1a0
|
7
|
+
data.tar.gz: 0747e55128628ae496d87d734134e09677a2b2d7042a55c07e9a3e4bbf19cfef8464d7a89d1cd3ab14ca86300b53dc3fb372971855ef1f8ec2a37d55f2fc2c60
|
data/.rspec_status
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
example_id | status | run_time |
|
2
2
|
------------------------ | ------ | --------------- |
|
3
|
-
./spec/rcmd_spec.rb[1:1] | passed | 0.
|
4
|
-
./spec/rcmd_spec.rb[1:2] | passed | 0.
|
5
|
-
./spec/rcmd_spec.rb[1:3] | passed | 0.
|
6
|
-
./spec/rcmd_spec.rb[1:4] | passed | 0.
|
7
|
-
./spec/rcmd_spec.rb[1:5] | passed | 0.
|
8
|
-
./spec/rcmd_spec.rb[1:6] | passed | 0.
|
9
|
-
./spec/rcmd_spec.rb[1:7] | passed | 0.
|
3
|
+
./spec/rcmd_spec.rb[1:1] | passed | 0.00064 seconds |
|
4
|
+
./spec/rcmd_spec.rb[1:2] | passed | 0.00101 seconds |
|
5
|
+
./spec/rcmd_spec.rb[1:3] | passed | 0.00088 seconds |
|
6
|
+
./spec/rcmd_spec.rb[1:4] | passed | 0.00012 seconds |
|
7
|
+
./spec/rcmd_spec.rb[1:5] | passed | 0.00012 seconds |
|
8
|
+
./spec/rcmd_spec.rb[1:6] | passed | 0.00178 seconds |
|
9
|
+
./spec/rcmd_spec.rb[1:7] | passed | 0.00015 seconds |
|
data/Gemfile.lock
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rcmd (1.5.
|
4
|
+
rcmd (1.5.8)
|
5
5
|
io-console
|
6
6
|
net-ssh
|
7
|
+
regexp-examples
|
7
8
|
thread
|
8
9
|
tty-prompt
|
9
10
|
|
@@ -12,13 +13,15 @@ GEM
|
|
12
13
|
specs:
|
13
14
|
diff-lcs (1.3)
|
14
15
|
equatable (0.5.0)
|
15
|
-
|
16
|
+
hitimes (1.2.6)
|
17
|
+
io-console (0.4.6)
|
16
18
|
necromancer (0.4.0)
|
17
|
-
net-ssh (4.
|
19
|
+
net-ssh (4.2.0)
|
18
20
|
pastel (0.7.1)
|
19
21
|
equatable (~> 0.5.0)
|
20
22
|
tty-color (~> 0.4.0)
|
21
23
|
rake (10.5.0)
|
24
|
+
regexp-examples (1.3.2)
|
22
25
|
rspec (3.6.0)
|
23
26
|
rspec-core (~> 3.6.0)
|
24
27
|
rspec-expectations (~> 3.6.0)
|
@@ -33,14 +36,19 @@ GEM
|
|
33
36
|
rspec-support (~> 3.6.0)
|
34
37
|
rspec-support (3.6.0)
|
35
38
|
thread (0.2.2)
|
39
|
+
timers (4.1.2)
|
40
|
+
hitimes
|
36
41
|
tty-color (0.4.2)
|
37
|
-
tty-cursor (0.
|
38
|
-
tty-prompt (0.
|
42
|
+
tty-cursor (0.5.0)
|
43
|
+
tty-prompt (0.13.2)
|
39
44
|
necromancer (~> 0.4.0)
|
40
45
|
pastel (~> 0.7.0)
|
41
|
-
|
42
|
-
|
43
|
-
|
46
|
+
timers (~> 4.1.2)
|
47
|
+
tty-cursor (~> 0.5.0)
|
48
|
+
tty-reader (~> 0.1.0)
|
49
|
+
tty-reader (0.1.0)
|
50
|
+
wisper (~> 2.0.0)
|
51
|
+
wisper (2.0.0)
|
44
52
|
|
45
53
|
PLATFORMS
|
46
54
|
ruby
|
@@ -52,4 +60,4 @@ DEPENDENCIES
|
|
52
60
|
rspec (~> 3.0, >= 2.0.0)
|
53
61
|
|
54
62
|
BUNDLED WITH
|
55
|
-
1.15.
|
63
|
+
1.15.4
|
data/README.md
CHANGED
@@ -21,14 +21,15 @@ rcmd is available as a gem and kan be installed with `gem install rcmd`
|
|
21
21
|
## Help Screen
|
22
22
|
|
23
23
|
```bash
|
24
|
-
daibhidh@darkstar:~/$ rcmd --help
|
25
24
|
Usage: rcmd [options]
|
26
25
|
-u, --username username Username for SSH connections
|
27
26
|
-n, --nodes x,y,z Comma seperated list of nodes. use '-' for a space seperated list piped from another command
|
27
|
+
-r, --regexp regex Use Regex to build host list (ruby regexp)
|
28
28
|
-t, --threads threads Number of threads to run
|
29
29
|
-c, --command <command> Quoted string containing the command to be run
|
30
30
|
-q, --quiet Suppress stdout of commands. stderr will still be displayed
|
31
|
-
|
31
|
+
-v, --version Print what version of the command is in use
|
32
|
+
-D, --debug Print debug information
|
32
33
|
```
|
33
34
|
|
34
35
|
## Specifying nodes manually
|
@@ -56,8 +57,21 @@ node2.example.com :: Red Hat Enterprise Linux ComputeNode release 6.8 (Santiago)
|
|
56
57
|
node4.example.com :: Red Hat Enterprise Linux ComputeNode release 6.9 (Santiago)
|
57
58
|
```
|
58
59
|
|
59
|
-
## Using
|
60
|
-
|
60
|
+
## Using regex to build node list
|
61
|
+
```bash
|
62
|
+
daibhidh@darkstar:~/$ rcmd -r 'node([1-9]|1[1-2])$' -c 'hostname -f'
|
63
|
+
node2 :: node2.example.com
|
64
|
+
node1 :: node1.example.com
|
65
|
+
node4 :: node4.example.com
|
66
|
+
node3 :: node3.example.com
|
67
|
+
node5 :: node5.example.com
|
68
|
+
node6 :: node6.example.com
|
69
|
+
node8 :: node8.example.com
|
70
|
+
node7 :: node7.example.com
|
71
|
+
node11 :: CONNECT ERROR :: Unable to connect to host!
|
72
|
+
node9 :: node9.example.com
|
73
|
+
node12 :: node12.example.com
|
74
|
+
```
|
61
75
|
|
62
76
|
# Development
|
63
77
|
|
data/doc/rdocs/OptionParser.html
CHANGED
@@ -2,60 +2,57 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta
|
5
|
+
<meta charset="UTF-8">
|
6
6
|
|
7
7
|
<title>module OptionParser - RDoc Documentation</title>
|
8
8
|
|
9
|
-
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
-
|
11
9
|
<script type="text/javascript">
|
12
10
|
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
13
12
|
</script>
|
14
13
|
|
15
|
-
<script
|
16
|
-
<script
|
17
|
-
|
18
|
-
<
|
19
|
-
<
|
20
|
-
|
14
|
+
<script src="./js/jquery.js"></script>
|
15
|
+
<script src="./js/darkfish.js"></script>
|
16
|
+
|
17
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
18
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
19
|
+
|
20
|
+
|
21
21
|
|
22
|
+
<body id="top" role="document" class="module">
|
23
|
+
<nav role="navigation">
|
24
|
+
<div id="project-navigation">
|
25
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
+
<h2>
|
27
|
+
<a href="./index.html" rel="home">Home</a>
|
28
|
+
</h2>
|
22
29
|
|
23
|
-
<
|
24
|
-
<
|
25
|
-
<nav id="home-section" class="section">
|
26
|
-
<h3 class="section-header">
|
27
|
-
<a href="./index.html">Home</a>
|
30
|
+
<div id="table-of-contents-navigation">
|
31
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
28
32
|
<a href="./table_of_contents.html#classes">Classes</a>
|
29
33
|
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
-
</
|
31
|
-
</
|
32
|
-
|
34
|
+
</div>
|
35
|
+
</div>
|
33
36
|
|
34
|
-
|
37
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
35
38
|
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<
|
37
|
-
<input
|
39
|
+
<div id="search-field-wrapper">
|
40
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
+
aria-autocomplete="list" aria-controls="search-results"
|
42
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
38
43
|
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</
|
40
|
-
</form>
|
44
|
+
</div>
|
41
45
|
|
42
|
-
|
43
|
-
|
46
|
+
<ul id="search-results" aria-label="Search Results"
|
47
|
+
aria-busy="false" aria-expanded="false"
|
48
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
+
</form>
|
50
|
+
</div>
|
44
51
|
|
52
|
+
</div>
|
45
53
|
|
46
54
|
|
47
55
|
|
48
|
-
<div id="file-metadata">
|
49
|
-
<nav id="file-list-section" class="section">
|
50
|
-
<h3 class="section-header">Defined In</h3>
|
51
|
-
<ul>
|
52
|
-
<li>exe/rcmd
|
53
|
-
</ul>
|
54
|
-
</nav>
|
55
|
-
|
56
|
-
|
57
|
-
</div>
|
58
|
-
|
59
56
|
<div id="class-metadata">
|
60
57
|
|
61
58
|
|
@@ -63,39 +60,16 @@
|
|
63
60
|
|
64
61
|
|
65
62
|
</div>
|
66
|
-
|
67
|
-
<div id="project-metadata">
|
68
|
-
<nav id="fileindex-section" class="section project-section">
|
69
|
-
<h3 class="section-header">Pages</h3>
|
70
|
-
|
71
|
-
<ul>
|
72
|
-
|
73
|
-
<li class="file"><a href="./README_md.html">README</a>
|
74
|
-
|
75
|
-
</ul>
|
76
63
|
</nav>
|
77
64
|
|
78
|
-
|
79
|
-
<
|
65
|
+
<main role="main" aria-labelledby="module-OptionParser">
|
66
|
+
<h1 id="module-OptionParser" class="module">
|
67
|
+
module OptionParser
|
68
|
+
</h1>
|
80
69
|
|
81
|
-
<
|
82
|
-
|
83
|
-
<li><a href="./OptionParser.html">OptionParser</a>
|
84
|
-
|
85
|
-
<li><a href="./Rcmd.html">Rcmd</a>
|
86
|
-
|
87
|
-
</ul>
|
88
|
-
</nav>
|
89
|
-
|
90
|
-
</div>
|
91
|
-
</nav>
|
92
|
-
|
93
|
-
<div id="documentation">
|
94
|
-
<h1 class="module">module OptionParser</h1>
|
95
|
-
|
96
|
-
<div id="description" class="description">
|
70
|
+
<section class="description">
|
97
71
|
|
98
|
-
</
|
72
|
+
</section>
|
99
73
|
|
100
74
|
|
101
75
|
|
@@ -109,16 +83,14 @@
|
|
109
83
|
|
110
84
|
|
111
85
|
|
112
|
-
<!-- Methods -->
|
113
86
|
|
114
|
-
</section
|
115
|
-
|
116
|
-
</div><!-- documentation -->
|
87
|
+
</section>
|
88
|
+
</main>
|
117
89
|
|
118
90
|
|
119
|
-
<footer id="validator-badges">
|
120
|
-
<p><a href="http://validator.w3.org/check/referer">
|
121
|
-
<p>Generated by <a href="https://github.
|
122
|
-
<p>
|
91
|
+
<footer id="validator-badges" role="contentinfo">
|
92
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
93
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
94
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
123
95
|
</footer>
|
124
96
|
|
data/doc/rdocs/README_md.html
CHANGED
@@ -2,104 +2,97 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta
|
5
|
+
<meta charset="UTF-8">
|
6
6
|
|
7
7
|
<title>README - RDoc Documentation</title>
|
8
8
|
|
9
|
-
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
|
10
|
-
|
11
9
|
<script type="text/javascript">
|
12
10
|
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
13
12
|
</script>
|
14
13
|
|
15
|
-
<script
|
16
|
-
<script
|
17
|
-
|
18
|
-
<
|
19
|
-
<
|
20
|
-
|
14
|
+
<script src="./js/jquery.js"></script>
|
15
|
+
<script src="./js/darkfish.js"></script>
|
16
|
+
|
17
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
18
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
19
|
+
|
20
|
+
|
21
21
|
|
22
|
+
<body id="top" role="document" class="file">
|
23
|
+
<nav role="navigation">
|
24
|
+
<div id="project-navigation">
|
25
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
+
<h2>
|
27
|
+
<a href="./index.html" rel="home">Home</a>
|
28
|
+
</h2>
|
22
29
|
|
23
|
-
<
|
24
|
-
<
|
25
|
-
<nav id="home-section" class="section">
|
26
|
-
<h3 class="section-header">
|
27
|
-
<a href="./index.html">Home</a>
|
30
|
+
<div id="table-of-contents-navigation">
|
31
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
28
32
|
<a href="./table_of_contents.html#classes">Classes</a>
|
29
33
|
<a href="./table_of_contents.html#methods">Methods</a>
|
30
|
-
</
|
31
|
-
</
|
32
|
-
|
34
|
+
</div>
|
35
|
+
</div>
|
33
36
|
|
34
|
-
|
37
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
35
38
|
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<
|
37
|
-
<input
|
39
|
+
<div id="search-field-wrapper">
|
40
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
+
aria-autocomplete="list" aria-controls="search-results"
|
42
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
38
43
|
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</
|
40
|
-
</form>
|
44
|
+
</div>
|
41
45
|
|
42
|
-
|
43
|
-
|
46
|
+
<ul id="search-results" aria-label="Search Results"
|
47
|
+
aria-busy="false" aria-expanded="false"
|
48
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
+
</form>
|
50
|
+
</div>
|
44
51
|
|
52
|
+
</div>
|
45
53
|
|
46
54
|
|
47
|
-
<div
|
48
|
-
<
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
</nav>
|
55
|
+
<div class="nav-section">
|
56
|
+
<h3>Table of Contents</h3>
|
57
|
+
|
58
|
+
<ul class="link-list" role="directory">
|
59
|
+
<li><a href="#label-Description">Description</a>
|
60
|
+
<li><a href="#label-Features">Features</a>
|
61
|
+
<li><a href="#label-Installation">Installation</a>
|
62
|
+
<li><a href="#label-Usage+Examples">Usage Examples</a>
|
63
|
+
<li><a href="#label-Help+Screen">Help Screen</a>
|
64
|
+
<li><a href="#label-Specifying+nodes+manually">Specifying nodes manually</a>
|
65
|
+
<li><a href="#label-Piping+list+of+nodes">Piping list of nodes</a>
|
66
|
+
<li><a href="#label-Using+regex+to+build+node+list">Using regex to build node list</a>
|
67
|
+
<li><a href="#label-Development">Development</a>
|
68
|
+
</ul>
|
62
69
|
</div>
|
63
70
|
|
64
71
|
|
65
72
|
<div id="project-metadata">
|
66
|
-
<
|
67
|
-
<h3
|
68
|
-
|
69
|
-
<ul>
|
70
|
-
|
71
|
-
<li class="file"><a href="./README_md.html">README</a>
|
72
|
-
|
73
|
-
</ul>
|
74
|
-
</nav>
|
75
|
-
|
76
|
-
<nav id="classindex-section" class="section project-section">
|
77
|
-
<h3 class="section-header">Class and Module Index</h3>
|
73
|
+
<div id="fileindex-section" class="nav-section">
|
74
|
+
<h3>Pages</h3>
|
78
75
|
|
79
76
|
<ul class="link-list">
|
80
77
|
|
81
|
-
<li><a href="./
|
82
|
-
|
83
|
-
<li><a href="./Rcmd.html">Rcmd</a>
|
78
|
+
<li><a href="./README_md.html">README</a>
|
84
79
|
|
85
80
|
</ul>
|
86
|
-
</
|
81
|
+
</div>
|
87
82
|
|
88
83
|
</div>
|
89
84
|
</nav>
|
90
85
|
|
91
|
-
<
|
92
|
-
|
93
|
-
<h1 id="label-Description">Description<span><a href="#label-Description">¶</a> <a href="#
|
86
|
+
<main role="main" aria-label="Page README.md">
|
87
|
+
|
88
|
+
<h1 id="label-Description">Description<span><a href="#label-Description">¶</a> <a href="#top">↑</a></span></h1>
|
94
89
|
|
95
90
|
<p>rcmd (remote command) is a command line utility written in Ruby for
|
96
|
-
executing the same command on
|
97
|
-
|
98
|
-
assigning a host to a
|
99
|
-
thread and creating the ssh sessions in those
|
91
|
+
executing the same command on multiple systems through ssh. This is done by
|
92
|
+
assigning a host to a thread and creating the ssh sessions in those
|
100
93
|
threads.</p>
|
101
94
|
|
102
|
-
<h2 id="label-Features">Features<span><a href="#label-Features">¶</a> <a href="#
|
95
|
+
<h2 id="label-Features">Features<span><a href="#label-Features">¶</a> <a href="#top">↑</a></span></h2>
|
103
96
|
<ul><li>
|
104
97
|
<p>Command line switch for setting number of threads to be used at a time.
|
105
98
|
(Default is 4)</p>
|
@@ -115,70 +108,65 @@ the node list.</p>
|
|
115
108
|
<p>Stdout can be suppressed, only allowing for stderr to be shown</p>
|
116
109
|
</li></ul>
|
117
110
|
|
118
|
-
<h2 id="label-Installation">Installation<span><a href="#label-Installation">¶</a> <a href="#
|
111
|
+
<h2 id="label-Installation">Installation<span><a href="#label-Installation">¶</a> <a href="#top">↑</a></span></h2>
|
119
112
|
|
120
113
|
<p>rcmd is available as a gem and kan be installed with <code>gem install
|
121
114
|
rcmd</code></p>
|
122
115
|
|
123
|
-
<h1 id="label-Usage+Examples">Usage Examples<span><a href="#label-Usage+Examples">¶</a> <a href="#
|
116
|
+
<h1 id="label-Usage+Examples">Usage Examples<span><a href="#label-Usage+Examples">¶</a> <a href="#top">↑</a></span></h1>
|
124
117
|
|
125
|
-
<h2 id="label-Help+Screen">Help Screen<span><a href="#label-Help+Screen">¶</a> <a href="#
|
118
|
+
<h2 id="label-Help+Screen">Help Screen<span><a href="#label-Help+Screen">¶</a> <a href="#top">↑</a></span></h2>
|
126
119
|
|
127
|
-
<pre>
|
128
|
-
Usage: rcmd [options]
|
120
|
+
<pre>Usage: rcmd [options]
|
129
121
|
-u, --username username Username for SSH connections
|
130
122
|
-n, --nodes x,y,z Comma seperated list of nodes. use '-' for a space seperated list piped from another command
|
123
|
+
-r, --regexp regex Use Regex to build host list (ruby regexp)
|
131
124
|
-t, --threads threads Number of threads to run
|
132
125
|
-c, --command <command> Quoted string containing the command to be run
|
133
126
|
-q, --quiet Suppress stdout of commands. stderr will still be displayed
|
134
|
-
|
127
|
+
-v, --version Print what version of the command is in use
|
128
|
+
-D, --debug Print debug information</pre>
|
135
129
|
|
136
|
-
<h2 id="label-Specifying+nodes+manually">Specifying nodes manually<span><a href="#label-Specifying+nodes+manually">¶</a> <a href="#
|
130
|
+
<h2 id="label-Specifying+nodes+manually">Specifying nodes manually<span><a href="#label-Specifying+nodes+manually">¶</a> <a href="#top">↑</a></span></h2>
|
137
131
|
|
138
132
|
<p>Specifying a comma seperated list of hosts and timing the total execution
|
139
|
-
time.
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
ComputeNode release 6.8 (Santiago)
|
145
|
-
node1 :: Red Hat Enterprise Linux
|
146
|
-
ComputeNode release 6.8 (Santiago)
|
147
|
-
node4 :: Red Hat Enterprise Linux
|
148
|
-
ComputeNode release 6.9 (Santiago)
|
149
|
-
node3 :: Red Hat Enterprise Linux
|
133
|
+
time. “`bash daibhidh@darkstar:~/$ time rcmd -n node1,node2,node3,node4 -c
|
134
|
+
'cat /etc/redhat-release' node2 :: Red Hat Enterprise Linux
|
135
|
+
ComputeNode release 6.8 (Santiago) node1 :: Red Hat Enterprise Linux
|
136
|
+
ComputeNode release 6.8 (Santiago) node4 :: Red Hat Enterprise Linux
|
137
|
+
ComputeNode release 6.9 (Santiago) node3 :: Red Hat Enterprise Linux
|
150
138
|
ComputeNode release 6.9 (Santiago)</p>
|
151
139
|
|
152
|
-
<p>real 0m2.749s
|
153
|
-
user 0m0.272s
|
154
|
-
sys 0m0.050s
|
155
|
-
```</p>
|
140
|
+
<p>real 0m2.749s user 0m0.272s sys 0m0.050s “`</p>
|
156
141
|
|
157
|
-
<h2 id="label-Piping+list+of+nodes">Piping list of nodes<span><a href="#label-Piping+list+of+nodes">¶</a> <a href="#
|
142
|
+
<h2 id="label-Piping+list+of+nodes">Piping list of nodes<span><a href="#label-Piping+list+of+nodes">¶</a> <a href="#top">↑</a></span></h2>
|
158
143
|
|
159
144
|
<p>Using the hammer cli to get a list of hosts from a RedHat Satellite and
|
160
|
-
providing it to rcmd as the node
|
161
|
-
list
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
145
|
+
providing it to rcmd as the node list. <code>bash daibhidh@darkstar:~/$
|
146
|
+
hammer --output base host list --organization org | awk '/Name:/ {print
|
147
|
+
$2}' | rcmd -n - -c 'cat /etc/redhat-release' node1.example.com
|
148
|
+
:: Red Hat Enterprise Linux ComputeNode release 6.8 (Santiago)
|
149
|
+
node3.example.com :: Red Hat Enterprise Linux ComputeNode release 6.9
|
150
|
+
(Santiago) node2.example.com :: Red Hat Enterprise Linux ComputeNode
|
151
|
+
release 6.8 (Santiago) node4.example.com :: Red Hat Enterprise Linux
|
152
|
+
ComputeNode release 6.9 (Santiago) </code></p>
|
153
|
+
|
154
|
+
<h2 id="label-Using+regex+to+build+node+list">Using regex to build node list<span><a href="#label-Using+regex+to+build+node+list">¶</a> <a href="#top">↑</a></span></h2>
|
155
|
+
|
156
|
+
<pre>daibhidh@darkstar:~/$ rcmd -r 'node([1-9]|1[1-2])$' -c 'hostname -f'
|
157
|
+
node2 :: node2.example.com
|
158
|
+
node1 :: node1.example.com
|
159
|
+
node4 :: node4.example.com
|
160
|
+
node3 :: node3.example.com
|
161
|
+
node5 :: node5.example.com
|
162
|
+
node6 :: node6.example.com
|
163
|
+
node8 :: node8.example.com
|
164
|
+
node7 :: node7.example.com
|
165
|
+
node11 :: CONNECT ERROR :: Unable to connect to host!
|
166
|
+
node9 :: node9.example.com
|
167
|
+
node12 :: node12.example.com</pre>
|
168
|
+
|
169
|
+
<h1 id="label-Development">Development<span><a href="#label-Development">¶</a> <a href="#top">↑</a></span></h1>
|
182
170
|
|
183
171
|
<p>If you are wanting to modify the code by all means do so. If you clone this
|
184
172
|
repository you can then run <code>bundle install</code> to install the
|
@@ -187,26 +175,26 @@ with <em>rake</em>.</p>
|
|
187
175
|
|
188
176
|
<p>Available Rake tasks are:</p>
|
189
177
|
|
190
|
-
<pre>rake build
|
191
|
-
rake clean
|
192
|
-
rake clobber
|
193
|
-
rake clobber_rdoc
|
194
|
-
rake console
|
195
|
-
rake install
|
196
|
-
rake install
|
197
|
-
rake rdoc
|
198
|
-
rake reinstall
|
199
|
-
rake release[remote]
|
200
|
-
rake rerdoc
|
201
|
-
rake spec
|
202
|
-
|
203
|
-
</
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
<footer id="validator-badges">
|
208
|
-
<p><a href="http://validator.w3.org/check/referer">
|
209
|
-
<p>Generated by <a href="https://github.
|
210
|
-
<p>
|
178
|
+
<pre class="ruby"><span class="ruby-identifier">rake</span> <span class="ruby-identifier">build</span> <span class="ruby-comment"># Build rcmd-1.5.5.gem into the pkg directory</span>
|
179
|
+
<span class="ruby-identifier">rake</span> <span class="ruby-identifier">clean</span> <span class="ruby-comment"># Remove any temporary products</span>
|
180
|
+
<span class="ruby-identifier">rake</span> <span class="ruby-identifier">clobber</span> <span class="ruby-comment"># Remove any generated files</span>
|
181
|
+
<span class="ruby-identifier">rake</span> <span class="ruby-identifier">clobber_rdoc</span> <span class="ruby-comment"># Remove RDoc HTML files</span>
|
182
|
+
<span class="ruby-identifier">rake</span> <span class="ruby-identifier">console</span> <span class="ruby-comment"># Open an IRB console with this gem loaded</span>
|
183
|
+
<span class="ruby-identifier">rake</span> <span class="ruby-identifier">install</span> <span class="ruby-comment"># Build and install rcmd-1.5.5.gem into system gems</span>
|
184
|
+
<span class="ruby-identifier">rake</span> <span class="ruby-identifier">install</span>:<span class="ruby-identifier">local</span> <span class="ruby-comment"># Build and install rcmd-1.5.5.gem into system gems without network access</span>
|
185
|
+
<span class="ruby-identifier">rake</span> <span class="ruby-identifier">rdoc</span> <span class="ruby-comment"># Build RDoc HTML files</span>
|
186
|
+
<span class="ruby-identifier">rake</span> <span class="ruby-identifier">reinstall</span> <span class="ruby-comment"># Remove, build, and install gem</span>
|
187
|
+
<span class="ruby-identifier">rake</span> <span class="ruby-identifier">release</span>[<span class="ruby-identifier">remote</span>] <span class="ruby-comment"># Create tag v1.5.5 and build and push rcmd-1.5.5.gem to Rubygems</span>
|
188
|
+
<span class="ruby-identifier">rake</span> <span class="ruby-identifier">rerdoc</span> <span class="ruby-comment"># Rebuild RDoc HTML files</span>
|
189
|
+
<span class="ruby-identifier">rake</span> <span class="ruby-identifier">spec</span> <span class="ruby-comment"># Run RSpec code examples</span>
|
190
|
+
</pre>
|
191
|
+
</main>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<footer id="validator-badges" role="contentinfo">
|
196
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
197
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
|
198
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
211
199
|
</footer>
|
212
200
|
|