1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
\r
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
\r
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6 <link rel="stylesheet" type="text/css" href="../../style/style.css" />
7 <title>MyOpsQuery</title>
12 <h1>Welcome to MyOps-Query:</h1>
13 <h2>A simple collection & query interface for MyPLC deployments.</h2>
17 <li><a href="#">Home</a></li>
18 <li><a href="#">About</a></li>
24 <div id="contentwrap">
29 <p> This is a list of various queries you can perform with MyOps.</p>
30 <p>Many others can be performed by manipulating the query URL.</p>
32 <li> <a href="http://myops.planet-lab.org:5984/query?fields=date,hostname,netflow&filter=netflow==Bad">filter=netflow==Bad</a> </li>
33 <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,redundant_procs&filter=redundant_procs!=">filter=redundant_procs!=</a> </li>
34 <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>
35 <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>
36 <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname&filter=running_slices=~princeton_comon">filter=running_slices=~princeton_comon</a> </li>
37 <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>
38 <li> <a href="http://myops.planet-lab.org:5984/query?fields=hostname,rpm_versions&rpmpattern=vsys-scripts.*">rpmpattern=vsys-scripts.*</a> </li>
39 <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>
44 <h3>Supported Operators</h3>
46 <dt>==<dt> <dd>String comparison for equivalence.</dd>
47 <dt>!=<dt> <dd>String comparison for non-equivalence</dd>
48 <dt><=<dt> <dd>Given a number, <= converts the parameter into a number and compares it to the specified value. i.e. "root_free_disk<=0.2"</dd>
49 <dt>=~<dt> <dd>Given a regular expression, =~ will return rows who's attribute matches this pattern.</dd>
50 <h3>Supported Parameters</h3>
52 <dt>fields<dt> <dd>a comma separated list of attribute names to report.</dd>
53 <dt>filter </dt><dd> a simple logic expressions for filtering which values are returned.</dd>
54 <dt>within </dt><dd> only return node records that have been updated in less than <em>within</em> seconds. (default is 1 day (86400)) </dd>
55 <dt>skip_header </dt><dd> do not print the attribute names as the first ddne.</dd>
56 <dt>rpmpattern </dt><dd> a pattern to match against the rpm_versions attribute. Useful for checking a single package version.</dd>
58 <h3>Collected Attributes</h3>
59 <a href="http://myops.planet-lab.org:5984/files/input.cfg">input.cfg</a>
63 <div style="clear: both;"> </div>
67 <div id="bottom"> </div>
70 <p>© Copyright 2010 You | Template by <a href="http://www.starcraft2revealed.com/">Starcraft 2 Guides</a></p>