Whatsup Gold public satus page

Here is a simple example of a WhatsUp Gold public status page to show to end users. It will show the status of devices without giving them extra information they do not need.


<% @LANGUAGE="VBScript"%>

<% publicview = "Group To Show" Set adoCon = Server.CreateObject("ADODB.Connection") adoCon.Open "DSN=WhatsUp" Set rs = Server.CreateObject("ADODB.Recordset") strSQL = "SELECT * FROM DeviceGroup where sGroupName = '" & publicview & "';" rs.open strSQL,adoCon groupid = rs("nDeviceGroupID") rs.close strSQL = "Select * from PivotDeviceToGroup where nDeviceGroupID = " & groupid rs.open strSQL,adoCon deviceswewant = "" do while not rs.eof if not deviceswewant = "" then deviceswewant = deviceswewant & " OR " end if deviceswewant = deviceswewant & "(nDeviceID=" & rs("nDeviceID") & ")" rs.movenext loop rs.close strSQL = "select * from Device where " & deviceswewant & ";" rs.open strSQL,adoCon %>
<% do while not rs.eof 'accessing null data seems to corrupt the recordset. Put all your values into variabled before checking maintenacemode status = rs("sStatus") name = rs("sDisplayName") maintenancemode = rs("bManualMaintenanceMode") response.write "" response.write "" if not isnull(maintenancemode) then response.write "" elseif status = "" then response.write "" else response.write "" end if response.write "" rs.movenext loop rs.close %>
name status
" & name & "" & "Maintenace Mode :|" & "" & "Happy Camper :)" & "" & "Experiencing Problems :(" & "



Imail Web Administration Page SSO.

In my opinion Imail’s Active Directory integration is rudimentary at best. They took the all or nothing approach. The following code is something I wrote to let users logon with their Active Directory account to manage their Distribution Lists. It generates a random password in Imail and then automatically logs them in to the system. The user never knows their Imail password and they think its all connected.

Its also a simple example of HTML form automation with javascript.

IIS ASP Redirect

This is a small asp script that will let you have alias in IIS with out having to make them in IIS. You can put this in a custom 404 page.

so in my site, if you go to http://www.stephenjc.com/google it will redirect you to google’s site.