1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
\r
2 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
\r
6 <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
\r
7 <meta name="description" content="description"/>
\r
8 <meta name="keywords" content="keywords"/>
\r
9 <meta name="author" content="author"/>
\r
10 <!--link rel="stylesheet" type="text/css" href="../../screen.css" media="screen"/-->
\r
11 <!--link rel="stylesheet" href="../../style/screen.css" type="text/css"/-->
\r
12 <link rel="stylesheet" href="_static/sphinxdoc.css" type="text/css" />
\r
13 <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
\r
15 <title>MyOpsQuery</title>
\r
20 <div class="container">
\r
22 <div class="header">
\r
25 <h1>Welcome to MyOps-Query:</h1>
\r
26 <h4>A simple collection & query interface for MyPLC deployments.</h4>
\r
29 <div class="navigation">
\r
30 <a href="index.html">Home</a>
\r
31 <a href="index.html">About</a>
\r
32 <div class="clearer"><span></span></div>
\r
39 <div class="content">
\r
41 <h1>Example Queries</h1>
\r
42 <p> This is a list of various queries you can perform with MyOps.</p>
\r
43 <p>Many others can be performed by manipulating the query URL.</p>
\r
46 <li> <a href="http://myops.planet-lab.org:5984/query?fields=date,hostname,netflow&filter=netflow==Bad">filter=netflow==Bad</a> </li>
\r
47 <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,redundant_procs&filter=redundant_procs!=">filter=redundant_procs!=</a> </li>
\r
48 <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,free_disk_root&filter=free_disk_root<=0.2">filter=free_disk_root<=0.2</a> </li>
\r
49 <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,kernel_version&filter=kernel_version=~2.6.32">filter=kernel_version=~2.6.32</a> </li>
\r
50 <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname&filter=running_slices=~princeton_comon">filter=running_slices=~princeton_comon</a> </li>
\r
51 <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname&filter=rpm_versions=~fprobe-ulog-1.1.2-6.planetlab">filter=rpm_versions=~fprobe-ulog-1.1.2-6.planetlab</a> </li>
\r
52 <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,rpm_versions&rpmpattern=vsys-scripts.*">rpmpattern=vsys-scripts.*</a> </li>
\r
53 <li> <a href="http://myops.planet-lab.org:5984/_list/rpms/rpm-to-host?group=true&startkey=[%22rpm%22]&endkey=[%22rpm%22,{}]">List RPMS per host</a> </li>
\r
57 <h1>Supported Operators</h1>
\r
59 <li><strong>==</strong> String comparison for equivalence.</li>
\r
60 <li><strong>!=</strong> String comparison for non-equivalence</li>
\r
61 <li><strong><=</strong> Given a number, <= converts the parameter into a number and compares it to the specified value. i.e. "root_free_disk<=0.2"</li>
\r
62 <li><strong>=~</strong> Given a regular expression, =~ will return rows who's attribute matches this pattern.</li>
\r
65 <h1>Supported Parameters</h1>
\r
67 <li><strong>fields</strong> a comma separated list of attribute names to report.</li>
\r
68 <li><strong>filter </strong> a simple logic expressions for filtering which values are returned.</li>
\r
69 <li><strong>within </strong> only return node records that have been updated in less than <strong>within</strong> seconds. (default is 1 day (86400)) </li>
\r
70 <li><strong>skip_header </strong> do not print the attribute names as the first ddne.</li>
\r
71 <li><strong>rpmpattern </strong> a pattern to match against the rpm_versions attribute. Useful for checking a single package version.</li>
\r
74 <div class="sidenav">
\r
77 <form action="query">
\r
79 <input type="text" name="filter" class="styled" />
\r
80 <input type="hidden" name="fields" value="date,hostname" />
\r
81 <input type="submit" value="submit" class="button" />
\r
85 <h1>Collected Attributes</h1>
\r
87 <li><a href="http://myops.planet-lab.org:5984/files/input.cfg">input.cfg</a></li>
\r
92 <div class="clearer"><span></span></div>
\r
98 <div class="footer">© 2006 <a href="index.html">Website.com</a>. Valid <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> & <a href="http://validator.w3.org/check?uri=referer">XHTML</a>. Template design by <a href="http://arcsin.se">Arcsin</a>
\r