NAME

ADMNetHandler.pm


USAGE

use ADMNetHandler;


DESCRIPTION

ADMLogger is an object-oriented extendable framework for log analysis tools. Many system administrators have a handful of tools that they like to run on their logs daily/weekly/at rotation, etc. ADMLogger attempts to bring them all together by providing a set of common tools for all perl scripts to to maintain a consistency across all programs. It also allows the admin to only run a single program, and for them to focus on the coding of the core of what they need to do - allowing ADMLogger to provide all I/O support, etc.


BUGS

None known.


AUTHORS

Aaron D. Marasco (Aaron@Marascos.net)


LIST OF PUBLIC METHODS

 new
 DNSLookup
 ServiceName


METHODS

new
Constructor

Usage:

 new();

Parameters:

 none

Returns:

 Reference to a ready ADMNetHandler.

DNSLookup
Looks up real hostname from IP (with caching)

Usage:

 DNSLookup($IPAddr);

Parameters:

 $IPAddr - Address to look up (string form)

Returns:

 String - FQDN of IP or numeric IP if not found.

ServiceName
Looks up human readable name for a port/protocol pair.

Usage:

 ServiceName($Pair);

Parameters:

 $Pair - "Port/Protocol" as a string

Returns:

 String - Service name (if found in /etc/services or /etc/services.fake), else same as input.