[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bigsister-general] network check - ignoring some interfaces


Ruzsinszky Attila wrote:
> Hi,
> 
> How can I ignoring some allways-down interfaces?
>
if you use the interface= spec on your network test you can limit the interfaces.

If you start with a ~, you can use regular expressions, which gives you a LOT of
power to select interfaces.

ie: the following will monitor the interfaces named "outside" "inside" and "dmz"
and will ignore all other interfaces. It does this by making use of the regular
expression |, which works a bit like an "or" conditional.

pix	interface=~outside|inside|dmz network


This one will only monitor interfaces containing "/11" or "/12", by making use
of character-ranges. Very useful for cisco switches where interfaces are named
things like Fa0/10.

	interface=~\/1[12]

This one will monitor any interface containing a / followed by a number, as long
as it doesn't contain /11. It does this by using a negative look-ahead to ensure
the \d (which matches any number) doesn't match 11.

	interface=~\/(?!11)\d




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bigsister-general mailing list
suppressed
https://lists.sourceforge.net/lists/listinfo/bigsister-general


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.