How to enable and disable apache2 modules in Linux

a2enmod modulename - this will enable a module

a2dismod modulename - this will disable a module

 

Once you have made the changes, execute the service apache2 restart command and away you go!

VMware - Host sensor data is not updated. The Query Service is not available or was restarted, please retry.

Host sensor data is not updated. The Query Service is not available or was restarted, please retry.

I have run across this issue a couple of times now when shutting down a few of our hosts (including vCenter) and them booting them all back up at the same time in the lab.  Due to the way that the VMs were booting back up, some of the VMware services were not starting properly and would result with the inability to view the Hardware status tab in vSphere.

To resolve this issue, simply go through and restart the services on your vcenter box and you should be back in business.  Restarting the VMware VirtualCenter service specifically should take care of things (it might ask to restart VMware VirtualCenter Management Webservices as well... that's fine).

As a side note, I did try going through ADSI and changing some values, however I feel this is more of an issue due to the way your VMs come alive and associated dependencies (SQL backend, DCs, etc.)

Hope this helps!

Lync 2010 - Cannot update active Match Making server because SQL Server does not respond

So today I was digging through event viewer and saw some weird logs with the following error:

Cannot update active Match Making server because SQL Server does not respond.

The service failed to register an active Match Making because of a failure to connect to the SQL Server domainfrontend.local\rtc.
Exception: System.Data.SqlClient.SqlException - A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
Inner Exception: ~

Cause: The server lost the connection to the backend database.
Resolution:
Make sure the machine has connectivity to the backend SQL Server.

After doing a quite Google search, nothing came up like usual, however I believe I have found a fix.  When installing the latest cumulative update for your front end server, make sure that you don't forget to run the following command (I forgot to finish the install running this command on my second front end, which is when these errors started to popup).

Install-CsDatabase -Update -ConfiguredDatabases -SqlServerFqdn <EEBE.Fqdn> -UseDefaultSqlPaths
Hope this helps!

Lync 2010 - Enable Users for Hosted Voice Mail

Here is how to do it!  Note, this is copied right from Microsoft's website for archival purposes.  Here is a link to the technet article: http://technet.microsoft.com/en-us/library/gg413062.aspx
  1. Start the Lync Server Management Shell: Click Start, click All Programs, click Microsoft Lync Server 2010, and then click Lync Server Management Shell.
  2. Run the Set-CsUser cmdlet to configure the user account for hosted voice mail. For example, run:
    Set-CsUser -HostedVoiceMail $True -Identity "contoso\kenmyer"

    The preceding example sets the following parameters:

    • HostedVoiceMail enables a user’s voice mail calls to be routed to hosted Exchange UM. It also signals Microsoft Lync 2010 to light up the “call voice mail” indicator.
    • Identity specifies the user account to be modified. The Identity value can be specified using any of the following formats:
      • The user's SIP address
      • The user's Active Directory User-Principal-Name
      • The user's domain\logon name (for example, contoso\kenmyer)
      • The user's Active Directory Domain Services Display-Name (for example, Ken Myer). If using the Display-Name as the Identity value, you can use the asterisk (*) wildcard character. For example, the Identity "* Smith" returns all the users who have a Display-Name that ends with the string value "Smith".

Enabling HD video in Lync 2010

This was copied from Vince Quinto's website. All credit goes to him for this article, be sure to check out his blog: http://ucbyvince.blogspot.com/2011/04/enabling-hd-video-for-lync-2010.html

To enable HD video for Lync 2010, you have to allow the maximum resolution to support HD 720p video. Here’s how…

  1. In your Lync Front End Server, Click Start
  2. Click All Programs
  3. Click Microsoft Lync Server 2010
  4. Click Lync Server Management Shell
  5. Run the following commands by typing or copy/paste in Lync Server Management Shell
    1. Set-CsMediaConfiguration -Identity:Global -MaxVideoRateAllowed HD720p15m
  6. Restart the Lync Front End service from services.msc.

This command extends the client policy to support HD. Once Lync Front End service has restarted, plug your webcam that is 720p capable, and your video calls can now utilize HD quality videos.

Take note that HD only works in peer-to-peer. For conferencing, the maximum is still VGA.

There is one catch though which makes it harder for most to achieve HD with their Lync 2010 clients... The hardware requirement for your client computers to support HD video should be at least Quad Core 2.0 GHz or higher. Refer to this link for full client hardware requirement, http://technet.microsoft.com/en-us/library/gg425720.aspx.
Oh well... VGA is not that bad really... 😛

 

How to Change the File Store Location for a Lync Server 2010 Front End Server/Pool

Want to move a file store from one server to another?  Here's how to do it!

Right from Microsoft: http://technet.microsoft.com/en-us/library/gg195742.aspx

Get samaccount/username out of Active Directory via PowerShell

Here is how to get a list of everyone's username out of active directory.

Get-ADUser -Filter * | FT SamAccountName -A

Lync 2010 Server - Lync 2011 for Mac Clients Failing To Connect

Today, I ran across the issue of some Lync clients not being able to connect up to our Lync 2010 server.  They were receiving the following error:

Sign in to Microsoft Lync failed because the service is not available or you may not be connected to the internet.

Turned out this was caused by having an invalid SSL certificate.  The reason the certificate was invalid was this particular Mac was not apart of the domain and therefore the root CA's certificate was not trusted.  Simply importing the root certificate into the keychain logged the user right in.

Binding Multiple SSL Sites To The Same Port/IP In IIS6

First, all credit goes to Dustin Riley for this article. I have simply copied and pasted it for archival reasons.

The original article can be found here: http://blog.dustinriley.net/2010/03/12/binding-multiple-ssl-sites-to-same-port-in-iis6/

If you attempt to create multiple sites in IIS6 that use the same SSL port (by default 443), then you will get an error message when you try to start the second one stating “IIS was unable to start the site. Another site may already be using the port you configured for this site. Please select a unused port for this site.” To setup SSL on the second site you need to either use a different port or edit the metabase directly. IIS6 comes with a script that will allow you to edit the metabase and add the binding for the second SSL site

The script is located in the Inetpub/AdminScripts directory and will need to be run from there in the command prompt. You will need to know the site identifier for the site you want to add the binding to. You can find this in the IIS Manager, drilling down to Web Sites, it will be in one of the columns in the right pane.

Syntax:
cscript.exe adsutil.vbs set /w3svc//SecureBindings “::”

Example:
cscript.exe adsutil.vbs set /w3svc/1/SecureBindings “:443:server.example.com”

Once you complete this you should be able to start the site in the IIS Manager.

Lync 2010 - Cannot Synchronize Address Book

If you receive this error:

The Lync 2010 client or the Office Communicator client does not download the corporate address book and displays a notification: "Cannot Synchronize Address Book"

Give the following a shot:

  1. Shutdown the Lync client
  2. Force the Lync client to download the address book immediately the next time it starts:
    • Open the registry to HKLM\Software\Policies\Microsoft\Communicator
    • Modify (or Create) the DWORD  the registry key “GalDownloadInitialDelay” and set it to 0  (that is a zero)
    • This can also be done from the command line:
      • reg add HKLM\Software\Policies\Microsoft\Communicator /v GalDownloadInitialDelay /t REG_DWORD /d 0 /f
  3. Delete the Existing Local Address Book Files:
    • On Windows 7 or Vista machines, open Windows Explorer to the directory:
      • %userprofile%\AppData\Local\Microsoft\Communicator\sip_user@example_domain
    • Delete the files GalContacts.db and GalContacts.db.idx
  4. Restart the Lync client.
    •    The address book should be available in less than an hour.

I found the solution here: http://blog.insidelync.com/2012/02/lync-address-book-client-synchronization-errors-and-common-problems/  Give it a read, it's very thorough.