LDL0410X
LDL0410X
TRADEMARKS
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business Machines Corp., registered in many
jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM
trademarks is available on the web at “Copyright and trademark information” at www.ibm.com/legal/copytrade.shtml.
Adobe, the Adobe logo, PostScript, and the PostScript logo are either registered trademarks or trademarks of Adobe Systems
Incorporated in the United States, and/or other countries.
Java and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates.
The registered trademark Linux® is used pursuant to a sublicense from the Linux Foundation, the exclusive licensee of Linus Torvalds,
owner of the mark on a worldwide basis.
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries,
or both.
UNIX is a registered trademark of The Open Group in the United States and other countries.
VMware, the VMware logo, VMware Cloud Foundation, VMware Cloud Foundation Service, VMware vCenter Server, and VMware
vSphere are registered trademarks or trademarks of VMware, Inc. or its subsidiaries in the United States and/or other jurisdictions.
Red Hat®, JBoss®, OpenShift®, Fedora®, Hibernate®, Ansible®, CloudForms®, RHCA®, RHCE®, RHCSA®, Ceph®, and Gluster® are
trademarks or registered trademarks of Red Hat, Inc. or its subsidiaries in the United States and other countries.
Important: These exercises are presented in a virtual lab format. A virtual lab is an interactive
simulation of the original virtual machines. A virtual lab is not an actual virtual machine.
Therefore, your interaction opportunities are restricted to the exercise steps with some minor
variance. You use this lab guide, which walks you through usage and responses for the
components that are taught.
You can run the virtual lab multiple times without restriction.
Uempty
The CAS agent is installed on a database server, and reports to the Guardium collector when a
monitored entity is changed, either in content, ownership, or permisions. CAS runs totally
2
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Verifying the CAS agent installation
Uempty
independently from S-TAP. A system can host a CAS agent without hosting an S-TAP agent. The CAS agent
can be installed, updated, configured, and removed by the GIM.
In this lab, you verify that the CAS agent is installed on your database server and configure it to
monitor a set of operating system and database files based on some predefined templates. Use
the following exercises to configure CAS:
• Verify the CAS agent installation
• Configure CAS monitoring templates and datasources
• View CAS results and change a file
In this exercise, you verify that the CAS agent is installed on the database server. Since the GIM
server is the central manager, perform this exercise on the MA170 user interface.
1. On the MA170 tab, navigate to Manage > Module Installation > Setup by Client.
3
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 1 Verifying the CAS agent installation
Uempty
The Set up by Client pane opens.
4
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 2 Configuring CAS monitoring templates and datasources
Uempty
3. In the filter field, enter cas and verify that the Statuses for CAS and BUNDLE-CAS are
INSTALLED.
Datasources contain information that allow Guardium CAS to connect to a database and the
hosting server.
In this exercise, you view the available templates and create a new host instance definition to
monitor the Db2 server. Since the CAS agent interacts with a collector, you perform this exercise
on the Collector (C200) user interface.
1. In the web browser, click the Collector (C200) tab.
2. Navigate to Harden > Configuration Change Control (CAS Application) > CAS
Template Set Configuration.
5
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 2 Configuring CAS monitoring templates and datasources
Uempty
The CAS Configuration Navigator window opens.
Note: For each supported operating system and database type, Guardium provides
preconfigured, default template sets that can monitor various databases on either UNIX or
Windows platforms. A default template-set is one that you can use as a starting point for any new
template set you define for that template-set type. A template-set type is either an operating
system alone (UNIX or Windows), or a database management system such as Db2, Informix, and
Oracle, which you always qualify by operating system type. Examples are UNIX-Oracle and
Windows-Oracle.
You cannot modify a Guardium default template-set, but you can clone it and modify the cloned
version.
6
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 2 Configuring CAS monitoring templates and datasources
Uempty
A filtered list opens with 3 entries.
4. To view the details of Default Unix/DB2 Template Set: UNX - DB2, select it in the list.
5. Click Edit .
The Monitored Item Template Definitions window opens.
7
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 2 Configuring CAS monitoring templates and datasources
Uempty
6. Review the information that this template monitors. You see four types of items:
– SQL Queries
– OS Scripts
– Files
– File Patterns
8. Go to Harden > Configuration Change Control (CAS Application) > CAS Host
Configuration.
The CAS Configuration Navigator window opens again. This time, it contains a list of database
servers. The database server raptor is listed by its IP address, 192.168.42.201.
8
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 2 Configuring CAS monitoring templates and datasources
Uempty
The Host Instance Definitions window opens.
For any particular CAS host, you use this page to configure one or more templates that CAS
uses to monitor your database server. You can see that a default template for the UNIX
operating system is already added for you and it is linked to a datasource. This template is
labeled UNX - N_A and is not database specific. You see that there are 101 enabled items
monitored.
9
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 2 Configuring CAS monitoring templates and datasources
Uempty
11. To return to the Host Instance Definitions, click Back.
12. Click 101 (101 enabled) item(s) monitored. You see the items which are currently monitored
by the CAS agent on the database server.
13. To return to the Host Instance Definitions, scroll down and click Back.
14. Now you will add a new host instance definition, from the Select-a-Template-Set list, select
Default UNIX/DB2 Template Set v8.0: UNX – DB2 and click Add/Select Datasource.
10
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 2 Configuring CAS monitoring templates and datasources
Uempty
The Datasource Finder opens.
15. Some datasources are already created. To create a new datasource, click New.
Field Value
Name CAS_Lab_DB2
Database Type DB2
Share Datasource select
Save Password select
Login Name db2inst1
Password guardium
Host Name/IP 192.168.42.201
Port 50000
Database Name sample
Schema db2inst1
CAS Database Instance Account db2inst1
CAS Database Instance Directory /home/db2inst1
11
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 2 Configuring CAS monitoring templates and datasources
Uempty
12
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 2 Configuring CAS monitoring templates and datasources
Uempty
17. Scroll down and click Apply.
18. To verify that the datasource can connect, click Test Connection.
You receive a dialog with the message Test Connection was successful for this
database.
20. To return to the Datasource Finder page, scroll down and click Back.
Your new datasource is listed.
21. To add the datasource to the template, ensure that your new datasource is selected and click
Add.
13
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 2 Configuring CAS monitoring templates and datasources
Uempty
Your new datasource and template combination is listed.
22. Your host instance definition is in a state of pending and lists 0 enabled monitored items. To
display the enabled items monitored, Click Refresh .
Your result should look similar to the following figure.
14
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 3 Viewing CAS results and changing a file
Uempty
Exercise 3 Viewing CAS results and changing a
file
Now that CAS monitors defined items, it detects changes in these items and sends this
information to the collector, where you can view it in a report.
In this exercise, you view the CAS reports, change a file, and observe the results of changing the
file.
1. Go to Harden > Reports > CAS Changes.
A window opens with two reports; CAS Change Details and CAS Saved Data.
15
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 3 Viewing CAS results and changing a file
Uempty
2. To restore the termial window, click the application tab labeled root@raptor~.
3. Enter the touch command on one of the files that CAS monitors:
# touch /home/db2inst1/.bashrc
And press Enter.
4. To restore the user interface, click the application tab labeled IBM Guardium (C200) Mozilla
Firefox.
5. To update results, click Configure runtime parameters in the CAS Change Details
report.
The Runtime Parameter Configuration window opens.
16
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
V7.0
Exercises
Exercise 3 Viewing CAS results and changing a file
Uempty
6. In Enter Value for Monitored Item, change the value from % (all items) to %bashrc% (the file you
touched) and click OK.
7. Now observe the Last_Modified column. It reflects that you touched the file.
8. Observe the sample time. In a production environment, you might need to wait up to 10
minutes to observe this change.
17
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
© Copyright IBM Corp. 2023