Book Image

VMware vCloud Director Cookbook

By : Daniel Langenhan
Book Image

VMware vCloud Director Cookbook

By: Daniel Langenhan

Overview of this book

VMware vCloud Director is an enterprise software solution that enables the building of secure, private clouds by pooling together infrastructure resources into virtual data centers. The tool enables self-service via a web interface to reduce the management overhead and offers amazing possibilities for production and development environments. Thus, the tool will ensure efficient management of resources with data center efficiency and business agility. "VMWare VCloud Director Cookbook" will cover a lot of ground, ranging from easy to complex recipes. It will not only dive into networks, data-stores, and vApps, but also cover vCloud design improvements, troubleshooting, and the vCloud API. "VMWare VCloud Director Cookbook" is split into different sections, each of which deals with a special topic in vCloud - from networks, to vApps, to storage and design. This book contains over 80 recipes with the difficulty levels ranging from simple to very advanced. You will learn how to automate vCloud easily and quickly with the API, and also learn how to isolate a vApp and still fully access it without risking the network. Design considerations that need to be addressed while deploying the vCloud and more will also be looked into. "VMWare VCloud Director Cookbook" will make your life as an admin a lot easier by providing you with some good recipes that have been proven to work in small to large enterprises.
Table of Contents (16 chapters)
VMware vCloud Director Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Appendix
Index

Working with vCloud logfiles


In this recipe we will see how to access the logfiles and make sense of its contents.

Getting ready

We just need a working vCloud environment.

How to do it...

We will first see how to access a logfile and then we will go into the specifics of the two most important files, followed by a look at the vCNS logfiles.

Working with a vCD cell logfile

  1. Log in to the vCloud Cell.

  2. Gain root access, if you haven't already.

  3. Run the following command:

    less /opt/vmware/cloud-director/logs/[logfile]
    
  4. Use the cursor to move around or refer to the There's more section for more detailed instructions on how to work with less.

  5. Exit the program by pressing q (lower case).

Cell log

The cell log shows the boot status of a cell. The file is located at /opt/vmware/cloud-director/logs/cell.log.

It contains the percentage of the cell boot. If you restart a cell after a crash or an update, this is the place to monitor (using tail –f; refer to the There's more section), as it will tell you what fails...