SNMP.CONF(5) Net-SNMP SNMP.CONF(5) (NAME) snmp.conf - Net-SNMP (DESCRIPTION) Net-SNMP . (snmp.conf snmp.local.conf) snmp_config(5) . /etc/snmp/snmp.conf . ~/.snmp/snmp.conf . (HOST-SPECIFIC FILES) (transport name) PATH/hosts/HOST.conf . SNMPv2c ~/.snmp/hosts/NAME.conf : defVersion 2c NAME SNMPv2c . transport . . . "dontLoadHostConfig true" snmp.conf . (COMMAND-LINE OPTIONS) Net-SNMP <<-->> . --dontLoadHostConfig=true . (IMPORTANT NOTE) ( ) . . Net-SNMP . snmpcmd(1) . . (CLIENT BEHAVIOUR) defDomain application domain (transport domain) . defTarget application domain target . defaultPort PORT UDP SNMP . AGENT . snmpcmd(1) . . transport HOSTSPECIFIER hosts . hosts/foo.conf foo . foo.conf snmp.conf transport . : transport tcp:foo.example.com:9876 hosts/foo.conf foo ( snmpget) TCP foo.example.com . defVersion (1|2c|3) SNMP . -v . defCommunity STRING (community) SNMPv1 SNMPv2c . -c . alias NAME DEFINITION NAME . alias: . "alias here udp:127.0.0.1:6161" "udp:127.0.0.1:6161" "alias:here" . IPv6 . dumpPacket yes (hex dump) SNMP . -d . doDebugging (1|0) . debugTokens TOKEN[,TOKEN...] doDebugging . -D . debugLogLevel (emerg|alert|crit|err|warning|notice|info|debug) . debug . 16bitIDs yes (requestID) . SNMP Net-SNMP . (agent) 2^16 - . clientaddr [:] SNMP . snmpcmd(1) . snmpd (notifications) . clientaddrUsesPort no clientaddr . clientaddr SNMP "yes" . IPv4 IPv6 . clientRecvBuf INTEGER SNMP . clientRecvBuf . . setsockopt() . clientSendBuf INTEGER clientRecvBuf SNMP . noRangeCheck yes varbind MIB OID . -Ir . snmpset snmp_add_var() -NULL . noTokenWarnings . reverseEncodeBER (1|yes|true|0|no|false) SNMP . PDU . () . - . dontLoadHostConfig (1|yes|true|0|no|false) . "true" . retries INTEGER . timeout INTEGER () . SNMPv1/SNMPv2c (SNMPv1/SNMPv2c SETTINGS) disableSNMPv1 (1|yes|true|0|no|false) disableSNMPv2c (1|yes|true|0|no|false) . . SNMPv3 (SNMPv3 SETTINGS) disableSNMPv3 (1|yes|true|0|no|false) . . defSecurityName STRING SNMPv3 . -u . defSecurityLevel noAuthNoPriv|authNoPriv|authPriv SNMPv3 . -l . noAuthNoPriv . : authPriv OpenSSL . defPassphrase STRING defAuthPassphrase STRING defPrivPassphrase STRING SNMPv3 . -A -X . defPassphrase / . defAuthType MD5|SHA|SHA-512|SHA-384|SHA-256|SHA-224 defPrivType DES|AES SNMPv3 . -a -x . SNMPv3 MD5 DES . : OpenSSL MD5 . SHA . defContext STRING (context) SNMPv3 . -n . ( "") . defSecurityModel STRING SNMPv3 . "usm" SNMPv3 . defAuthMasterKey 0xHEXSTRING defPrivMasterKey 0xHEXSTRING defAuthLocalizedKey 0xHEXSTRING defPrivLocalizedKey 0xHEXSTRING () SNMPv3 . SNMPv3 defPassphrase . ( ). -3m -3M -3k -3K . (localized keys) () SNMP . ( : MD5=16 SHA1=20 : DES=16 ( IV ) AES=16 ). sshtosnmpsocket PATH sshtosnmp ( snmpd) ssh sshtosnmp . sshtosnmpsocketperms MODE [OWNER [GROUP]] (mode) sshtosnmp ( snmpd) ssh sshtosnmp . SSH SNMP / ( VACM TSM). sshusername NAME SSH . sshpubkey FILE . sshprivkey FILE . (SERVER BEHAVIOUR) persistentDir DIRECTORY snmpd snmptrapd . /var/net-snmp . noPersistentLoad yes noPersistentSave yes . : SNMPv3 ( ) . . tempFilePattern PATTERN . mkstemp() mktemp() . "/tmp/snmpdXXXXXX" . serverRecvBuf INTEGER SNMP . serverRecvBuf . . setsockopt() . serverSendBuf INTEGER serverRecvBuf SNMP . sourceFilterType none|acceptlist|blocklist sourceFilterAddress . none . sourceFilterAddress ADDRESS . sourceFilterType . MIB (MIB HANDLING) mibdirs DIRLIST MIB . -M - snmpcmd(1) . MIBDIRS -M . mibs MIBLIST MIB ( ) . -m - snmpcmd(1) . MIBS -m . mibfile FILE MIB () mibs ( ) . MIBFILES . showMibErrors (1|yes|true|0|no|false) MIB . commentToEOL (1|yes|true|0|no|false) MIB . MIB ASN.1 <<-->> . MIB ( ) . strictCommentTerm . . mibAllowUnderline (1|yes|true|0|no|false) (underline) MIB . MIB ( ) . mibWarningLevel INTEGER MIB. (OUTPUT CONFIGURATION) logTimestamp (1|yes|true|0|no|false) (timestamp) / . . . printNumericEnums (1|yes|true|0|no|false) -Oe. printNumericOids (1|yes|true|0|no|false) -On. dontBreakdownOids (1|yes|true|0|no|false) -Ob. escapeQuotes (1|yes|true|0|no|false) -OE. quickPrinting (1|yes|true|0|no|false) -Oq. printValueOnly (1|yes|true|0|no|false) -Ov. dontPrintUnits (1|yes|true|0|no|false) -OU. numericTimeticks (1|yes|true|0|no|false) -Ot. printHexText (1|yes|true|0|no|false) -OT. hexOutputLength integer . . . suffixPrinting (0|1|2) -Os -OS. oidOutputFormat (1|2|3|4|5|6) -O : -Os=1, -OS=2, -Of=3, -On=4, -Ou=5. -O . extendedIndex (1|yes|true|0|no|false) -OX. noDisplayHint (1|yes|true|0|no|false) DISPLAY-HINT . -Ih. outputPrecision PRECISION PRECISION . snmpcmd(1) . -Op ( ). (FILES) : /etc/snmp/snmp.conf /etc/snmp/snmp.local.conf : $HOME/.snmp/snmp.conf $HOME/.snmp/snmp.local.conf : /etc/snmp/hosts/HOSTNAME.conf $HOME/.snmp/hosts/HOSTNAME.conf (SEE ALSO) snmp_config(5), netsnmp_config_api(3), snmpcmd(1). V5.9.5.2 21 Apr 2010 SNMP.CONF(5)