TMAegis
Više pravila za db2

TMA-DB2-DISCOVER

Ensure DISCOVER is set to DISABLE

NiskaNivo 2Automatskadb2

Opis

DISCOVER=SEARCH lets the instance answer network discovery requests, advertising instances and databases to anyone on the network. Run as the instance owner (or with sqllib/db2profile sourced) so 'db2 get dbm cfg' reads the instance configuration.

Kako se proverava

Metod provere: Komanda ljuske

shell
out=$(db2 get dbm cfg 2>/dev/null) || exit 1; printf '%s\n' "$out" | awk -F= '/\(DISCOVER\)/ {v=$2; gsub(/[ \t]/, "", v); f=1} END {if (f && (v == "DISABLE")) print "compliant"; else print "noncompliant: " v}'
Očekivani izlaz
compliant

Kako se ispravlja

Metod ispravke: Smernica ili zakrpa infrastrukture

db2 update dbm cfg using DISCOVER DISABLE; then db2stop && db2start

Svojstva

Operativni sistemi
Bilo koji
Oznake
db2databasenetwork
Referenca
CIS IBM Db2 Benchmark - Instance Configuration / Discovery (verify section number for your release)

Proverite ovaj računar

Pokrenite ovo na računaru za koji imate dozvolu za proveru. Skeniranje radi u režimu samo za čitanje.

shell
tmaegis scan --target db2 --level 2