[rtg] Polling all interfaces, even interfaces that is down when building the list
Brian T. O'Neill
btoneill at misplaced.net
Thu Apr 5 09:55:24 EDT 2007
In the targetmaker script it checks the status of the interface, up or
down, you can remove that check, and it will add all interfaces.
If you look in StandardIf.pl and ExtendedIf.pl you'll find the following
line:
if ( $ifadminstatus == 1 && $ifoperstatus == 1 && $reserved == 0 ) {
That is checking to see if the port is admin down, if it's up, and if
it's a port we don't want to check. If you remove the ifoperstatus from
the check, you'll get all interfaces if they are admin up and not
reserved, this way you could still leave out some ports if you want by
having them set to admin down.
Make sense?
Brian
Quoting Anders Olausson (spacedump at burken.nu) from :
> Hi,
>
> I read something about that rtg could mess up if it polled interfaces that was down and such a while ago.
> I think what I read was a bit old though.
>
> Anyhow, is there any problem doing this with the latest version from CVS today?
>
> The reason for why I want to do this is because I need to track all ports since we don't know when a cable is plugged in and traffic
> starts flowing on the interface.
>
> It's ~200 ports that we need to monitor, the targetmaker doesn't work for some reason. (It fails, can't find all ports in the switch
> or dies because it tries to find one that doesn't exist) so we have to configure the targets manually.
>
> Regards
> Anders
>
> _______________________________________________
> RTG mailing list
> RTG at lists.grdata.com
> http://lists.grdata.com/mailman/listinfo/rtg
--
btoneill at misplaced.net
****************************************************************************
UNIX is simple and coherent, but it takes a genius (or at any rate a
programmer) to understand and appreciate the simplicity." - Dennis Ritchie
****************************************************************************
More information about the RTG
mailing list