#
# $Id: HotSaNIC.pm,v 1.2 2002/11/24 18:50:06 tinheap Exp $
#
package HotSaNIC;
use Exporter;
# our ($VERSION, @ISA, @EXPORT);
($VERSION = '$Revision: 1.2 $') =~ s/.*(\d+\.\d+).*/$1/;
@ISA = qw(Exporter);
@EXPORT = qw (
snmp_sysbulk
snmp_sysquery
get_module_name
get_config
read_settings
check_config
strip_unwanted
identify_os_type
parse_line
get_diagram_properties
opt2arg
arg2opt
check_args
dupe_control
convert_units
);
######################################################################
#
# control function to make sure that a module is running only once
#
# Usage:
# dupe_control($what,$module-name,$message);
#
# $what:
# start -> call this method at the head of a module to touch the
# dupe-detection checkfile.
# stop -> remove checkfile and exit normally.
# warn -> print $message as warning and continue execution.
# die -> remove checkfile and stop process with error.
#
# The given message will be preceded with a timestamp (in seconds
# since 1970) and the module-name:
#
#