TCPIP_SNMP_MODULE_CONFIG Structure

C

typedef struct {
bool trapEnable;
bool snmp_trapv2_use;
bool snmpv3_trapv1v2_use;
const char* snmp_bib_file;
TCPIP_SNMP_COMMUNITY_CONFIG * read_community_config;
TCPIP_SNMP_COMMUNITY_CONFIG * write_community_config;
TCPIP_SNMPV3_USM_USER_CONFIG * usm_config;
TCPIP_SNMPV3_TARGET_ENTRY_CONFIG * trap_target_config;
const char* mountPath;
} TCPIP_SNMP_MODULE_CONFIG;

Description

Structure: TCPIP_SNMP_MODULE_CONFIG.

This structure is used to configure SNMP details for runtime configuration.

Members

MembersDescription
trapEnableTrue = agent can send the trap, false = agent shouldn't send the trap.
snmp_trapv2_useTrue = agent uses Trap version v2 and false = uses Tarp version 1.
snmpv3_trapv1v2_useSNMPv3 trap should be true , only if SNMP version is 3.
read_community_configRead-only Community configuration.
write_community_configWrite-only Community configuration.
usm_configSNMPv3 USM configuration.
trap_target_configSNMPv3 trap configuration The SNMP server will access snmp.bib file or other MIB files located under this top directory. No access is possible above this directory. As a good practice to follow, use something like: "/mnt_point/snmp/" to limit an external user access to this only directory in the file system when accessing files.

Remarks

None.