From 6c9c5a8ca51db2cf44adddb6ef069335d7a5724c Mon Sep 17 00:00:00 2001 From: Oliver Gorwits Date: Tue, 22 Oct 2013 13:42:56 +0100 Subject: [PATCH] add documentation for async dns and snmpv3 --- .../lib/App/Netdisco/Manual/Configuration.pod | 113 +++++++++++++++--- 1 file changed, 99 insertions(+), 14 deletions(-) diff --git a/Netdisco/lib/App/Netdisco/Manual/Configuration.pod b/Netdisco/lib/App/Netdisco/Manual/Configuration.pod index 617cef76..9a3c1a63 100644 --- a/Netdisco/lib/App/Netdisco/Manual/Configuration.pod +++ b/Netdisco/lib/App/Netdisco/Manual/Configuration.pod @@ -248,8 +248,20 @@ should always include C. For example: Value: List of Strings. Default: C. -A list of read-only SNMP community strings to try on each device. The working -community will be cached in the database. +A list of read-only SNMP community strings to try on each device. This is the +simplest way to configure your SNMPv1 or SNMPv2 community strings. For +example: + + community: + - public + - anotherstring + - mycommunity + +Each is tried in turn when polling the device, and then the working community +string will be cached in the database. + +For fine-grained control over which communities are tried for which devices, +or to set SNMPv3 authentication, see C, below. =head3 C @@ -258,6 +270,80 @@ Value: List of Strings. Default: C. A list of read-write SNMP community strings to try on each device. The working community will be cached in the database. +This is the simplest way to configure SNMPv1 or SNMPv2 community strings. Each +is tried in turn when writing to the device, and then the working community +string will be cached in the database. + +For fine-grained control over which communities are tried for which devices, +or to set SNMPv3 authentication, see C, below. + +=head3 C + +Value: List of Settings Trees. Default: Empty List. + +This setting is used for SNMPv3 authentication configuration, and also +provides an alternative fine-grained control for SNMPv1 and SNMPv2 community +strings. You provide a list of authentication stanzas, and Netdisco will try +each in turn, then cache the one which works for a device. + +Each stanza can be restricted for use only on specific IP prefixes (subnets), +and also limited to read (get) and/or write (set) operations. By default, a +stanza is enabled for all device IPs, for read access only. The "tag" of a +stanza is simply a friendly name used by Netdisco to refer to the +configuration. + + snmp_auth: + - + community: public + - + write: true + communtiy: mycommunity + - + read: false + write: true + community: mycommunity2 + - + tag: v3example + user: netdisco + auth: + pass: netdiscokey + proto: MD5 + priv: + pass: netdiscokey2 + proto: DES + - + tag: v3aclexample + user: netdisco2 + only: + - 192.0.2.0/30 + - 172.20.10.0/24 + - + tag: v2aclexample + community: s3kr1t + read: false + write: true + only: + - 2001:db8::/32 + + +For SNMPv1 and SNMPv2, only the C key is required. You can add +C and/or C restrictions, and an IP restriction using C. +Giving the stanza a C name is optional, but recommended. + +For SNMPv3 the C and C keys are required. You can add C +and/or C restrictions, and an IP restriction using C. Providing +an C section enables the authentication security level. Providing a +C section enables the message encryption security level. + +As per Net-SNMP, the default SNMPv3 authentication security method is MD5, and +the default encryption protocol is DES, with AES or AES256 being common +alternatives. Note that you cannot have C without C. + +On some device platforms SNMPv3 contexts are used to macsuck each VLAN. For +this you usually configure a common context prefix, with Netdisco's default +being "C" (i.e. C, C, etc). Add the C +key to a stanza to override this. + =head3 C Value: Boolean. Default C. @@ -445,6 +531,17 @@ Value: Number. Default: 0. Sets the minimum amount of time in seconds which must elapse between any two arpnip jobs for a device. +=head3 C + +Value: Settings Tree. Default: C + +After arpnip, each found IP will have its DNS name resolved. Similarly on +device discovery, all interface aliases will have their IPs resolved to names. + +This setting controls how many outstanding DNS queries are permitted at any +time. You can also override this setting using the +C environment variable. + =head3 C Value: Boolean. Default: C. @@ -738,18 +835,6 @@ C C -=item * - -C - -=item * - -C - -=item * - -C - =back =cut