default_store



default_store

NAME
SYNOPSIS
DESCRIPTION
AUTHOR
SEE ALSO

NAME

NetSNMP::default_store − Perl extension for Net−SNMP generic storage of global data

SYNOPSIS

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

DESCRIPTION

This module is a wrapper around the net-snmp default store routines. See the net-snmp default_store manual page for details on what the various functions do and the values that can be set/retrieved.

EXPORT
None by default.

Exportable constants

                                   NETSNMP_DS_MAX_IDS
                                   NETSNMP_DS_MAX_SUBIDS
                                   NETSNMP_DS_LIBRARY_ID
                                   NETSNMP_DS_APPLICATION_ID
                                   NETSNMP_DS_TOKEN_ID
                                   NETSNMP_DS_LIB_MIB_ERRORS
                                   NETSNMP_DS_LIB_SAVE_MIB_DESCRS
                                   NETSNMP_DS_LIB_MIB_COMMENT_TERM
                                   NETSNMP_DS_LIB_MIB_PARSE_LABEL
                                   NETSNMP_DS_LIB_DUMP_PACKET
                                   NETSNMP_DS_LIB_LOG_TIMESTAMP
                                   NETSNMP_DS_LIB_DONT_READ_CONFIGS
                                   NETSNMP_DS_LIB_MIB_REPLACE
                                   NETSNMP_DS_LIB_PRINT_NUMERIC_ENUM
                                   NETSNMP_DS_LIB_PRINT_NUMERIC_OIDS
                                   NETSNMP_DS_LIB_DONT_BREAKDOWN_OIDS
                                   NETSNMP_DS_LIB_ALARM_DONT_USE_SIG
                                   NETSNMP_DS_LIB_PRINT_FULL_OID
                                   NETSNMP_DS_LIB_QUICK_PRINT
                                   NETSNMP_DS_LIB_RANDOM_ACCESS
                                   NETSNMP_DS_LIB_REGEX_ACCESS
                                   NETSNMP_DS_LIB_DONT_CHECK_RANGE
                                   NETSNMP_DS_LIB_NO_TOKEN_WARNINGS
                                   NETSNMP_DS_LIB_NUMERIC_TIMETICKS
                                   NETSNMP_DS_LIB_ESCAPE_QUOTES
                                   NETSNMP_DS_LIB_REVERSE_ENCODE
                                   NETSNMP_DS_LIB_PRINT_BARE_VALUE
                                   NETSNMP_DS_LIB_EXTENDED_INDEX
                                   NETSNMP_DS_LIB_PRINT_HEX_TEXT
                                   NETSNMP_DS_LIB_PRINT_UCD_STYLE_OID
                                   NETSNMP_DS_LIB_READ_UCD_STYLE_OID
                                   NETSNMP_DS_LIB_HAVE_READ_PREMIB_CONFIG
                                   NETSNMP_DS_LIB_HAVE_READ_CONFIG
                                   NETSNMP_DS_LIB_QUICKE_PRINT
                                   NETSNMP_DS_LIB_DONT_PRINT_UNITS
                                   NETSNMP_DS_LIB_NO_DISPLAY_HINT
                                   NETSNMP_DS_LIB_16BIT_IDS
                                   NETSNMP_DS_LIB_DONT_PERSIST_STATE
                                   NETSNMP_DS_LIB_2DIGIT_HEX_OUTPUT
                                   NETSNMP_DS_LIB_IGNORE_NO_COMMUNITY
                                   NETSNMP_DS_LIB_DISABLE_PERSISTENT_LOAD
                                   NETSNMP_DS_LIB_DISABLE_PERSISTENT_SAVE
                                   NETSNMP_DS_LIB_APPEND_LOGFILES
                                   NETSNMP_DS_LIB_MIB_WARNINGS
                                   NETSNMP_DS_LIB_SECLEVEL
                                   NETSNMP_DS_LIB_SNMPVERSION
                                   NETSNMP_DS_LIB_DEFAULT_PORT
                                   NETSNMP_DS_LIB_OID_OUTPUT_FORMAT
                                   NETSNMP_DS_LIB_STRING_OUTPUT_FORMAT
                                   NETSNMP_DS_LIB_HEX_OUTPUT_LENGTH
                                   NETSNMP_DS_LIB_SERVERSENDBUF
                                   NETSNMP_DS_LIB_SERVERRECVBUF
                                   NETSNMP_DS_LIB_CLIENTSENDBUF
                                   NETSNMP_DS_LIB_CLIENTRECVBUF
                                   NETSNMP_DS_SNMP_VERSION_1
                                   NETSNMP_DS_SNMP_VERSION_2c
                                   NETSNMP_DS_SNMP_VERSION_3
                                   NETSNMP_DS_LIB_SECNAME
                                   NETSNMP_DS_LIB_CONTEXT
                                   NETSNMP_DS_LIB_PASSPHRASE
                                   NETSNMP_DS_LIB_AUTHPASSPHRASE
                                   NETSNMP_DS_LIB_PRIVPASSPHRASE
                                   NETSNMP_DS_LIB_OPTIONALCONFIG
                                   NETSNMP_DS_LIB_APPTYPE
                                   NETSNMP_DS_LIB_COMMUNITY
                                   NETSNMP_DS_LIB_PERSISTENT_DIR
                                   NETSNMP_DS_LIB_CONFIGURATION_DIR
                                   NETSNMP_DS_LIB_SECMODEL
                                   NETSNMP_DS_LIB_MIBDIRS
                                   NETSNMP_DS_LIB_OIDSUFFIX
                                   NETSNMP_DS_LIB_OIDPREFIX
                                   NETSNMP_DS_LIB_CLIENT_ADDR
                                   NETSNMP_DS_LIB_TEMP_FILE_PATTERN
                                   NETSNMP_DS_LIB_AUTHMASTERKEY
                                   NETSNMP_DS_LIB_PRIVMASTERKEY
                                   NETSNMP_DS_LIB_AUTHLOCALIZEDKEY
                                   NETSNMP_DS_LIB_PRIVLOCALIZEDKEY
                                   NETSNMP_DS_LIB_APPTYPES
                                   NETSNMP_DS_LIB_KSM_KEYTAB
                                   NETSNMP_DS_LIB_KSM_SERVICE_NAME
                                   NETSNMP_DS_LIB_SBSM_LOCAL_PWD

Exportable functions

  int netsnmp_ds_get_boolean(int storeid, int which)
  int netsnmp_ds_get_int(int storeid, int which)
  char *netsnmp_ds_get_string(int storeid, int which)
  void *netsnmp_ds_get_void(int storeid, int which)
  int netsnmp_ds_register_config(unsigned char type, const char *ftype, const char *token,
                       int storeid, int which)
  int netsnmp_ds_register_premib(unsigned char type, const char *ftype, const char *token,
                       int storeid, int which)
  int netsnmp_ds_set_boolean(int storeid, int which, int value)
  int netsnmp_ds_set_int(int storeid, int which, int value)
  int netsnmp_ds_set_string(int storeid, int which, const char *value)
  int netsnmp_ds_set_void(int storeid, int which, void *value)
  void netsnmp_ds_shutdown(void)
  int netsnmp_ds_toggle_boolean(int storeid, int which)

AUTHOR

Wes Hardaker, hardaker@users.sourceforge.net

SEE ALSO

perl(1), default_store(3).






Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.