| package NetSNMP::agent::default_store; |
| |
| use strict; |
| use warnings; |
| use Carp; |
| |
| require Exporter; |
| require DynaLoader; |
| use AutoLoader; |
| |
| use vars qw(@ISA %EXPORT_TAGS @EXPORT_OK @EXPORT $VERSION $AUTOLOAD); |
| |
| @ISA = qw(Exporter DynaLoader); |
| |
| # Items to export into callers namespace by default. Note: do not export |
| # names by default without a very good reason. Use EXPORT_OK instead. |
| # Do not simply export all your public functions/methods/constants. |
| |
| # This allows declaration use NetSNMP::agent::default_store ':all'; |
| # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK |
| # will save memory. |
| %EXPORT_TAGS = ( 'all' => [ qw( |
| NETSNMP_DS_AGENT_VERBOSE |
| NETSNMP_DS_AGENT_ROLE |
| NETSNMP_DS_AGENT_NO_ROOT_ACCESS |
| NETSNMP_DS_AGENT_AGENTX_MASTER |
| NETSNMP_DS_AGENT_QUIT_IMMEDIATELY |
| NETSNMP_DS_AGENT_DISABLE_PERL |
| NETSNMP_DS_AGENT_NO_CONNECTION_WARNINGS |
| NETSNMP_DS_AGENT_LEAVE_PIDFILE |
| NETSNMP_DS_AGENT_NO_CACHING |
| NETSNMP_DS_AGENT_STRICT_DISMAN |
| NETSNMP_DS_AGENT_DONT_RETAIN_NOTIFICATIONS |
| NETSNMP_DS_AGENT_DONT_LOG_TCPWRAPPERS_CONNECTS |
| NETSNMP_DS_AGENT_SKIPNFSINHOSTRESOURCES |
| NETSNMP_DS_AGENT_PROGNAME |
| NETSNMP_DS_AGENT_X_SOCKET |
| NETSNMP_DS_AGENT_PORTS |
| NETSNMP_DS_AGENT_INTERNAL_SECNAME |
| NETSNMP_DS_AGENT_PERL_INIT_FILE |
| NETSNMP_DS_SMUX_SOCKET |
| NETSNMP_DS_NOTIF_LOG_CTX |
| NETSNMP_DS_AGENT_FLAGS |
| NETSNMP_DS_AGENT_USERID |
| NETSNMP_DS_AGENT_GROUPID |
| NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL |
| NETSNMP_DS_AGENT_AGENTX_TIMEOUT |
| NETSNMP_DS_AGENT_AGENTX_RETRIES |
| NETSNMP_DS_AGENT_X_SOCK_PERM |
| NETSNMP_DS_AGENT_X_DIR_PERM |
| NETSNMP_DS_AGENT_X_SOCK_USER |
| NETSNMP_DS_AGENT_X_SOCK_GROUP |
| NETSNMP_DS_AGENT_CACHE_TIMEOUT |
| NETSNMP_DS_AGENT_INTERNAL_VERSION |
| NETSNMP_DS_AGENT_INTERNAL_SECLEVEL |
| NETSNMP_DS_AGENT_MAX_GETBULKREPEATS |
| NETSNMP_DS_AGENT_MAX_GETBULKRESPONSES |
| ) ] ); |
| |
| @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); |
| |
| @EXPORT = qw( |
| NETSNMP_DS_AGENT_VERBOSE |
| NETSNMP_DS_AGENT_ROLE |
| NETSNMP_DS_AGENT_NO_ROOT_ACCESS |
| NETSNMP_DS_AGENT_AGENTX_MASTER |
| NETSNMP_DS_AGENT_QUIT_IMMEDIATELY |
| NETSNMP_DS_AGENT_DISABLE_PERL |
| NETSNMP_DS_AGENT_NO_CONNECTION_WARNINGS |
| NETSNMP_DS_AGENT_LEAVE_PIDFILE |
| NETSNMP_DS_AGENT_NO_CACHING |
| NETSNMP_DS_AGENT_STRICT_DISMAN |
| NETSNMP_DS_AGENT_DONT_RETAIN_NOTIFICATIONS |
| NETSNMP_DS_AGENT_DONT_LOG_TCPWRAPPERS_CONNECTS |
| NETSNMP_DS_AGENT_SKIPNFSINHOSTRESOURCES |
| NETSNMP_DS_AGENT_PROGNAME |
| NETSNMP_DS_AGENT_X_SOCKET |
| NETSNMP_DS_AGENT_PORTS |
| NETSNMP_DS_AGENT_INTERNAL_SECNAME |
| NETSNMP_DS_AGENT_PERL_INIT_FILE |
| NETSNMP_DS_SMUX_SOCKET |
| NETSNMP_DS_NOTIF_LOG_CTX |
| NETSNMP_DS_AGENT_FLAGS |
| NETSNMP_DS_AGENT_USERID |
| NETSNMP_DS_AGENT_GROUPID |
| NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL |
| NETSNMP_DS_AGENT_AGENTX_TIMEOUT |
| NETSNMP_DS_AGENT_AGENTX_RETRIES |
| NETSNMP_DS_AGENT_X_SOCK_PERM |
| NETSNMP_DS_AGENT_X_DIR_PERM |
| NETSNMP_DS_AGENT_X_SOCK_USER |
| NETSNMP_DS_AGENT_X_SOCK_GROUP |
| NETSNMP_DS_AGENT_CACHE_TIMEOUT |
| NETSNMP_DS_AGENT_INTERNAL_VERSION |
| NETSNMP_DS_AGENT_INTERNAL_SECLEVEL |
| NETSNMP_DS_AGENT_MAX_GETBULKREPEATS |
| NETSNMP_DS_AGENT_MAX_GETBULKRESPONSES |
| ); |
| $VERSION = '5.0502'; |
| |
| sub AUTOLOAD { |
| # This AUTOLOAD is used to 'autoload' constants from the constant() |
| # XS function. |
| |
| my $constname; |
| ($constname = $AUTOLOAD) =~ s/.*:://; |
| croak "&NetSNMP::agent::default_store::constant not defined" if $constname eq 'cons |
| tant'; |
| my ($error, $val) = constant($constname); |
| if ($error) { croak $error; } |
| { |
| no strict 'refs'; |
| # Fixed between 5.005_53 and 5.005_61 |
| #XXX if ($] >= 5.00561) { |
| #XXX *$AUTOLOAD = sub () { $val }; |
| #XXX } |
| #XXX else { |
| *$AUTOLOAD = sub { $val }; |
| #XXX } |
| } |
| goto &$AUTOLOAD; |
| } |
| |
| bootstrap NetSNMP::agent::default_store $VERSION; |
| |
| # Preloaded methods go here. |
| |
| # Autoload methods go after =cut, and are processed by the autosplit program. |
| |
| 1; |
| __END__ |
| |
| =head1 NAME |
| |
| NetSNMP::agent::default_store - Perl extension for Net-SNMP agent default storage |
| |
| =head1 SYNOPSIS |
| |
| use NetSNMP::agent::default_store qw(:all); |
| |
| =head1 DESCRIPTION |
| |
| The NetSNMP::agent::default_store module defines the agent-specific Net-SNMP |
| default storage variables. |
| |
| =head2 EXPORT |
| |
| None by default. |
| |
| =head2 Exportable constants |
| |
| NETSNMP_DS_AGENT_VERBOSE |
| NETSNMP_DS_AGENT_ROLE |
| NETSNMP_DS_AGENT_NO_ROOT_ACCESS |
| NETSNMP_DS_AGENT_AGENTX_MASTER |
| NETSNMP_DS_AGENT_QUIT_IMMEDIATELY |
| NETSNMP_DS_AGENT_DISABLE_PERL |
| NETSNMP_DS_AGENT_NO_CONNECTION_WARNINGS |
| NETSNMP_DS_AGENT_LEAVE_PIDFILE |
| NETSNMP_DS_AGENT_NO_CACHING |
| NETSNMP_DS_AGENT_STRICT_DISMAN |
| NETSNMP_DS_AGENT_DONT_RETAIN_NOTIFICATIONS |
| NETSNMP_DS_AGENT_DONT_LOG_TCPWRAPPERS_CONNECTS |
| NETSNMP_DS_AGENT_SKIPNFSINHOSTRESOURCES |
| NETSNMP_DS_AGENT_PROGNAME |
| NETSNMP_DS_AGENT_X_SOCKET |
| NETSNMP_DS_AGENT_PORTS |
| NETSNMP_DS_AGENT_INTERNAL_SECNAME |
| NETSNMP_DS_AGENT_PERL_INIT_FILE |
| NETSNMP_DS_SMUX_SOCKET |
| NETSNMP_DS_NOTIF_LOG_CTX |
| NETSNMP_DS_AGENT_FLAGS |
| NETSNMP_DS_AGENT_USERID |
| NETSNMP_DS_AGENT_GROUPID |
| NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL |
| NETSNMP_DS_AGENT_AGENTX_TIMEOUT |
| NETSNMP_DS_AGENT_AGENTX_RETRIES |
| NETSNMP_DS_AGENT_X_SOCK_PERM |
| NETSNMP_DS_AGENT_X_DIR_PERM |
| NETSNMP_DS_AGENT_X_SOCK_USER |
| NETSNMP_DS_AGENT_X_SOCK_GROUP |
| NETSNMP_DS_AGENT_CACHE_TIMEOUT |
| NETSNMP_DS_AGENT_INTERNAL_VERSION |
| NETSNMP_DS_AGENT_INTERNAL_SECLEVEL |
| NETSNMP_DS_AGENT_MAX_GETBULKREPEATS |
| NETSNMP_DS_AGENT_MAX_GETBULKRESPONSES |
| |
| |
| NETSNMP_DS_AGENT_VERBOSE |
| NETSNMP_DS_AGENT_ROLE |
| NETSNMP_DS_AGENT_NO_ROOT_ACCESS |
| NETSNMP_DS_AGENT_AGENTX_MASTER |
| NETSNMP_DS_AGENT_QUIT_IMMEDIATELY |
| NETSNMP_DS_AGENT_DISABLE_PERL |
| NETSNMP_DS_AGENT_NO_CONNECTION_WARNINGS |
| NETSNMP_DS_AGENT_LEAVE_PIDFILE |
| NETSNMP_DS_AGENT_NO_CACHING |
| NETSNMP_DS_AGENT_STRICT_DISMAN |
| NETSNMP_DS_AGENT_DONT_RETAIN_NOTIFICATIONS |
| NETSNMP_DS_AGENT_DONT_LOG_TCPWRAPPERS_CONNECTS |
| NETSNMP_DS_AGENT_SKIPNFSINHOSTRESOURCES |
| NETSNMP_DS_AGENT_PROGNAME |
| NETSNMP_DS_AGENT_X_SOCKET |
| NETSNMP_DS_AGENT_PORTS |
| NETSNMP_DS_AGENT_INTERNAL_SECNAME |
| NETSNMP_DS_AGENT_PERL_INIT_FILE |
| NETSNMP_DS_SMUX_SOCKET |
| NETSNMP_DS_NOTIF_LOG_CTX |
| NETSNMP_DS_AGENT_FLAGS |
| NETSNMP_DS_AGENT_USERID |
| NETSNMP_DS_AGENT_GROUPID |
| NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL |
| NETSNMP_DS_AGENT_AGENTX_TIMEOUT |
| NETSNMP_DS_AGENT_AGENTX_RETRIES |
| NETSNMP_DS_AGENT_X_SOCK_PERM |
| NETSNMP_DS_AGENT_X_DIR_PERM |
| NETSNMP_DS_AGENT_X_SOCK_USER |
| NETSNMP_DS_AGENT_X_SOCK_GROUP |
| NETSNMP_DS_AGENT_CACHE_TIMEOUT |
| NETSNMP_DS_AGENT_INTERNAL_VERSION |
| NETSNMP_DS_AGENT_INTERNAL_SECLEVEL |
| |
| |
| NETSNMP_DS_AGENT_VERBOSE |
| NETSNMP_DS_AGENT_ROLE |
| NETSNMP_DS_AGENT_NO_ROOT_ACCESS |
| NETSNMP_DS_AGENT_AGENTX_MASTER |
| NETSNMP_DS_AGENT_QUIT_IMMEDIATELY |
| NETSNMP_DS_AGENT_DISABLE_PERL |
| NETSNMP_DS_AGENT_NO_CONNECTION_WARNINGS |
| NETSNMP_DS_AGENT_LEAVE_PIDFILE |
| NETSNMP_DS_AGENT_NO_CACHING |
| NETSNMP_DS_AGENT_STRICT_DISMAN |
| NETSNMP_DS_AGENT_DONT_RETAIN_NOTIFICATIONS |
| NETSNMP_DS_AGENT_DONT_LOG_TCPWRAPPERS_CONNECTS |
| NETSNMP_DS_AGENT_SKIPNFSINHOSTRESOURCES |
| NETSNMP_DS_AGENT_PROGNAME |
| NETSNMP_DS_AGENT_X_SOCKET |
| NETSNMP_DS_AGENT_PORTS |
| NETSNMP_DS_AGENT_INTERNAL_SECNAME |
| NETSNMP_DS_AGENT_PERL_INIT_FILE |
| NETSNMP_DS_SMUX_SOCKET |
| NETSNMP_DS_NOTIF_LOG_CTX |
| NETSNMP_DS_AGENT_FLAGS |
| NETSNMP_DS_AGENT_USERID |
| NETSNMP_DS_AGENT_GROUPID |
| NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL |
| NETSNMP_DS_AGENT_AGENTX_TIMEOUT |
| NETSNMP_DS_AGENT_AGENTX_RETRIES |
| NETSNMP_DS_AGENT_X_SOCK_PERM |
| NETSNMP_DS_AGENT_X_DIR_PERM |
| NETSNMP_DS_AGENT_X_SOCK_USER |
| NETSNMP_DS_AGENT_X_SOCK_GROUP |
| NETSNMP_DS_AGENT_CACHE_TIMEOUT |
| NETSNMP_DS_AGENT_INTERNAL_VERSION |
| NETSNMP_DS_AGENT_INTERNAL_SECLEVEL |
| |
| |
| NETSNMP_DS_AGENT_VERBOSE |
| NETSNMP_DS_AGENT_ROLE |
| NETSNMP_DS_AGENT_NO_ROOT_ACCESS |
| NETSNMP_DS_AGENT_AGENTX_MASTER |
| NETSNMP_DS_AGENT_QUIT_IMMEDIATELY |
| NETSNMP_DS_AGENT_DISABLE_PERL |
| NETSNMP_DS_AGENT_NO_CONNECTION_WARNINGS |
| NETSNMP_DS_AGENT_LEAVE_PIDFILE |
| NETSNMP_DS_AGENT_NO_CACHING |
| NETSNMP_DS_AGENT_STRICT_DISMAN |
| NETSNMP_DS_AGENT_DONT_RETAIN_NOTIFICATIONS |
| NETSNMP_DS_AGENT_DONT_LOG_TCPWRAPPERS_CONNECTS |
| NETSNMP_DS_AGENT_SKIPNFSINHOSTRESOURCES |
| NETSNMP_DS_AGENT_PROGNAME |
| NETSNMP_DS_AGENT_X_SOCKET |
| NETSNMP_DS_AGENT_PORTS |
| NETSNMP_DS_AGENT_INTERNAL_SECNAME |
| NETSNMP_DS_AGENT_PERL_INIT_FILE |
| NETSNMP_DS_SMUX_SOCKET |
| NETSNMP_DS_NOTIF_LOG_CTX |
| NETSNMP_DS_AGENT_FLAGS |
| NETSNMP_DS_AGENT_USERID |
| NETSNMP_DS_AGENT_GROUPID |
| NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL |
| NETSNMP_DS_AGENT_AGENTX_TIMEOUT |
| NETSNMP_DS_AGENT_AGENTX_RETRIES |
| NETSNMP_DS_AGENT_X_SOCK_PERM |
| NETSNMP_DS_AGENT_X_DIR_PERM |
| NETSNMP_DS_AGENT_X_SOCK_USER |
| NETSNMP_DS_AGENT_X_SOCK_GROUP |
| NETSNMP_DS_AGENT_CACHE_TIMEOUT |
| NETSNMP_DS_AGENT_INTERNAL_VERSION |
| NETSNMP_DS_AGENT_INTERNAL_SECLEVEL |
| |
| |
| NETSNMP_DS_AGENT_VERBOSE |
| NETSNMP_DS_AGENT_ROLE |
| NETSNMP_DS_AGENT_NO_ROOT_ACCESS |
| NETSNMP_DS_AGENT_AGENTX_MASTER |
| NETSNMP_DS_AGENT_QUIT_IMMEDIATELY |
| NETSNMP_DS_AGENT_DISABLE_PERL |
| NETSNMP_DS_AGENT_NO_CONNECTION_WARNINGS |
| NETSNMP_DS_AGENT_LEAVE_PIDFILE |
| NETSNMP_DS_AGENT_NO_CACHING |
| NETSNMP_DS_AGENT_STRICT_DISMAN |
| NETSNMP_DS_AGENT_DONT_RETAIN_NOTIFICATIONS |
| NETSNMP_DS_AGENT_DONT_LOG_TCPWRAPPERS_CONNECTS |
| NETSNMP_DS_AGENT_SKIPNFSINHOSTRESOURCES |
| NETSNMP_DS_AGENT_PROGNAME |
| NETSNMP_DS_AGENT_X_SOCKET |
| NETSNMP_DS_AGENT_PORTS |
| NETSNMP_DS_AGENT_INTERNAL_SECNAME |
| NETSNMP_DS_AGENT_PERL_INIT_FILE |
| NETSNMP_DS_SMUX_SOCKET |
| NETSNMP_DS_NOTIF_LOG_CTX |
| NETSNMP_DS_AGENT_FLAGS |
| NETSNMP_DS_AGENT_USERID |
| NETSNMP_DS_AGENT_GROUPID |
| NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL |
| NETSNMP_DS_AGENT_AGENTX_TIMEOUT |
| NETSNMP_DS_AGENT_AGENTX_RETRIES |
| NETSNMP_DS_AGENT_X_SOCK_PERM |
| NETSNMP_DS_AGENT_X_DIR_PERM |
| NETSNMP_DS_AGENT_X_SOCK_USER |
| NETSNMP_DS_AGENT_X_SOCK_GROUP |
| NETSNMP_DS_AGENT_CACHE_TIMEOUT |
| NETSNMP_DS_AGENT_INTERNAL_VERSION |
| NETSNMP_DS_AGENT_INTERNAL_SECLEVEL |
| |
| |
| |
| |
| NETSNMP_DS_AGENT_VERBOSE |
| NETSNMP_DS_AGENT_ROLE |
| NETSNMP_DS_AGENT_NO_ROOT_ACCESS |
| NETSNMP_DS_AGENT_AGENTX_MASTER |
| NETSNMP_DS_AGENT_QUIT_IMMEDIATELY |
| NETSNMP_DS_AGENT_DISABLE_PERL |
| NETSNMP_DS_AGENT_PROGNAME |
| NETSNMP_DS_AGENT_X_SOCKET |
| NETSNMP_DS_AGENT_PORTS |
| NETSNMP_DS_AGENT_INTERNAL_SECNAME |
| NETSNMP_DS_AGENT_PERL_INIT_FILE |
| NETSNMP_DS_AGENT_FLAGS |
| NETSNMP_DS_AGENT_USERID |
| NETSNMP_DS_AGENT_GROUPID |
| NETSNMP_DS_AGENT_AGENTX_PING_INTERVAL |
| |
| |
| DS_AGENT_AGENTX_MASTER |
| DS_AGENT_AGENTX_PING_INTERVAL |
| DS_AGENT_FLAGS |
| DS_AGENT_GROUPID |
| DS_AGENT_INTERNAL_SECNAME |
| DS_AGENT_NO_ROOT_ACCESS |
| DS_AGENT_PORTS |
| DS_AGENT_PROGNAME |
| DS_AGENT_ROLE |
| DS_AGENT_USERID |
| DS_AGENT_VERBOSE |
| DS_AGENT_X_SOCKET |
| |
| |
| =head1 AUTHOR |
| |
| Wes Hardaker, E<lt>hardaker@users.sourceforge.netE<gt> |
| |
| =head1 SEE ALSO |
| |
| NetSNMP::default_store(3pm), NetSNMP::agent(3pm), perl(1). |
| |
| =cut |