You have it inside a devicelist, so it will do it for every device on the map.

-----Original Message-----
   >From: "Glatt, Robert" <[EMAIL PROTECTED]>
   >Sent: 7/23/04 1:16:27 PM
   >To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
   >Subject: [WhatsUp Forum] wierd behavior
   >
   >!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
   >I am attempting to use ASP pages to help populate newly created maps. The
   >idea is to discover the network. Name the map then run the ASP page which
   >would put in the common data on all devices. That part works fine. I also
   >want to have the ASP add a wan router to the map with the standard
   >information. So, I tried the following. I got hundreds of new devices before
   >i managed to stop. Anyone have any clue as to why it didn't do what I
   >expected? which is add just one device.
   >
   >
   >
   ><html>
   ><head>
   >    <%include% StandardPageHeader.asp>
   >
   ><title>Host Listing</title>
   ><META http-equiv="REFRESH" content="6000">
   ></head>
   >
   >
   > <%IF% ( %MATCH% (%USER% USER_NAME , "abc"))>
   >
   >    <%START_LOADED_MAP_LIST%>  
   >            <%START_DEVICE_LIST%>
   >            <%IF% ( %MATCH% (%MAP% NAME, "mymap"))>
   ><%DEVICESET% (NEW_DEVICE, abc123)>
   ><%DEVICESET% (IP_Address,123.456.123.789)>
   ><%DEVICESET% (HOST_TYPE, Router)>
   >            
   >            <%ENDIF%>       
   >            <%END_DEVICE_LIST%>
   >    <%END_LOADED_MAP_LIST%>  
   ><%ELSE%>
   >
   >Sorry <%USER% USER_NAME>  you are not authorized to view this page
   ><%ENDIF%>
   >
   >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/

<<winmail.dat>>

Reply via email to