Pass the Alert Url trough to a script
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Pass the Alert Url trough to a script

 
Post new topic   Reply to topic    Windows Server Forum Index -> MOM
Author Message
thomas
Guest





Posted: Fri Jan 07, 2005 11:01 pm    Post subject: Pass the Alert Url trough to a script Reply with quote

Hi

I have written a script that automaticlly sent SNMP trap to another
management system, by I have trouble getting the Alert.URL from MOM, I have
looked in the SDK, but can not find how !?
I have tried this :

Set objAlert = ScriptContext.Alert
........ objAlert.Url ......

But the Alert Url is not passed through. I have no problems, getting all the
other Event messages, with the
Set ObjEvent = ScriptContext.Event
........objEvent.Message...

Can any please help me ?

Best Regards
Thomas
Back to top
Doug Bradley [MSFT]
Guest





Posted: Sat Jan 08, 2005 12:09 am    Post subject: Re: Pass the Alert Url trough to a script Reply with quote

It seems this is not exposed.

The ID of the alert is exposed though - so maybe you can generate the URL
based on the Alert ID (GUID) and hard-code the rest of the URL in your
script?


"thomas" <thomas@discussions.microsoft.com> wrote in message
news:407E01D7-64DE-45EB-A4B2-AB47199FA8F2@microsoft.com...
Quote:
Hi

I have written a script that automaticlly sent SNMP trap to another
management system, by I have trouble getting the Alert.URL from MOM, I
have
looked in the SDK, but can not find how !?
I have tried this :

Set objAlert = ScriptContext.Alert
....... objAlert.Url ......

But the Alert Url is not passed through. I have no problems, getting all
the
other Event messages, with the
Set ObjEvent = ScriptContext.Event
.......objEvent.Message...

Can any please help me ?

Best Regards
Thomas
Back to top
thomas
Guest





Posted: Sat Jan 08, 2005 12:43 am    Post subject: Re: Pass the Alert Url trough to a script Reply with quote

Thanx Doug,

This had crossed my mind, but I thought it was my lack of scripting skills
that coused the problem.

The other think I have alerdy done ;-)

Br
Thomas

"Doug Bradley [MSFT]" wrote:

Quote:
It seems this is not exposed.

The ID of the alert is exposed though - so maybe you can generate the URL
based on the Alert ID (GUID) and hard-code the rest of the URL in your
script?


"thomas" <thomas@discussions.microsoft.com> wrote in message
news:407E01D7-64DE-45EB-A4B2-AB47199FA8F2@microsoft.com...
Hi

I have written a script that automaticlly sent SNMP trap to another
management system, by I have trouble getting the Alert.URL from MOM, I
have
looked in the SDK, but can not find how !?
I have tried this :

Set objAlert = ScriptContext.Alert
....... objAlert.Url ......

But the Alert Url is not passed through. I have no problems, getting all
the
other Event messages, with the
Set ObjEvent = ScriptContext.Event
.......objEvent.Message...

Can any please help me ?

Best Regards
Thomas


Back to top
Doug Bradley [MSFT]
Guest





Posted: Sat Jan 08, 2005 5:00 am    Post subject: Re: Pass the Alert Url trough to a script Reply with quote

By the way - this seems to me like a reasonable feature to have. If you
want, you could suggest it using this link:
http://lab.msdn.microsoft.com/productfeedback/SearchResults.aspx?text=&stype=1&fields=1&type=0&witId=0&pId=15&category=0&os=0&oslang=0&status=0&msstatus=0&resolution=0&chgdays=&validation=0&votes=&voterating=0&workarounds=False&attachments=False


"thomas" <thomas@discussions.microsoft.com> wrote in message
news:B5B15016-EFC2-4415-A05A-A22C4B143132@microsoft.com...
Quote:
Thanx Doug,

This had crossed my mind, but I thought it was my lack of scripting
skills
that coused the problem.

The other think I have alerdy done ;-)

Br
Thomas

"Doug Bradley [MSFT]" wrote:

It seems this is not exposed.

The ID of the alert is exposed though - so maybe you can generate the URL
based on the Alert ID (GUID) and hard-code the rest of the URL in your
script?


"thomas" <thomas@discussions.microsoft.com> wrote in message
news:407E01D7-64DE-45EB-A4B2-AB47199FA8F2@microsoft.com...
Hi

I have written a script that automaticlly sent SNMP trap to another
management system, by I have trouble getting the Alert.URL from MOM, I
have
looked in the SDK, but can not find how !?
I have tried this :

Set objAlert = ScriptContext.Alert
....... objAlert.Url ......

But the Alert Url is not passed through. I have no problems, getting
all
the
other Event messages, with the
Set ObjEvent = ScriptContext.Event
.......objEvent.Message...

Can any please help me ?

Best Regards
Thomas


Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> MOM All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB