Apache Tomcat 10.1.48 Installation

Create Tomcat user account (Linux)

1
2
# useradd tomcat
# passwd tomcat

Java 11

1
2
3
4
5
6
7
8
9
# tar xzvf openjdk-11.0.2_linux-x64_bin.tar.gz
# mv jdk-11.0.2 /opt/
# chown -fR tomcat:tomcat /opt/jdk-11.0.2

Verify Java
# /opt/jdk-11.0.2/bin/java -version
openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

Apache Tomcat 10.1.48

1
2
3
4
# unzip apache-tomcat-10.1.48.zip
# mv /tmp/apache-tomcat-10.1.48 /opt
# chown -fR tomcat:tomcat /opt/apache-tomcat-10.1.48
# chmod -fR u+x /opt/apache-tomcat-10.1.48/bin

Create systemd service for tomcat

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[/etc/systemd/system/tomcat.service]
[Unit]
Description=Tomcat
After=network.target

[Service]
Type=forking

User=tomcat
Group=tomcat

Environment="JAVA_HOME=/opt/jdk-11.0.2"
Environment="JAVA_OPTS=-Djava.security.egd=file:///dev/urandom"
Environment="CATALINA_BASE=/opt/tomcat"
Environment="CATALINA_HOME=/opt/tomcat"
Environment="CATALINA_PID=/opt/tomcat/temp/tomcat.pid"
Environment="CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC"

ExecStart=/opt/tomcat/bin/startup.sh
ExecStop=/opt/tomcat/shutdown.sh

RestartSec=10
Restart=always

[Install]
WantedBy=multi-user.target

Create tomcat user

1
2
3
4
5
6
7
8
9
10
/opt/apache-tomcat-10.1.48/conf/tomcat-users.xml
...
<!-- user manager can access only manager section -->
<role rolename="manager-gui" />
<user username="manager" password="password" roles="manager-gui" />

<!-- user admin can access manager and admin section both -->
<role rolename="admin-gui" />
<user username="admin" password="password" roles="manager-gui,admin-gui" />
...

Enable remote access tomcat

1
2
3
4
5
6
7
8
9
10
11
[/opt/apache-tomcat-10.1.48/webapps/manager/META-INF/context.xml]
..
<!-- <Valve className="org.apache.catalina.valves.RemoteCIDRValve"
allow="127.0.0.0/8,::1/128" /> -->
..

[/opt/apache-tomcat-10.1.48/webapps/host-manager/META-INF/context.xml]
..
<!-- <Valve className="org.apache.catalina.valves.RemoteCIDRValve"
allow="127.0.0.0/8,::1/128" /> -->
..

Change default port 8080 to 8081

1
2
3
4
5
6
7
8
[/opt/apache-tomcat-10.1.48/conf/server.xml]
...
<Connector port="8081" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
maxParameterCount="1000"
/>
...

Stop / Start tomcat service, using systemctl

1
2
# systemctl daemon-reload
# systemctl enable tomcat --now

ITM Agent Commands

Check ITM agent status (Windows)

1
2
3
4
5
6
7
8
9
10
C:\IBM\ITM\InstallITM>KinCInfo.exe -r
*********** Monday, October 06, 2025 02:03:10 PM ************
User : adadm Group : NA
Host Name : PPWSVADB01 Installer : Ver: 063007190
CandleHome : C:\IBM\ITM
Installitm : C:\IBM\ITM\InstallITM
*************************************************************
Host Prod PID Owner Start Status Task
PPWSVADB01 NT 0011148 NT AUTHORITY\SYSTEM 13:45:13 PM ...Running Primary
PPWSVADB01 IN 0012004 CRDOMAIN\adadm 13:55:55 PM ...Running Manage_Tivoli_Enterprise_Monitoring_Services

show initiators - MSA2060

Show Initiators
1
2
3
4
5
6
7
8
9
10
11
12
13
# show initiators

Waiting for system to finish computing health...
Nickname Discovered Mapped Profile Host Type ID
-------------------------------------------------------------------------
quvmesxi02_s2p0 Yes Yes Standard FC 100008f1eac08821
quvmesxi02_s3p0 Yes Yes Standard FC 100008f1eac078c3
quvmesxi04_s2p0 Yes Yes Standard FC 100008f1eac0887b
quvmesxi04_s3p0 Yes Yes Standard FC 100008f1eac07818
quvmesxi06_s2p0 Yes Yes Standard FC 100008f1eac0883c
quvmesxi06_s3p0 Yes Yes Standard FC 100008f1eac088de
-------------------------------------------------------------------------
Success: Command completed successfully. (2025-05-19 15:28:31)

Log Gathering (snap) - AIX

Clear previous snap content

1
2
3
# snap -r

# snap -r /somewhere/snap

Generate snap

1
2
3
# snap -ac  # default directory: /tmp/ibmsupt/

# snap -ac -d /somewhere/snap

Activate Windows with KMS - Windows

Activate Windows 10

Install KMS client key
1
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
Set KMS machine address
1
2
slmgr /skms kms8.msguides.com
slmgr /skms 172.16.0.99
Activate your Windows
1
slmgr /ato

Log gather - HPE 3PAR 8000

Log gather for support

1
2
3
4
5
6
7
8
9
10
11
showdate
showversion -a
showsys -d
shownode -i -svc
shownode -d
showalert -n
showpd -s
showpd -i
showld -d
showvv -d
showsysmgr

gunzip - Linux

List file content without extract

1
2
3
4
5
6
# file server.log.2024-10-30.9.gz
server.log.2024-10-30.9.gz: gzip (.gz) compressed data

# gunzip -l server.log.2024-10-30.9.gz
compressed uncompressed ratio uncompressed_name
630836 104857679 99.4% server.log.2024-10-30.9