TMA-DB2-DISCOVER
Ensure DISCOVER is set to DISABLE
DüşükDüzey 2Otomatikdb2
Açıklama
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.
Nasıl denetlenir
Denetim yöntemi: Kabuk komutu
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}'- Beklenen çıktı
compliant
Nasıl düzeltilir
Düzeltme yöntemi: Kılavuz veya altyapı yaması
db2 update dbm cfg using DISCOVER DISABLE; then db2stop && db2start
Özellikler
- İşletim sistemleri
- Herhangi biri
- Etiketler
- db2databasenetwork
- Referans
- CIS IBM Db2 Benchmark - Instance Configuration / Discovery (verify section number for your release)
Bu ana makineyi denetle
Bunu denetleme izniniz olan bir makinede çalıştırın. Tarama salt okunurdur.
shell
tmaegis scan --target db2 --level 2