30 December 2013

VMware ESX host, How to Enable and Display CDP Information on the HP Switch

On the ESX Host using vCLI

Check the CDP Status of the server vSwitch (listen is the default, both is the desired value):

esxcli -s servername -u root -p password network vswitch standard list -v vSwitch0


   Name: vSwitch0
   Class: etherswitch
   Num Ports: 128
   Used Ports: 15
   Configured Ports: 128
   MTU: 1500
   CDP Status: listen
   Beacon Enabled: false
   Beacon Interval: 1
   Beacon Threshold: 3
   Beacon Required By:
   Uplinks: vmnic5, vmnic1
   Portgroups: Lan Ext, Lan Int

Set the vSwitch to send CDP information to the switch:

esxcli -s servername -u root -p password network vswitch standard set -c both -v vSwitch0


On the HP Switch via SSH
Switch CLI command:

sh lldp info remote-device


 LLDP Remote Devices Information

  LocalPort | ChassisId                 PortId PortDescr SysName
  --------- + ------------------------- ------ --------- ----------------------
  5         | Host01.dom.local      vmnic4
  6         | Host02.dom.local      vmnic4
  15        | Host02.dom.local      vmnic3
  16        | Host01.dom.local      vmnic7
  21        | Host01.dom.local      vmnic5
  22        | Host02.dom.local      vmnic5
  23        | 38 ea a7 b7 a2 40         24     24        Switch02
  24        | 38 ea a7 b7 a2 40         23     23        Switch02

20 December 2013

How To Fix Outlook Error "Certificate Security Alert" (Displaying the Exchange FQDN)

You have Outlook and Exchange 2010 and you get the error "Information you exchange with this site cannot be viewed or changed by others. However, there is a problem with the site's security certificate.

And a red X over "The name on the security certificate is invalid or does not match the name of the site."

This problem occurs when you use a signed certificate (issued by a public or private CA) that does not contain the FQDN of the Exchange.

Even if you configure the CAS service to manage your naming layout into the EMC (Server Configuration - Client Access), the error message appears every time you open Outlook.

In this example:

The server name in the local domain is server.domain.local

The server names included into the public certificate are mail.domain.ch and webmail.domain.ch 

Note: The use of local names (as .local or .lab or whatever)  is no more allowed by the public Certification Authorities.

First Step:

Please verify in the EMC the CAS uses only names avaliable in your exchange certificate.
Verify the DNS resolution of these name is correct on Internet and from your network.

Issue The following Command to address the Web Services Virtual Directory to the correct hostame, this command will fix your :

Set-WebServicesVirtualDirectory -Identity "EXSERVERNAME\EWS (Default Web Site)" –InternalUrl https://mail.domain.ch/EWS/Exchange.asmx

Set-ClientAccessServer -Identity EXSERVERNAME -AutodiscoverServiceInternalUri https://mail.doamin.ch/autodiscover/autodiscover.xml

Restart Outlook and enjoy.

12 December 2013

Exchange 2010 to 2010 (or 2007 to 2010) public folder migration procedure

Get the item count before start:


Add the replicas o the new exchange server:

.\AddReplicaToPFRecursive.ps1 –Server EXC2007 –TopPublicFolder \ –ServerToAdd EXC2010

.\AddReplicaToPFRecursive.ps1 -TopPublicFolder "\Non_IPM_Subtree" Servertoadd EXC2010

Force the replicas:


Update-PublicFolderHierarchy -Server
Get-PublicFolderStatistics -resultsize unlimited | update-publicfolder -Server

Check the replicas:

Get-PublicFolder -recurse |fl name,replicas

Get-PublicFolder -recurse \NON_IPM_Subtree |fl name, replicas

Get the item count before move the replicas:


Move the public folder replicas:

.\moveallreplicas.ps1 -server EXC2007 -newserver EXC2010

update-publicfolderhierarchy -server EXC2010

Remove the old server from the replicas:

.\RemoveReplicaFromPFRecursive.ps1 -server EXC2010 -TopPublicFolder \ -ServerToRemove EXC2007

.\RemoveReplicaFromPFRecursive.ps1 -server EXC2010 -TopPublicFolder \Non_IPM_Subtree -ServerToRemove EXC2007