[Xymon] drop multiple hosts with wildcard
Kris Springer
kspringer at innovateteam.com
Tue Jan 22 19:17:38 CET 2019
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?
Kris Springer
On 1/22/19 11:05 AM, Galen Johnson wrote:
> probably need to use a quick command line 'for' loop. Something like:
>
> for Host in Cam{1..12}; do
> ./xymon 127.0.0.1 "drop $Host"
> done
>
> You also want to remove the other history info as well but I'd have to
> go find that.
>
> =G=
>
> On Tue, Jan 22, 2019 at 12:57 PM Kris Springer
> <kspringer at innovateteam.com <mailto:kspringer at innovateteam.com>> wrote:
>
> Is there a way to drop all host data for multiple hosts using a
> wildcard? I know how to drop a single host and erase it's data,
> but I
> have a long list of IP Cameras that I changed in my hosts file and
> instead of dropping each individual hostname I'd like to drop all
> hosts
> that start with 'Cam'. I attempted this but it didn't remove
> anything.
>
> ./xymon 127.0.0.1 "drop Cam*"
>
> --
>
> Kris Springer
>
>
> _______________________________________________
> Xymon mailing list
> Xymon at xymon.com <mailto:Xymon at xymon.com>
> http://lists.xymon.com/mailman/listinfo/xymon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20190122/2cd7003d/attachment.html>
More information about the Xymon
mailing list