http://www.linux-vserver.org/index.php?title=Some_handy_scripts&feed=atom&action=historySome handy scripts - Revision history2024-03-29T10:59:41ZRevision history for this page on the wikiMediaWiki 1.20.2http://www.linux-vserver.org/index.php?title=Some_handy_scripts&diff=4833&oldid=prevGlenn: spelling2011-10-21T19:00:33Z<p>spelling</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 19:00, 21 October 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 26:</td>
<td colspan="2" class="diff-lineno">Line 26:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|Signature=derjohn}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|Signature=derjohn}}</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>[[Category:<del class="diffchange diffchange-inline">Documentaion</del>]]</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>[[Category:<ins class="diffchange diffchange-inline">Documentation</ins>]]</div></td></tr>
</table>Glennhttp://www.linux-vserver.org/index.php?title=Some_handy_scripts&diff=4817&oldid=prevGlenn: +cat2011-10-21T18:54:28Z<p>+cat</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 18:54, 21 October 2011</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 25:</td>
<td colspan="2" class="diff-lineno">Line 25:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div></pre></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|Signature=derjohn}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|Signature=derjohn}}</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">[[Category:Documentaion]]</ins></div></td></tr>
</table>Glennhttp://www.linux-vserver.org/index.php?title=Some_handy_scripts&diff=2632&oldid=prevDaniel15: Somehandyscripts moved to Some handy scripts: Moved page to "correct" name :)2007-07-30T05:59:15Z<p><a href="/Somehandyscripts" class="mw-redirect" title="Somehandyscripts">Somehandyscripts</a> moved to <a href="/Some_handy_scripts" title="Some handy scripts">Some handy scripts</a>: Moved page to "correct" name :)</p>
<table class='diff diff-contentalign-left'>
<tr style='vertical-align: top;'>
<td colspan='1' style="background-color: white; color:black;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black;">Revision as of 05:59, 30 July 2007</td>
</tr></table>Daniel15http://www.linux-vserver.org/index.php?title=Some_handy_scripts&diff=2631&oldid=prevDerjohn: inital creation of the page2007-07-29T12:55:17Z<p>inital creation of the page</p>
<p><b>New page</b></p><div>= =<br />
The motivation for creating this page was to publish some bash scripts that can be used in combination with util-vserver to make your host management simpler or more comfortable. The idea is, that you can cut&paste them from here to your shell or re-use them in your own managemnt scripts.<br />
<br />
{{Question|Question=Show rlimits of all guests||Details=<br />
<pre><br />
for i in $(ls /etc/vservers/); do echo -n "$i "; if [ -e /etc/vservers/$i/rlimits ]; then for j in $(ls /etc/vservers/$i/rlimits); do echo -en "$j=$(cat /etc/vservers/$i/rlimits/$j) "; done ; fi ; echo ""; done<br />
</pre><br />
<br />
Creates an output like this:<br />
<pre><br />
guest1 as=1048576 rss=131072<br />
guest2<br />
guest3 as=1048576 rss=131072<br />
</pre><br />
|Signature=derjohn}}<br />
<br />
{{Question|Question=Show next free context ID||Details=<br />
<pre><br />
echo $(( $(sort /etc/vservers/*/context | tail -n 1) +1 ))<br />
</pre><br />
<br />
Creates an output like this:<br />
<pre><br />
666<br />
</pre><br />
|Signature=derjohn}}</div>Derjohn