I further discovered that once the context is set, it appears it will
not change more than once on the same instance in which a page is
loaded.  Meaning, for each context change, the first context tag sets
it.  Therefore, subsequent tags on the same page, if the iteration tags
were used to change change the map filename value in the following tag,
<%CURRENT_MAP% (%MAP% FILENAME)> dynamically, only the first instance on
a given page within the "Map list" tags will have an effect.

I have created a way to reload the page to set a new context on each
instance if there are Unacknowledged devices on a map, but the Microsoft
security of preventing usernames and passwords from being passed through
an URL has placed a limitation, because altering every machine that
accesses What's Up is not desirable.  

I have also created a script using Rebol to perform actions a browser
would perform to circumvent all of this, but calling the script will
have to be done using a WUG program alert, as I have not figured out how
to add different file extensions to the What's Up Web server other than
htm, html, and asp that are aready built in.  If some one knows how to
do this, let me know.

        How to call an executable from the What's Up Gold Web Interface

So in order to use the WUG program alert to call an executable after
clicking on a link, in case anybody wants to know, here is the plan:

1.  Create a single map. Change this special Map's poll interval to
something very low, so you will not have to wait forever for things
start to move.  Save the Map with Active "unchecked.".

2.  Give those who will have the right to acknowledge any alerts or call
this executable or whatever program it may be, the right to configure
this particular Map only. 

3. Create a device on this map with a service or IP address you know
will not be reachable. 

5. Create a program notification that is configured to call your file,
whatever it may be, with whatever parameters it will need, if any.
(There are articles on how to setup program notifications).

4. Create an alert on this device that triggers on the first poll, or
what ever delay you like.

5.  Create a very small custom asp page that is called by your link on
the page you are calling from.  This page will set the special Map in
context using the <%CURRENT_MAP% filename.wup>. Use the <%MAPSET%
(ACTIVE, 1)> to set the map active.  Once the map is set to active, the
device on this map will go down and call your program alert which will
call your executable.
In the <head> of this page, create a Meta tag to automatically return
the map to an inactive state so the device does not stay down:  

<META http-quiv="Refresh" content="30; URL=page2.asp">

Remember to set the refresh long enough to give your device a chance to
trigger the program.  The page2.asp is your second page which is created
in step six which will clear the device and deactivate the map.

Complete step 6 before actually activating your plan.  

6.  Create another custom page that does the opposite of the previous
page.  Use this page to reset the counters on the device and set the map
inactive.  You will have to provide the appropriate permissions for the
Map and not for any other map if you have users who do not normally
configure maps or devices.

<%CURRENT_MAP% filename.wup>
<%CURRENT_DEVICE% (%DEVICE% UNIQUE_ID)> 
<%DEVICESET% RESET_COUNTERS>
<%MAPSET% (ACTIVE,0)>

Create a meta tag on this page to take the user back to the topview or
wherever after the map is reset.

I would set this special map to poll about every 10 to 20 secs since it
is you probably want to the program to trigger quickly.  

These instructions should be easy to follow by those who already program
WUG asp.  If not, just ask the forum to help and we will.

I am going to create a separate post for the executable I think many
have asked this question before.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Anthony
Franklin
Sent: Thursday, September 09, 2004 1:20 PM
To: [EMAIL PROTECTED]
Subject: RE: [WhatsUp Forum] Sound Alert - Supress?

Yesterday I posted a busted script.  It will only process the first map.
Once you set the map into context, it will stay until it is changed.  It
does not change with each "start loaded map list" iteration. Therefore,
to make the script work, you would have to set the context for each map
and place the "acknowledge map alerts" tag after each "current map" tag
with the proper map filename.  If you have a lot of maps, that means a
lot of lines in the code.

If someone knows how to change the context on each iteration of the
"start loaded map list" tag shoot it to me.  That's where I am at.  

However,Since I have a lot of maps, by design preferences, I am writing
a Rebol script to create the code for each map I have, which will yield
a static page.  Meaning, that if another map is added I will have to add
another set of tags similar to this for each map that is added:  

<%CURRENT_MAP% mymap.wup>
<%IF% HAS_MAP_UNAKNOWLEDGED_DEVICES>
<%ACKNOWLEDGE_MAP_ALERTS%>
<%ENDIF%>

Those who have learned Rebol or who use it, after I finish my static
page, I am going to create  a script that parses a custom asp page that
only lists loaded map file names, and populates  each current_map tag
according to the number of loaded maps, which will dynamically write the
Global acknowledge page when the Global acknowledge link is clicked.

Global acknowlegements can be done from the console, but our Help Desk
personnel are not given access to the console.

If 


-----Original Message-----
From: Anthony Franklin [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 08, 2004 4:58 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [WhatsUp Forum] Sound Alert - Supress?

Also,

If you want to acknowledge all devices on all maps at once you can use
the following code if the page is called from the topview.  A link has
to be placed on the topview.asp page or whatever page you desire.  When
the page completes it's job, it will redirect to the topview as it is
below.

Create an WUG asp page with the following code:

<HTML>
<HEAD>
<TITLE>Global Device Acknowledge Page</TITLE>
<META HTTP-EQUIV="Refresh" CONTENT="2; URL=topview.asp"> </HEAD> <BODY>
<%START_LOADED_MAP_LIST%> <%CURRENT_MAP% (%MAP% FILENAME)>
<%ACKNOWLEDGE_MAP_ALERTS%> <%END_LOADED_MAP_LIST%>

</BODY>

This code will acknowledge every device on every map.  You can add
exclusions using the IF and MATCH tags.

This is could be used if you don't want to add code for each username.
This page was created for a different reason, but I thought I would post
it.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Hart, Donald
(EM, ITS)
Sent: Wednesday, September 08, 2004 10:57 AM
To: [EMAIL PROTECTED]
Subject: RE: [WhatsUp Forum] Sound Alert - Supress?

This is placed in the default.asp page.  You should see at the bottom
some of the code already. Here is the snippit for 3 people:
Replace:
 <!-- Check if we need to play the sound file-->
 <!-- This will iterate over every map if necessary 
        <%IF% HAS_ANY_MAP_STATE_CHANGED>
                <%IF% IS_SOUND_ENABLED>
                        <bgsound src="<%SOUND_TYPE% WEBDOWN>">
                <%ENDIF%>
        <%ENDIF%>

With:

<%IF% (%MATCH% (%USER% USER_NAME,"ID HERE FOR NO SOUNDS"))>
<%ELSE%>
        <%IF% (%MATCH% (%USER% USER_NAME,"ID HERE FOR NO SOUNDS"))>
        <%ELSE%>
                <%IF% (%MATCH% (%USER% USER_NAME,"ID HERE FOR NO
SOUNDS"))>
                <%ELSE%>
                        <!-- Check if we need to play the sound file-->
                        <!-- This will iterate over every map if
necessary 
                        <%IF% HAS_ANY_MAP_STATE_CHANGED>
                                <%IF% IS_SOUND_ENABLED>
                                        <bgsound
src="<%SOUND_TYPE%WEBDOWN>">
                                <%ENDIF%>
                        <%ENDIF%>
                <%ENDIF%>
        <%ENDIF%>
<%ENDIF%>


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James Amann
Sent: Wednesday, September 08, 2004 11:49 AM
To: [EMAIL PROTECTED]
Subject: RE: [WhatsUp Forum] Sound Alert - Supress?

Just a couple right now.  Thanks for the snippet.  It has been a little
while since I dove into the asp pages, in which page shold this be
placed?  Thanks again, james


>>> [EMAIL PROTECTED] 9/8/2004 11:15:35 AM >>>
 <!--<%IF% (%MATCH% (%USER% USER_NAME,"ID HERE FOR NO SOUNDS"))>
                        <%ELSE%>
                        <!-- Check if we need to play the sound file
-->
                        <!-- This will iterate over every map if
necessary 
                        <%IF% HAS_ANY_MAP_STATE_CHANGED>
                                <%IF% IS_SOUND_ENABLED>
                                        <bgsound src="<%SOUND_TYPE%
WEBDOWN>">
                                <%ENDIF%>
                        <%ENDIF%>
                        <%ENDIF%> -->

You can then just keep adding if else and endif as needed. How many
users you talking?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of James Amann
Sent: Wednesday, September 08, 2004 11:08 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [WhatsUp Forum] Sound Alert - Supress?

Some of our WUG web users do not want to hear the sound alerts, others
do.  Does anyone have any solutions in order to supress the sound on the
web interface by user or otherwise? 

Thanks

Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/ 


Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/whatsup_forum%40list.ipswitch.com/

Reply via email to