1default_store(3)      User Contributed Perl Documentation     default_store(3)
2
3
4

NAME

6       NetSNMP::default_store - Perl extension for Net-SNMP generic storage of
7       global data
8

SYNOPSIS

10         use NetSNMP::default_store qw(:all);
11         $port = netsnmp_ds_get_int(NETSNMP_DS_LIBRARY_ID, DS_LIB_DEFAULT_PORT);
12         netsnmp_ds_set_int(NETSNMP_DS_LIBRARY_ID, DS_LIB_DEFAULT_PORT, 161);
13

DESCRIPTION

15       This module is a wrapper around the net-snmp default store routines.
16       See the net-snmp default_store manual page for details on what the
17       various functions do and the values that can be set/retrieved.
18
19   EXPORT
20       None by default.
21
22   Exportable constants
23                                          NETSNMP_DS_MAX_IDS
24                                          NETSNMP_DS_MAX_SUBIDS
25                                          NETSNMP_DS_LIBRARY_ID
26                                          NETSNMP_DS_APPLICATION_ID
27                                          NETSNMP_DS_TOKEN_ID
28                                          NETSNMP_DS_LIB_MIB_ERRORS
29                                          NETSNMP_DS_LIB_SAVE_MIB_DESCRS
30                                          NETSNMP_DS_LIB_MIB_COMMENT_TERM
31                                          NETSNMP_DS_LIB_MIB_PARSE_LABEL
32                                          NETSNMP_DS_LIB_DUMP_PACKET
33                                          NETSNMP_DS_LIB_LOG_TIMESTAMP
34                                          NETSNMP_DS_LIB_DONT_READ_CONFIGS
35                                          NETSNMP_DS_LIB_MIB_REPLACE
36                                          NETSNMP_DS_LIB_PRINT_NUMERIC_ENUM
37                                          NETSNMP_DS_LIB_PRINT_NUMERIC_OIDS
38                                          NETSNMP_DS_LIB_DONT_BREAKDOWN_OIDS
39                                          NETSNMP_DS_LIB_ALARM_DONT_USE_SIG
40                                          NETSNMP_DS_LIB_PRINT_FULL_OID
41                                          NETSNMP_DS_LIB_QUICK_PRINT
42                                          NETSNMP_DS_LIB_RANDOM_ACCESS
43                                          NETSNMP_DS_LIB_REGEX_ACCESS
44                                          NETSNMP_DS_LIB_DONT_CHECK_RANGE
45                                          NETSNMP_DS_LIB_NO_TOKEN_WARNINGS
46                                          NETSNMP_DS_LIB_NUMERIC_TIMETICKS
47                                          NETSNMP_DS_LIB_ESCAPE_QUOTES
48                                          NETSNMP_DS_LIB_REVERSE_ENCODE
49                                          NETSNMP_DS_LIB_PRINT_BARE_VALUE
50                                          NETSNMP_DS_LIB_EXTENDED_INDEX
51                                          NETSNMP_DS_LIB_PRINT_HEX_TEXT
52                                          NETSNMP_DS_LIB_PRINT_UCD_STYLE_OID
53                                          NETSNMP_DS_LIB_READ_UCD_STYLE_OID
54                                          NETSNMP_DS_LIB_HAVE_READ_PREMIB_CONFIG
55                                          NETSNMP_DS_LIB_HAVE_READ_CONFIG
56                                          NETSNMP_DS_LIB_QUICKE_PRINT
57                                          NETSNMP_DS_LIB_DONT_PRINT_UNITS
58                                          NETSNMP_DS_LIB_NO_DISPLAY_HINT
59                                          NETSNMP_DS_LIB_16BIT_IDS
60                                          NETSNMP_DS_LIB_DONT_PERSIST_STATE
61                                          NETSNMP_DS_LIB_2DIGIT_HEX_OUTPUT
62                                          NETSNMP_DS_LIB_IGNORE_NO_COMMUNITY
63                                          NETSNMP_DS_LIB_DISABLE_PERSISTENT_LOAD
64                                          NETSNMP_DS_LIB_DISABLE_PERSISTENT_SAVE
65                                          NETSNMP_DS_LIB_APPEND_LOGFILES
66                                          NETSNMP_DS_LIB_MIB_WARNINGS
67                                          NETSNMP_DS_LIB_SECLEVEL
68                                          NETSNMP_DS_LIB_SNMPVERSION
69                                          NETSNMP_DS_LIB_DEFAULT_PORT
70                                          NETSNMP_DS_LIB_OID_OUTPUT_FORMAT
71                                          NETSNMP_DS_LIB_STRING_OUTPUT_FORMAT
72                                          NETSNMP_DS_LIB_HEX_OUTPUT_LENGTH
73                                          NETSNMP_DS_LIB_SERVERSENDBUF
74                                          NETSNMP_DS_LIB_SERVERRECVBUF
75                                          NETSNMP_DS_LIB_CLIENTSENDBUF
76                                          NETSNMP_DS_LIB_CLIENTRECVBUF
77                                          NETSNMP_DS_SNMP_VERSION_1
78                                          NETSNMP_DS_SNMP_VERSION_2c
79                                          NETSNMP_DS_SNMP_VERSION_3
80                                          NETSNMP_DS_LIB_SECNAME
81                                          NETSNMP_DS_LIB_CONTEXT
82                                          NETSNMP_DS_LIB_PASSPHRASE
83                                          NETSNMP_DS_LIB_AUTHPASSPHRASE
84                                          NETSNMP_DS_LIB_PRIVPASSPHRASE
85                                          NETSNMP_DS_LIB_OPTIONALCONFIG
86                                          NETSNMP_DS_LIB_APPTYPE
87                                          NETSNMP_DS_LIB_COMMUNITY
88                                          NETSNMP_DS_LIB_PERSISTENT_DIR
89                                          NETSNMP_DS_LIB_CONFIGURATION_DIR
90                                          NETSNMP_DS_LIB_SECMODEL
91                                          NETSNMP_DS_LIB_MIBDIRS
92                                          NETSNMP_DS_LIB_OIDSUFFIX
93                                          NETSNMP_DS_LIB_OIDPREFIX
94                                          NETSNMP_DS_LIB_CLIENT_ADDR
95                                          NETSNMP_DS_LIB_TEMP_FILE_PATTERN
96                                          NETSNMP_DS_LIB_AUTHMASTERKEY
97                                          NETSNMP_DS_LIB_PRIVMASTERKEY
98                                          NETSNMP_DS_LIB_AUTHLOCALIZEDKEY
99                                          NETSNMP_DS_LIB_PRIVLOCALIZEDKEY
100                                          NETSNMP_DS_LIB_APPTYPES
101                                          NETSNMP_DS_LIB_KSM_KEYTAB
102                                          NETSNMP_DS_LIB_KSM_SERVICE_NAME
103                                          NETSNMP_DS_LIB_SBSM_LOCAL_PWD
104
105   Exportable functions
106         int netsnmp_ds_get_boolean(int storeid, int which)
107         int netsnmp_ds_get_int(int storeid, int which)
108         char *netsnmp_ds_get_string(int storeid, int which)
109         void *netsnmp_ds_get_void(int storeid, int which)
110         int netsnmp_ds_register_config(unsigned char type, const char *ftype, const char *token,
111                              int storeid, int which)
112         int netsnmp_ds_register_premib(unsigned char type, const char *ftype, const char *token,
113                              int storeid, int which)
114         int netsnmp_ds_set_boolean(int storeid, int which, int value)
115         int netsnmp_ds_set_int(int storeid, int which, int value)
116         int netsnmp_ds_set_string(int storeid, int which, const char *value)
117         int netsnmp_ds_set_void(int storeid, int which, void *value)
118         void netsnmp_ds_shutdown(void)
119         int netsnmp_ds_toggle_boolean(int storeid, int which)
120

AUTHOR

122       Wes Hardaker, hardaker@users.sourceforge.net
123

SEE ALSO

125       perl(1), default_store(3).
126
127
128
129perl v5.12.2                      2009-04-23                  default_store(3)
Impressum