[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Exchange 2010 EMS command question

Posted on 2014-03-04
4
Medium Priority
?
206 Views
Last Modified: 2014-03-04
I'm trying to use the EMS to get only the "PrimaryActiveManager" status from "get-databaseavailabilitygroup -status" command, but I'm not having any luck.  I've tried filtering with the Where-object cmdlet, but I've had no success.
0
Comment
Question by:tballin
[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
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:Justin Yeung
ID: 39904357
get-databaseavailabilitygroup -status | ? {$_.PrimaryActiveManager -like "servername"} | ft

what status you want to get from PrimaryActiveManager?
0
 

Author Comment

by:tballin
ID: 39904408
The status of PrimaryActiveManager should be the name of the active DAG member.  So like "ACMEExch1".
0
 
LVL 14

Accepted Solution

by:
Justin Yeung earned 2000 total points
ID: 39904427
it should return just with member name.........

so what do you need???

what if you do

get-databaseavailabilitygroup -status | fl Name,Primary*

or

get-databaseavailabilitygroup -status | ft Name,Primary*


does it return the result?
0
 

Author Comment

by:tballin
ID: 39904480
Both work - thanks!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
New style of hardware planning for Microsoft Exchange server.
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…
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

650 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