<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Unable to retrieve alerts by command using get-alert for a particular ConnectorStatus</title>
		<link>http://opsmgr2007.wikidot.com/forum/t-143199/unable-to-retrieve-alerts-by-command-using-get-alert-for-a-p</link>
		<description>Posts in the discussion thread &quot;Unable to retrieve alerts by command using get-alert for a particular ConnectorStatus&quot;</description>
				<copyright></copyright>
		<lastBuildDate>Tue, 14 Feb 2012 07:38:58 +0000</lastBuildDate>
		
					<item>
				<guid>http://opsmgr2007.wikidot.com/forum/t-143199#post-1165654</guid>
				<title>Good Post !</title>
				<link>http://opsmgr2007.wikidot.com/forum/t-143199/unable-to-retrieve-alerts-by-command-using-get-alert-for-a-p#post-1165654</link>
				<description></description>
				<pubDate>Mon, 30 May 2011 09:17:22 +0000</pubDate>
				<wikidot:authorName>my pradabag</wikidot:authorName>				<wikidot:authorUserId>958858</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						<p class="comment-removed">Comment removed.</p>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://opsmgr2007.wikidot.com/forum/t-143199#post-435064</guid>
				<title>Unable to retrieve alerts by command using get-alert for a particular ConnectorStatus</title>
				<link>http://opsmgr2007.wikidot.com/forum/t-143199/unable-to-retrieve-alerts-by-command-using-get-alert-for-a-p#post-435064</link>
				<description></description>
				<pubDate>Tue, 31 Mar 2009 06:32:59 +0000</pubDate>
				<wikidot:authorName>iamtulipin</wikidot:authorName>				<wikidot:authorUserId>299169</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>I am working SCOM command shell API. However, I am unable to retrieve alerts by command using get-alert for a particular ConnectorStatus. For ex. for a particular alert the value of ConnectorStatus is 'NotMarkedForForwarding' but when I execute the following command - get-alert -criteria {ConnectorStatus = 'NotMarkedForForwarding'} I get the following error:</p> <p>Get-Alert : Conversion failed when converting the nvarchar value 'NotMarkedForForwarding' to data type int.</p> <p>The issue here is that the API is expecting some int value for ConnectorStatus instead of the visible string value. Does anyone has any idea where I can get the exact mapping of these text to int values?</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>
