Monday, February 1, 2010

How do I view the "gathered logs" on the Linux system

Question:
How do I view the view the gathered logs that i collected on my Linux system? I tried to use the "unzip" command but it is not on the Linux Virtual Appliance.

Answer:
The distro that we use for the VA does NOT come with a "unzip" utility. Gunzip, pax, and tar can not handle this type of archive.

Collecting logs

Question:
How do I collect the logs for ConfigControl?

Answer:
as "configcontrol user run this command:

configcontrol -generateSupportBundle

The result is a zip file in /opt/vmware

increasing the log level for ConfigControl

Question:
How do I increase the log level for ConfigControl

Answer:
Edit /opt/vmware/configcontrol/config/config/log4j.properties.
Change line:
log4j.rootLogger=error, stdout, file
to:
log4j.rootLogger=debug, stdout, file

Of course you can use other standard java log4j options.

Thursday, January 28, 2010

Creating a database from the command line

Question:
I am following the instructions in the ConfigControl guide to create a database using MSSQL from the command line but it is not working. What am I doing wrong?

Answer:
The earlier versions of the documentation are incorect. The correct way is like this:
Execute this set of code first to create the database

CREATE DATABASE ConfigControl ON PRIMARY (NAME = N'ConfigControl',
FILENAME = N'c:\ConfigControl.mdf', SIZE = 50MB, FILEGROWTH = 10%)
COLLATE Latin1_General_CI_AS;

Then Execute this set of code to create the user
CREATE LOGIN ConfigControlUser
WITH PASSWORD='ConfigControlpw',
DEFAULT_DATABASE = ConfigControl;
USE ConfigControl;
EXEC sp_changedbowner ConfigControlUser;

What database does ConfigControl use

Question:
What database does ConfigControl use? I noticed that you do not specify a database on the command line.

Answer:
ConfigControl uses the default database for the user that you specify on the command line. That is why you want to create a specific database user.

Intilizing the ConfigControl Database

Question:
How do I initialize the ConfigControl Appliance:

Answer:
This can only be done from the Appliances command line, and you MUST be logged on as the user configcontrol. If you try and initialize ConfigControl as "root" unexpected errors will occur.

You can use two different to initialize the appliance, the first is by typing all the switches/variables from the command line, the other is to create a file with the switches/variables pairs and then reading this file.

Doing it all from the command line:

configcontrol -initialize -dbType SQLServer -dbHost 10.22.71.25 -dbUser ConfigControlUser -dbPassword xyz123 -vcName TFentonVCA -vcHost 10.22.71.20 -vcUser administrator -vcPassword 123xyz

Doing it with a file:
Create a file called ConCon.cnf with the following:
dbtype=SQLServer
dbhost=10.22.71.25
dbport=1433
dbuser=ConfigControlUser
dbpassword=xyz123
vchost=10.22.71.20
vcuser=administrator
vcpassword=123xyz

b. Then run the following (capitalization matters)
configcontrol -initialize -configFile ConCon.cnf