You are here

Mokum Oracle VM Profiler - OVMProf

Last Update: 02/11/2015
 
Mokum Oracle VM Profiler OVMProfMokum's Oracle VM Profiler (OVMProf) is a system-wide profiler for Oracle VM Server Release 3 and above used to collect, display and compare system and cluster configurations. OVMProf is non-intrusive, it simply gathers information using native linux commands. OVMProf can output to one large text file and/or a menu driven web page. With OVMProf, you can easily validate server and cluster configurations, best practices, and operational correctness for new and existing Oracle VM deployments.
OVMProf gathers the following information:
Dom0 Summary
Storage & Disk Summary
Networking Summary
OCFS2 Summary
Oracle VM Agent Summary
Virtual Machine (domU) Configuration Summary
Sysctl Summary
RPM Packages & Patch Summary
Kernel Mods & ulimits Summary
Socket Ports
Chkconfig Summary
Hardware Summary
Cron Job Summary
dmesg & /var/log/messages errors
 
OVMProf Installation, Set-up and Usage:
1- Download OVMProf (ovmprof-v1.2.tar). Complete the form on the right side of this page to download OVMProf.
2- Copy and extract ovmprof-v1.2.tar onto each Oracle VM Server in the /usr/local/sbin directory.
3- Make the ovmprof-v1.2.sh script executable by typing: chmod 755 ovmprof-v1.2.sh.
4- As root, type ovmprof-v1.2.sh -t. Once the script completes, a tar file will be created in the /tmp directory with the following name: /tmp/ovmprof/ovmprof_hostname-date.tar. The tar file contains the following files:
  • agent.txt
  • chkconfig.txt
  • cron.txt
  • disks.txt
  • dmesg.txt
  • general.txt
  • hardware.txt
  • index.html
  • menu.html
  • messages.txt
  • network.txt
  • ocfs2.txt
  • ovs-archer.txt
  • ovssummary.txt
  • sockets.txt
  • software.txt
  • system.txt
  • vmsummary.txt
5- To view an Oracle VM Server's system and cluster configurations, copy and extract the OVMProf tar file, i.e. /tmp/ovmprof/ovmprof_hostname-date.tar on to a workstation and open the index.html file with a Web browser.
 
Create a menu driven web page to display and compare system and cluster configurations:
1- For a menu driven web page, copy each Oracle VM Server's OVMProf /tmp/ovmprof/ovmprof_hostname-date.tar file to directory on a web server, i.e. /var/www/html/ovmprof/
2- Extract the tar file(s) into the directory, i.e. /var/www/html/ovmprof/. The next example shows a directory on an apache web server with three OVMProf tar files as well as the extracted tar file directories, and an index.html file.
.
├── index.html
├── ovmprof_ovs-archer.tar
├── ovmprof_ovs-janeway.tar
├── ovmprof_ovs-kirk.tar
├── ovs-archer
├── ovs-janeway
└── ovs-kirk
3- Create an index.html text file in the /var/www/html/ovmprof directory with the following content:
Note: Change the bold sections below with the names of the extracted tar files from step 2 above (see the above directory tree example, i.e. ovs-archer, ovs-janeway and ovs-kirk are the extracted files).
 
<title>System Information for Oracle VM Servers</title>
Mokum Oracle VM Server Profiler (OVMProf)<br>
<a href=ovs-archer>ovs-archer></a><br>
<a href=ovs-janeway>ovs-janeway></a><br>
<a href=ovs-kirk>ovs-kirk></a><br>
 
OVMProf Syntax & Usage:
ovmprof.sh [OPTION]
Only one option is allowed at a time:
-a : Display to stdout, generate web pages and tar file.
-d : Display to stdout ONLY.
-h : Display this message.
-t : Create just a tar file of the web pages.
-w : Create web pages and master info file ONLY.
Default (no options) is the same as -d.
 
CHANGE LOG:
V2.0 02/11/2015
 
DISCLAIMER: OVMProf ("THE SCRIPT") is provided as is, no warranty, no support. Use the script at your own risk. The script does not write over any system files, unless someone modifies it to do so. ALWAYS TEST SCRIPTS ON A NON-PRODUCTION SYSTEM.