Monday, December 15, 2014

Verifying if management services are running on an ESXi host (2030663)

Verifying if management services are running on an ESXi host (2030663)

Purpose

This article provides steps to check if management services are running on an ESXi host. You may want to perform this check for troubleshooting purposes.

Resolution

To verify if ESXi management services are running:

  1. Log in to the ESXi host using Tech Support Mode. For more information, see:
  2. Run this command to see if hostd is running:

    Type exactly as shown:
    /etc/init.d/hostd status 

    You should see output similar to:

    hostd is running 

    Alternatively, run this command:

    ps -s | grep hostd

    You should see output similar to:

    456566 2878 hostd-worker WAIT UFUTEX 0-7 hostd
    456567 2878 hostd-worker WAIT UFUTEX 0-7 hostd


    Alternatively, for ESX 2.0.x to 4.0.x, see Verifying that the Management Service is running on an ESX host (1003494).

    Note: If hostd is not running, see Troubleshooting vmware-hostd service if it fails or stops responding on an ESX/ESXi host (1002849).
  3. If the ESXi host is attached to vCenter Server, run this command to verify that vCenter Server Agent is running:

    /etc/init.d/vpxa status 

    You should see an output similar to:

    vpxa is running

    Alternatively, for ESX 2.0.x to 4.1.x, see Verifying that the vCenter Server Agent Service is running on an ESX host (1003495).

    Note: If the vCenter Server Agent is not running, see Restarting the Management agents on an ESXi or ESX host(1003490).

Diagnosing the vSphere Client when it fails to connect to an ESX/ESXi host or vCenter Server



Symptoms

  • vCenter Server cannot connect to the ESX/ESXi host.
  • Connecting vCenter Server to the ESX/ESXi host fails.
  • vSphere Client cannot connect to the ESX/ESXi host.
  • You see one or more of these errors:

    • Login failed
    • Login failed due to a bad username or password
    • Cannot complete due login due to an incorrect username or password
    • Timed out waiting for server response
    • Failed To Connect to host


http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1003870

http://kb.vmware.com/selfservice/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1003490

Restarting the Management agents on ESXi

To restart the management agents on ESXi:

From the Direct Console User Interface (DCUI):

  1. Connect to the console of your ESXi host.
  2. Press F2 to customize the system.
  3. Log in as root.
  4. Use the Up/Down arrows to navigate to Restart Management Agents.

    Note: In ESXi 4.1 and ESXi 5.0, 5.1 and 5.5, this option is available under Troubleshooting Options.
  5. Press Enter.
  6. Press F11 to restart the services.
  7. When the service has been restarted, press Enter.
  8. Press Esc to log out of the system.

Tuesday, December 9, 2014

Create System Image Backups of Windows 8.1 and Restore from it


Step by Step How to Create System Image Backups of Windows 8.1 and Restore from it.

https://www.youtube.com/watch?v=dEvoVcB2cXQ#t=210

Thursday, December 4, 2014

VMware vCenter Server Appliance 5.0 vpxd crashes few seconds after starting

VMware vCenter Server Appliance 5.0 vpxd crashes few seconds after starting(2030601)


Details


  • When trying to start the VMware vCenter Server Appliance 5- Build 472350, the vpxd fails after a few seconds.
  • In the /var/log/vmware/vpx/vpxd.log file, you see entries similar to:

    2012-06-28T12:07:32.583+02:00 [7FFFF3B09700 info 'Default'] [Init:842] Calling: VpxdCertificate_Load(gDB, CERTIFICATE_VMDBPATH )
    2012-06-28T12:07:32.583+02:00 [7FFFF3B09700 info 'Default'] [Init:843] Calling: VpxdVdb::Init(VpxdVdb::GetVcVdbInstId(), false, false, NULL)
    2012-06-28T12:07:32.583+02:00 [7FFFF3B09700 info 'Default'] Registry Item DB 5 value is ''
    2012-06-28T12:07:33.370+02:00 [7FFFF3B09700 error 'Default'] [Vdb::LockRepositoryHelper] SQLExecDirect failed: 57011:-438:ODBC error: (57011) - [IBM][CLI Driver][DB2/LINUXX8664] SQL0438N Application raised error or warning with diagnostic text: "Error deleting from VPX_SESSIONL". SQLSTATE=57011
    -->
    2012-06-28T12:07:33.370+02:00 [7FFFF3B09700 error 'Default'] Unable to get exclusive access to vCenter repository. Please check if another vCenter instance is running against the same database schema.
    2012-06-28T12:07:33.374+02:00 [7FFFF3B09700 error 'Default'] [Init] Init failed: VpxdVdb::Init(VpxdVdb::GetVcVdbInstId(), false, false, NULL)
    2012-06-28T12:07:33.374+02:00 [7FFFF3B09700 error 'Default'] Failed to intialize VMware VirtualCenter. Shutting down...
    2012-06-28T12:07:33.374+02:00 [7FFFF3B09700 info 'Default'] Wrote uptime information
    2012-06-28T12:07:33.374+02:00 [7FFFF3B09700 error 'Default'] Alert:false@ /build/mts/release/bora-472350/bora/vpx/vpxd/util/vpxdVdb.cpp:408
    --> Backtrace:
    --> [00] rip 00007fffeed9ed14
    --> [01] rip 00007fffeecf59e2
    --> [02] rip 00007fffeec9b38b
    --> [03] rip 00007ffff58c613d
    --> [04] rip 00007ffff4ea5a40
    --> [05] rip 00007ffff4eb4e21
    --> [06] rip 00007ffff4ea2953
    --> [07] rip 00007fffed03abc6
    --> [08] rip 00007ffff4ea1c19
    -->
    2012-06-28T12:07:33.374+02:00 [7FFFF3B09700 info 'Default'] Registry Item DB 5 value is ''
    2012-06-28T12:07:34.132+02:00 [7FFFF3B09700 error 'Default'] [Vdb::LockRepositoryHelper] SQLExecDirect failed: 57011:-438:ODBC error: (57011) - [IBM][CLI Driver][DB2/LINUXX8664] SQL0438N Application raised error or warning with diagnostic text: "Error deleting from VPX_SESSIONL". SQLSTATE=57011
    -->
    2012-06-28T12:07:34.133+02:00 [7FFFF3B09700 error 'Default'] Unable to get exclusive access to vCenter repository. Please check if another vCenter instance is running against the same database schema.
    2012-06-28T12:07:34.138+02:00 [7FFFF3B09700 error 'Default'] Unhandled exception <Error[VdbError] (-24) Vdb instance is not initialized or terminated>


Solution


Note: This solution is applicable only to vCenter Server Appliance 5.0 and is not applicable to vCenter Server Appliance 5.0 Update 1, which uses the PostgresSQL database.

This issue may be caused due to a lack of adequate space on the /storage partition, a full transaction log, or due to aVPX_SESSIONLOCK table.
To resolve this issue due to core dumps filling the partition:
  1. Connect to vCenter Server Appliance console as the root user. The default password is vmware.
  2. Change directory to /storage/core and run the ls command to check for core files

    Note: If there are core dumps, delete these dumps and try to start the service again. The problem should now be solved.
To increase the transaction log size:
  1. Stop the vCenter Virtual Appliance service:

    service vmware-vpxd stop
  2. Run the following commands to connect to the database:

    su db2inst1

    db2 connect to vcdb
  3. Run this command to retrieve current database configuration:

    db2 get db cfg for vcdb | grep LOG
  4. Run this command to update the database configuration:

    db2 update db CFG FOR VCDB USING logprimary 16 logsecond 112 logfilsiz 8192You see an output similar to:

    DB20000I The UPDATE DATABASE CONFIGURATION command completed successfully. SQL1363W One or more of the parameters submitted for immediate modification were not changed dynamically. For these configuration parameters, all applications must disconnect from this database before the changes become effective.
  5. Run this command to verify whether the update command has executed successfully:

    db2 get db cfg for vcdb | grep LOGYou see an output similar to:

    Catalog cache size (4KB) (CATALOGCACHE_SZ) = 300
    Log buffer size (4KB) (LOGBUFSZ) = 256
    Log file size (4KB) (LOGFILSIZ) = 8192
    Number of primary log files (LOGPRIMARY) = 16
    Number of secondary log files (LOGSECOND) = 112
  6. Type exit to leave the db2 session.
     
  7. Start the VMware VirtualCenter Server service and check the status with these commands:

    service vmware-vpxd start
    service vmware-vpxd status
To delete the VPX_SESSIONLOCK:

Caution: Engage your Database Administrator for assistance if you are unsure of how to complete these actions.
  1. Connect to the DB2 database using the DB Control Center. For more information on the DB Control Center, see The VirtualCenter Server service fails to start after the service was stopped or restarted when using DB2 database (1021581).
  2. Select the VPX_SESSIONLOCK table and delete all the rows in the table.
  3. Restart the VMware VirtualCenter Server service:

    service vmware-vpxd restart


To Monitor:

1. Check that the VMWARE-VPXD service is running
2. Check the storage partition's free space
3. Check the /Storage/core directory does not contain any dump files "vmware-vpxd.xxxx"





REF: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2030601

Tuesday, November 18, 2014

How to Remove quantserve.com Tracking Cookie?


Quantserve (Quantcast): What is it and what does it do?
Quantserve appeared as the second-biggest name in our Tracking the Trackers data. Here we find out as much as we can about what it does.

For an introduction to cookies and web trackers, read our guide.

What is Quantserve?
Quantserve.com creates web beacons and cookies operated by audience research and behavioural advertising company Quantcast.

It has a number of products:

Measurement & Insight
This service allows website owners and advertisers can use Quantcast web beacons in their content to see how many views they get, what age range the people viewing are likely to be in, and what income they are likely to generate (demographic data).

Audience Targeting
Quantcast uses the measurement and insight data help companies find people to target with their advertising. Their "Quantcast Lookalikes" service lets website owners build their own audience segments, which can be very specific. For example, a company could build a behavioural profile of the type of person that likes buying a particular product from their website. Quantcast would then identify other browsers that are similar so adverts for that product could be targeted to them.

What information is Quantcast tracking?
Quantcast says all its tracking is anonymous, accessing when, from where and at what time a browser loads its web beacon. "Quantcast only models anonymous records of internet usage. Quantcast does not intentionally collect any personally identifiable information – that is, information that could be used to uniquely identify or locate an individual."

On its website, Quantcast says it uses statistical modelling to "build a translation of cookies to people". Part of the aim of this approach is to counteract the issue that some people who access sites on multiple devices, or delete cookies regularly, may be counted more than once.

Quantcast say it does this by looking at patterns such as how often browsers are visiting the site, and how often they are likely to visit at home and work to infer how many "real" people are accessing a website.

However, it does not obtain information that relates back to specific individuals. What Quantcast does is build up a profile of a browser's behaviour across all sites using their web beacons (it claims these include over "100m web destinations, including websites, video, widgets, blogs, and advertising campaigns").

Information that may be captured when browsing a site using Quantcast includes: what page the browser was on; what searches were typed into the website search; the time the browser was on the website. This information, or "log data", is then used to build a profile of different types or "segments" of browsers.

In 2010, Quantcast paid $2.4m to settle a class action lawsuit alleging it used Flash cookies to reset tracking cookies after users deleted them. The firm stopped using Flash cookies in 2009, after research by The University of California Berkley identified the practice and it was publicised in the media.

Is the data sold to third parties?
In its privacy policy, Quantcast says it may share log data and aggregated information with third parties. These include:
- companies employed to support Quantcast services.
- companies that provide delivery and measurement of ad campaigns.

This data would be used for such things as industry analysis and targeting adverts.

How much money does Quantcast make?
Quantcast is a private US company so is not obliged to publish detailed breakdowns of its revenue and profit. However, the company does say it is backed by over $50m in funding from the following investors: Allen & Company, Cisco Systems, Founders Fund, Polaris Venture Partners and Revolution Ventures


quantserve.com Removal Instructions:

Go to Start > Settings > Control Panel > Internet Options.
Click the Privacy tab, click the Website button or Edit button in Website group box.
In the Website box, enter quantserve.com and click Reject button to add this website to block lists.
Click Ok button to save the changes.
Open the file "%WinDir%\system32\drivers\etc\hosts" with a text editor program.
Add the following lines to the end of the text file.
127.0.0.1 quantserve.com www.quantserve.com
127.0.0.1 edge.quantserve.com
127.0.0.1 pixel.quantserve.com
127.0.0.1 quantcast.com www.quantcast.com
Save and close the file.
Reboot your computer.


Recommended free malware remover:

http://www.malwarebytes.org/products/malwarebytes_free

http://www.superantispyware.com/?tag=SUPERANTISPYWARE (Free edition)


Monday, November 17, 2014

vCenter 5.x appliance space issue /storage/core out of space

Issue:

vCenter 5.x appliance space issue /storage/core out of space


/storage/core folder shows 100% used.










Resolution


  • SSH into vCSA.
  • issue the command "df -h" to display the disk space status
  • CD into /storage/core directory
  • issue the command "ls -l -t" to display the files by date. Delete the oldest first.

  •  You should be able to manually remove (rm -f file) some core file placed in /storage/core. 
Doing this, it should free some disk space. Issue the command "rm -l core.xxxx.xxxx" to delete the core dump files.













Thursday, October 30, 2014

Internet Explorer 11 - Page Setup Dialog", Error 13, Error in loading DLL

Cannot print from webpages. When I try to print an error message


Issue


Computer running Win 7 SP1
Internet Explorer 11
Cannot print from webpages. When I try to print an error message comes up that "An error has occurred raising "Page Setup Dialog", Error 13, Error in loading DLL
Solution
Check that a working default printer is configured.


Friday, October 24, 2014

How to set up a silent install of QuickTime through a batch script

How to set up a silent install of QuickTime through 

a batch script


1.

Download the QuickTime installer

2.

Open a command prompt to extract the .msi files

Navigate to where the installer was downloaded. Extract the .msi files with:
QuickTimeInstaller.exe /extract
This may take a minute or two depending on the speed of your computer. There should be four files produced:
QuickTime.msi
AppleSoftwareUpdate.msi
AppleApplicationSupport.msi
QuickTimeInstallerAdmin.exe
3.

Copy the files to your distribution share

For the purposes of this example, assume they are copied to
\\servername\share\QuickTime\7.7.6
4.

Create a batch file and add the installation commands

Use the following commands in your batch file to silently install QuickTime:
msiexec /i "\\servername\share\Quicktime\7.7.6\AppleApplicationSupport.msi" /passive
msiexec /i "\\servername\share\Quicktime\7.7.6\QuickTime.msi" /passive DESKTOP_SHORTCUTS=NO
msiexec /i "\\servername\share\Quicktime\7.7.6\AppleSoftwareUpdate.msi" /passive

NOTE: Apple Applicaiton Support needs to be installed first or Quick Time will not install.

In the first line, "DESKTOP_SHORTCUTS=NO" will suppress the automatic creation of the QuickTime desktop shortcut.
If upgrading QuickTime, this will also replace the previous version.
All three .msi files seem to be required for the installation to work.

That should set things up so you can run the install/upgrade as an interactive batch file, as a scheduled task,
or however you desire.
Tested with QuickTime 7.7.6 on Win 7 and 8/8.1