?
Solved

Powershell script to make Exchange 2007 CCR cluster online

Posted on 2010-11-12
7
Medium Priority
?
802 Views
Last Modified: 2012-05-10
Hy,

I need a script to check if the CCR cluster is online or not.

If the Cluster and all ressource is Online, the script not do anything.

If the cluster is Oflline, the script start the cluster.

Thanks for your help
0
Comment
Question by:cawasaki
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 32

Expert Comment

by:endital1097
ID: 34129355
The important piece of a CCR cluster is that the databases are online
Get-MailboxDatabase -Status | ForEach-Object { if  ($_.Mounted -eq $False) { Mount-Database $_.ObjectGuid }

0
 

Author Comment

by:cawasaki
ID: 34130690
Hi,

Your script do not work because database need the CMS started before.
0
 
LVL 32

Expert Comment

by:endital1097
ID: 34130956
you could run

$cluster = Get-Service ClusSvc
if($cluster.Status -eq "Stopped") { Start-Service ClusSvc }
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:cawasaki
ID: 34134440
Hi,

The service is running, the good command is:

 Start-ClusteredMailboxServer

this command start all clustered ressource.

Its possible to get this command in the script?

Thanks
0
 
LVL 32

Accepted Solution

by:
endital1097 earned 2000 total points
ID: 34135580
there are several pieces and i didn't have access to any cluster over the weekend

##verify cluster service is running and start if it is not
$cluster = Get-Service ClusSvc
if($cluster.Status -eq "Stopped") { Start-Service ClusSvc }

##check the status of the CCR
$ccr =Get-ClusteredMailboxServerStatus
if($ccr -ne "Online) { Start-ClusteredMailboxServer <CcrName> }

0
 

Author Comment

by:cawasaki
ID: 34135643
##check the status of the CCR
$ccr =Get-ClusteredMailboxServerStatus
if($ccr -ne "Online) { Start-ClusteredMailboxServer <CcrName> }


if($ccr -ne "Online)==>Offline or online :)
0
 
LVL 32

Expert Comment

by:endital1097
ID: 34139871
There are other potential values so I would use online
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Check out this step-by-step guide for using the newly updated Experts Exchange mobile app—released on May 30.
A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question