summaryrefslogtreecommitdiff
path: root/templates/service/snmp/v3/tsm/local-key/node.def
blob: 4bc3d07bc0c25fdb634640317144142555eeb056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
type: txt
help: Defines the server certificate fingerprint or key-file name.
allowed: if sudo [ -d /etc/snmp/tls/certs ]; then
      sudo ls /etc/snmp/tls/certs 2> /dev/null
    else
      sudo ls /config/snmp/tls/certs 2> /dev/null
    fi
syntax:expression: pattern $VAR(@) "^[0-9A-F]{2}(:[0-9A-F]{2}){19}$" ||
    exec "if sudo [ -f /etc/snmp/tls/certs/$VAR(@) -o -f /config/snmp/tls/certs/$VAR(@) ]; \
      then \
	 exit 0; \
      else \
        exit 1; \
      fi" ; "value can be finger print key or filename in /etc/snmp/tls/certs folder"