Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I obtain the web console URL from the SDK?

16 views
Skip to first unread message

Rex

unread,
Feb 18, 2008, 11:51:05 AM2/18/08
to
I am in the process of developing a custom connector to forward alerts to an
external system. I have the extraction process working but am having
difficulty obtaining two attributes related to alerts that I need to export
to the external system. (I am looking for two data items and each has its own
post here. This is the second one.)

Does anyone know how to access the web console URL of an alert using C# and
the SCOM SDK?

The value I am looking for can be seen in the SCOM GUI console under the
screen where you set up a message for a notification subscription. If you
inset the “WebConsole Link” into your message you the following expression:

"$Target/Property[Type="Notification!Microsoft.SystemCenter.AlertNotificationSubscriptionServer"]/WebConsoleUrl$

I am trying to figure out how to get this same value from the SDK using C#.

There appears to be a Settings.NotificationServer.WebAddresses class with a
WebConsole property but I haven’t figured out to get the string value out of
it. When looking at the class in the debugger there appears to be a guid
based property, but no string value is obvious.

Thanks

Jakub Oleksy [MSFT]

unread,
Feb 27, 2008, 3:25:05 PM2/27/08
to
Settings.NotificationServer.WebAddresses.WebConsole.Value should do it.

--
Jakub Oleksy
Developer
Blog: http://blogs.msdn.com/jakuboleksy/
Log a bug or Feature Request directly to the SCOM Product Team by going to
http://connect.microsoft.com/site/sitehome.aspx?SiteID=209. This posting is
provided "AS IS" with
no warranties, and confers no rights.

"Rex" <R...@discussions.microsoft.com> wrote in message
news:0C203458-4C7A-42E0...@microsoft.com...

Rex

unread,
Mar 3, 2008, 4:31:00 AM3/3/08
to
I don't see a "Value" property on WebConsole. If I look at ToString() I get
"Microsoft.EnterpriseManagement.Administration.Setting`1[System.String]"

Jakub Oleksy [MSFT]

unread,
Mar 4, 2008, 3:53:43 PM3/4/08
to
Sorry, take a look at:
public string GetDefaultValue(Setting<string> setting)

On the Settings class, accessible in the administration space.

http://msdn2.microsoft.com/en-us/library/bb438586.aspx

--
Jakub Oleksy
Developer
Blog: http://blogs.msdn.com/jakuboleksy/
Log a bug or Feature Request directly to the SCOM Product Team by going to
http://connect.microsoft.com/site/sitehome.aspx?SiteID=209. This posting is
provided "AS IS" with
no warranties, and confers no rights.

"Rex" <R...@discussions.microsoft.com> wrote in message

news:59361F81-FC0D-42EA...@microsoft.com...

Rex

unread,
Mar 13, 2008, 10:45:03 AM3/13/08
to
Thanks, thats what I need.
For anyone else looking for this answer:

ManagementGroup mg = new ManagementGroup("localhost");
string url =
mg.GetAdministration().Settings.GetDefaultValue(Settings.NotificationServer.WebAddresses.WebConsole)

0 new messages