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_CLIENT_ADDR_USES_PORT
67                                          NETSNMP_DS_LIB_MIB_WARNINGS
68                                          NETSNMP_DS_LIB_SECLEVEL
69                                          NETSNMP_DS_LIB_SNMPVERSION
70                                          NETSNMP_DS_LIB_DEFAULT_PORT
71                                          NETSNMP_DS_LIB_OID_OUTPUT_FORMAT
72                                          NETSNMP_DS_LIB_STRING_OUTPUT_FORMAT
73                                          NETSNMP_DS_LIB_HEX_OUTPUT_LENGTH
74                                          NETSNMP_DS_LIB_SERVERSENDBUF
75                                          NETSNMP_DS_LIB_SERVERRECVBUF
76                                          NETSNMP_DS_LIB_CLIENTSENDBUF
77                                          NETSNMP_DS_LIB_CLIENTRECVBUF
78                                          NETSNMP_DS_SNMP_VERSION_1
79                                          NETSNMP_DS_SNMP_VERSION_2c
80                                          NETSNMP_DS_SNMP_VERSION_3
81                                          NETSNMP_DS_LIB_SECNAME
82                                          NETSNMP_DS_LIB_CONTEXT
83                                          NETSNMP_DS_LIB_PASSPHRASE
84                                          NETSNMP_DS_LIB_AUTHPASSPHRASE
85                                          NETSNMP_DS_LIB_PRIVPASSPHRASE
86                                          NETSNMP_DS_LIB_OPTIONALCONFIG
87                                          NETSNMP_DS_LIB_APPTYPE
88                                          NETSNMP_DS_LIB_COMMUNITY
89                                          NETSNMP_DS_LIB_PERSISTENT_DIR
90                                          NETSNMP_DS_LIB_CONFIGURATION_DIR
91                                          NETSNMP_DS_LIB_SECMODEL
92                                          NETSNMP_DS_LIB_MIBDIRS
93                                          NETSNMP_DS_LIB_OIDSUFFIX
94                                          NETSNMP_DS_LIB_OIDPREFIX
95                                          NETSNMP_DS_LIB_CLIENT_ADDR
96                                          NETSNMP_DS_LIB_TEMP_FILE_PATTERN
97                                          NETSNMP_DS_LIB_AUTHMASTERKEY
98                                          NETSNMP_DS_LIB_PRIVMASTERKEY
99                                          NETSNMP_DS_LIB_AUTHLOCALIZEDKEY
100                                          NETSNMP_DS_LIB_PRIVLOCALIZEDKEY
101                                          NETSNMP_DS_LIB_APPTYPES
102                                          NETSNMP_DS_LIB_KSM_KEYTAB
103                                          NETSNMP_DS_LIB_KSM_SERVICE_NAME
104                                          NETSNMP_DS_LIB_SBSM_LOCAL_PWD
105
106   Exportable functions
107         int netsnmp_ds_get_boolean(int storeid, int which)
108         int netsnmp_ds_get_int(int storeid, int which)
109         char *netsnmp_ds_get_string(int storeid, int which)
110         void *netsnmp_ds_get_void(int storeid, int which)
111         int netsnmp_ds_register_config(unsigned char type, const char *ftype, const char *token,
112                              int storeid, int which)
113         int netsnmp_ds_register_premib(unsigned char type, const char *ftype, const char *token,
114                              int storeid, int which)
115         int netsnmp_ds_set_boolean(int storeid, int which, int value)
116         int netsnmp_ds_set_int(int storeid, int which, int value)
117         int netsnmp_ds_set_string(int storeid, int which, const char *value)
118         int netsnmp_ds_set_void(int storeid, int which, void *value)
119         void netsnmp_ds_shutdown(void)
120         int netsnmp_ds_toggle_boolean(int storeid, int which)
121

AUTHOR

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

SEE ALSO

126       perl(1), default_store(3).
127
128
129
130perl v5.10.1                      2017-03-22                  default_store(3)
Impressum