Here is the ASP code. It does a few things but it is pretty straight
forward. Feel free to make suggestions about improving it.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%include% StandardPageHeader.asp>
<title>Update and Add</title>
<META http-equiv="REFRESH" content="6000">
</head>
<%IF% ( %MATCH% (%USER% USER_NAME , "newstuff"))>
<%START_LOADED_MAP_LIST%>
<%IF% ( %MATCH% (%MAP% NAME, "xxxx"))>
<%START_DEVICE_LIST%>
<%DEVICESET% (NOTES, xxxx)>
<%DEVICESET% (HOSTNAME, xxxx)>
<%DEVICESET% (INFO_LINE_1,whoami)>
<%DEVICESET% (INFO_LINE_2, whereami) >
<%IF% (%MATCH% (%DEVICE% HOST_TYPE,"UPS"))>
<%ALERTSET% (ALERTS_ENABLED,1)>
<%ALERTSET% (NEW_ALERT,SMTPMail/UPS)>
<%ALERTSET% (START_TIME,0000)>
<%ALERTSET% (STOP_TIME,2400)>
<%ALERTSET% (TRIGGER,4)>
<%ALERTSET% (NOTIFY_EVEN_IF_ACKNOWLEDGED,1)>
<%ALERTSET% (ALERTS_ENABLED,1)>
<%ALERTSET% (NEW_ALERT,SMTPMail/Service
Center)>
<%ALERTSET% (START_TIME,0000)>
<%ALERTSET% (STOP_TIME,2400)>
<%ALERTSET% (TRIGGER,15)>
<%elseif% (%MATCH% (%DEVICE% HOST_TYPE,"Router"))>
<%ALERTSET% (ALERTS_ENABLED,1)>
<%ALERTSET% (NEW_ALERT,SMTPMail/Router)>
<%ALERTSET% (START_TIME,0000)>
<%ALERTSET% (STOP_TIME,2400)>
<%ALERTSET% (TRIGGER,4)>
<%ALERTSET% (NOTIFY_EVEN_IF_ACKNOWLEDGED,1)>
<%ELSE%>
<%ALERTSET% (ALERTS_ENABLED,1)>
<%ALERTSET% (NEW_ALERT,SMTPMail/Switch)>
<%ALERTSET% (START_TIME,0000)>
<%ALERTSET% (STOP_TIME,2400)>
<%ALERTSET% (TRIGGER,4)>
<%ALERTSET% (NOTIFY_ON_UP,1)>
<%ALERTSET% (NOTIFY_EVEN_IF_ACKNOWLEDGED,1)>
<%ALERTSET% (NEW_ALERT,SMTPMail/Service
Center)>
<%ALERTSET% (START_TIME,0000)>
<%ALERTSET% (STOP_TIME,2400)>
<%ALERTSET% (TRIGGER,15)>
<%ENDIF%>
<%END_DEVICE_LIST%>
<%DEVICESET% (NEW_DEVICE, xxx)>
<%DEVICESET% (IP_Address,xxx)>
<%DEVICESET% (HOST_TYPE, Router)>
<%DEVICESET% (HOSTNAME, xxx)>
<%DEVICESET% (INFO_LINE_1, whoami)>
<%DEVICESET% (INFO_LINE_2, whereami)>
<%ENDIF%>
<%END_LOADED_MAP_LIST%>
<%ELSE%>
Sorry <%USER% USER_NAME> you are not authorized to view this page
<%ENDIF%>
</html>
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Hart, Donald
(EM, ITS)
Sent: Wednesday, August 04, 2004 8:58 AM
To: [EMAIL PROTECTED]
Subject: RE: [WhatsUp Forum] multiple lines in info field
I would like to see that asp page. And I think I have the same problem
as you. I put information in for my routers and now can not save the
settings from the web if I try to change them.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glatt,
Robert
Sent: Wednesday, August 04, 2004 8:47 AM
To: wug (E-mail)
Subject: [WhatsUp Forum] multiple lines in info field
I have an ASP page that writes info to the INFO1 and INFO2 fields. What
I need to be able to do now is have more than one line in these fields.
For example in INFO 2 I want to put the street address as well as city
and state. I can not successfully get the data once I use a comma nor
can I get it to be on more than one line.
Anyone successfully do this and wants to share ??
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/