Saturday, 30 April 2016

Listing all Exchange SMTP email addresses and aliases

Exports a list of Display names, Primary email address and any aliases and outputs them to a file on the C:\

Get-Mailbox -ResultSize Unlimited |Select-Object DisplayName,PrimarySmtpAddress, @{Name=“EmailAddresses”;Expression={$_.EmailAddresses |Where-Object {$_.PrefixString -ceq “smtp”} | ForEach-Object {$_.SmtpAddress}}} | Export-CSV c:\exported-smtp-addresses.csv -NoTypeInformation

Tuesday, 19 April 2016

Port channel between Force 10 and Cisco switches goes down when one Force 10 in the VLT is rebooted.

Customer has a pair of Force 10 S4820 switches configured in a VLT domain. There is a port channel configured to a pair of Cisco C4510R+E connected via VSS. When one of the F10's is restarted the port channel on the surviving F10 goes down.

(See “Configuring LACP Fast Rate Timer”)

On the Dell Force 10's they are set to short/fast (i.e. 1 second) already.

The options are stick with the static lag, or upgrade the IOS.
If you’re running a Supervisor Engine III or below then IOS v12 is the only option, therefore static lag.
Supervisor Engine IV or above will take IOS 15. 

The solution is this case was to upgrade the iOS on the C4510R+E and use the "LACP FAST RATE" on the port channel. If you can't upgrade the iOS then configure a static LAG.

Wednesday, 6 April 2016

Volumes connected to ESXi hosts via SAS to Compellent SCv2000 don't survive a reboot


ESXi 6.0 hosts connected to Dell Compellent SCv2000 via SAS experience an issue where by the LUNs do not survive a reboot. A rescan of the HBA's doesn't detect any LUNs.

Removing and re-assigning the LUN mappings for the hosts in Compellent Enterprise Manager works until the hosts are rebooted again.

Turns out that the 12Gb SAS HBA supplied by Dell is manufactured by Avago. The ESXi 6.0 2b image from the VMware website doesn;t have any inbox drivers from Avago so instead uses the LSI-MPT3 SAS driver. Whilst this appears to work from the outset, a reboot of the hosts proves that connectivity to the array isn't re-established after a reboot.

The solution is to remove the LSI-SAS VIB from the boot bank and install the Avago driver which can be downloaded from the VMware website:

After the package has been downloaded you will need to extract the offline bundle file with the ZIP extension and copy it to a VMFS datastore, in my example this is 'vol1'

Use putty etc to SSH onto the host(s). The first command removes the LSI-MSGPT3 VIB, a reboot is required afterwards. The second command installs the Avago VIB

esxcli software vib remove –n lsi-msgpt3
esxcli software vib install -d /vmfs/volumes/vol1/