<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Yes, that's how I remove data from time to time, but I was hoping
there would be a report that displays via the webpage, similar to
the ghostlist.sh<br>
<br>
<pre class="moz-signature" cols="72">Kris Springer
</pre>
<div class="moz-cite-prefix">On 1/22/19 11:38 AM, Root, Paul T
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:C88055D0A02F174F848A984067ACC21C7520B1E8@podcwmbxex503.ctl.intranet">
<meta name="ProgId" content="Word.Document">
<meta name="Generator" content="Microsoft Word 15">
<meta name="Originator" content="Microsoft Word 15">
<div class="WordSection1">
<p class="MsoNormal"><span>Go to your hostdata directory. It
will have a directory for each machine. You can rm -rf Cam*
there.</span></p>
<p class="MsoNormal"><span>Could be more in hist and rrd</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span> </span></p>
<div>
<div>
<p class="MsoNormal"><b><span>From:</span></b><span> Xymon
<a class="moz-txt-link-rfc2396E" href="mailto:xymon-bounces@xymon.com"><xymon-bounces@xymon.com></a> <b><span>On Behalf Of </span>
</b>Kris Springer<br>
<b><span>Sent:</span></b> Tuesday, January 22, 2019
12:18 PM<br>
<b><span>Cc:</span></b> Xymon MailingList
<a class="moz-txt-link-rfc2396E" href="mailto:xymon@xymon.com"><xymon@xymon.com></a><br>
<b><span>Subject:</span></b> Re: [Xymon] drop multiple
hosts with wildcard</span></p>
</div>
</div>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>Ok, let me ask the question a little
different way. Is there a way to view a list of old
hostnames that are not listed in the hosts.cfg file but the
server still has old logs stored?<br>
<br>
<br>
</span></p>
<pre><span>Kris Springer</span></pre>
<pre><span> </span></pre>
<pre><span> </span></pre>
<div>
<p class="MsoNormal"><span>On 1/22/19 11:05 AM, Galen Johnson
wrote:</span></p>
</div>
<blockquote>
<div>
<p class="MsoNormal"><span>probably need to use a quick
command line 'for' loop. Something like:
</span></p>
<div>
<p class="MsoNormal"><span> </span></p>
</div>
<div>
<p class="MsoNormal"><span>for Host in Cam{1..12}; do</span></p>
</div>
<div>
<p class="MsoNormal"><span>./xymon 127.0.0.1 "drop $Host"</span></p>
</div>
<div>
<p class="MsoNormal"><span>done</span></p>
<div>
<p class="MsoNormal"><span> </span></p>
</div>
<div>
<p class="MsoNormal"><span>You also want to remove the
other history info as well but I'd have to go find
that.</span></p>
</div>
<div>
<p class="MsoNormal"><span> </span></p>
</div>
<div>
<p class="MsoNormal"><span>=G=</span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span> </span></p>
<div>
<div>
<p class="MsoNormal"><span>On Tue, Jan 22, 2019 at 12:57
PM Kris Springer <<a
href="mailto:kspringer@innovateteam.com"
moz-do-not-send="true">kspringer@innovateteam.com</a>>
wrote:</span></p>
</div>
<blockquote>
<p class="MsoNormal"><span>Is there a way to drop all host
data for multiple hosts using a
<br>
wildcard? I know how to drop a single host and erase
it's data, but I <br>
have a long list of IP Cameras that I changed in my
hosts file and <br>
instead of dropping each individual hostname I'd like
to drop all hosts <br>
that start with 'Cam'. I attempted this but it didn't
remove anything.<br>
<br>
./xymon 127.0.0.1 "drop Cam*"<br>
<br>
-- <br>
<br>
Kris Springer<br>
<br>
<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank"
moz-do-not-send="true">Xymon@xymon.com</a><br>
<a
href="http://lists.xymon.com/mailman/listinfo/xymon"
target="_blank" moz-do-not-send="true">http://lists.xymon.com/mailman/listinfo/xymon</a></span></p>
</blockquote>
</div>
</blockquote>
<p class="MsoNormal"><span> </span></p>
</div>
This communication is the property of CenturyLink and may contain
confidential or privileged information. Unauthorized use of this
communication is strictly prohibited and may be unlawful. If you
have received this communication in error, please immediately
notify the sender by reply e-mail and destroy all copies of the
communication and any attachments.
</blockquote>
<br>
</body>
</html>