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="default.css" media="screen"/>
\r
11 <title>MyOpsQuery</title>
\r
16 <div class="container">
\r
18 <div class="header">
\r
21 <h1>Welcome to MyOps-Query:</h1>
\r
22 <h4>A simple collection & query interface for MyPLC deployments.</h4>
\r
25 <div class="navigation">
\r
26 <a href="index.html">Home</a>
\r
27 <a href="index.html">About</a>
\r
28 <div class="clearer"><span></span></div>
\r
35 <div class="content">
\r
37 <h1>Example Queries</h1>
\r
38 <p> This is a list of various queries you can perform with MyOps.</p>
\r
39 <p>Many others can be performed by manipulating the query URL.</p>
\r
42 <li> <a href="http://myops.planet-lab.org:5984/query?fields=date,hostname,netflow&filter=netflow==Bad">filter=netflow==Bad</a> </li>
\r
43 <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,redundant_procs&filter=redundant_procs!=">filter=redundant_procs!=</a> </li>
\r
44 <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
45 <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
46 <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
47 <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
48 <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,rpm_versions&rpmpattern=vsys-scripts.*">rpmpattern=vsys-scripts.*</a> </li>
\r
49 <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
53 <h1>Supported Operators</h1>
\r
55 <li><strong>==</strong> String comparison for equivalence.</li>
\r
56 <li><strong>!=</strong> String comparison for non-equivalence</li>
\r
57 <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
58 <li><strong>=~</strong> Given a regular expression, =~ will return rows who's attribute matches this pattern.</li>
\r
61 <h1>Supported Parameters</h1>
\r
63 <li><strong>fields</strong> a comma separated list of attribute names to report.</li>
\r
64 <li><strong>filter </strong> a simple logic expressions for filtering which values are returned.</li>
\r
65 <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
66 <li><strong>skip_header </strong> do not print the attribute names as the first ddne.</li>
\r
67 <li><strong>rpmpattern </strong> a pattern to match against the rpm_versions attribute. Useful for checking a single package version.</li>
\r
70 <div class="sidenav">
\r
73 <form action="index.html">
\r
75 <input type="text" name="search" class="styled" /> <input type="submit" value="submit" class="button" />
\r
79 <h1>Collected Attributes</h1>
\r
81 <li><a href="http://myops.planet-lab.org:5984/files/input.cfg">input.cfg</a></li>
\r
86 <div class="clearer"><span></span></div>
\r
92 <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