Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

Today I Learned - 2026-07-01: Deep Security/Tomcatのバージョンを確認する

今日学んだことを雑多に書く。

Deep SecurityのバージョンをCLIで確認する

Deep Security Manager の GUI から確認することもできるが、自動化のために調べた。

help.deepsecurity.trendmicro.com

Deep Security Agent

sudo /opt/ds_agent/dsa_query -c "GetPluginVersion" | awk '/PluginVersion.core:/{print $2}'
# 20.0.3-11080

加工前の出力。

sudo /opt/ds_agent/dsa_query -c "GetPluginVersion"
# PluginVersion.1: gsch.ko
# PluginVersion.2: update
# PluginVersion.3: tmufe
# PluginVersion.4: dssp
# PluginVersion.5: core
# PluginVersion.6: am
# PluginVersion.am: 20.0.3-11080
# PluginVersion.core: 20.0.3-11080
# PluginVersion.dssp: 20.0.3-11080
# PluginVersion.gsch.ko: 20.0.3-18530
# PluginVersion.tmufe: 20.0.3-11080
# PluginVersion.update: 20.0.3-11080

Deep Security Manager

sudo /opt/dsm/dsm_c -action versionget -software | grep -E "^[0-9]"
# 20.0.1017

加工前の出力。

sudo /opt/dsm/dsm_c -action versionget -software
# Check status of dsm_s: running
# 20.0.1017
# Complete

Tomcatのバージョンを確認する

{install-dir}/bin/version.sh  | grep "Server version" | sed -E 's/.*Tomcat\///'
# 9.0.74

加工前の出力。

{install-dir}/bin/version.sh
# ...
# Server version: Apache Tomcat/9.0.74
# ...