<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    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>
    <pre class="moz-signature" cols="72">Kris Springer


</pre>
    <div class="moz-cite-prefix">On 1/22/19 11:05 AM, Galen Johnson
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJpizT2wobbiWqO9Z0ZZ84mOFj6tPqPqRB2qkoJNrxAG-0=9mA@mail.gmail.com">
      <div dir="ltr">probably need to use a quick command line 'for'
        loop.  Something like:
        <div><br>
        </div>
        <div><span><span>for Host in Cam{1..12}; do</span></span></div>
        <div><span>./xymon 127.0.0.1 "drop $Host"</span></div>
        <div><span>done<br>
          </span>
          <div><br>
          </div>
          <div>You also want to remove the other history info as well
            but I'd have to go find that.</div>
          <div><br>
          </div>
          <div>=G=</div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">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:<br>
        </div>
        <blockquote class="gmail_quote">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"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>