<% theme = Request.Cookies("theme") IF theme = "" THEN theme="bg-theme1" END IF search = Request.Querystring("search") '----------------------------------------------------Is this the IP address of a printer??? ---------------------------------------------- IF search <> "" THEN strSQL = "Select printerid FROM printers where ipaddress='" &search &"'" set rs = objconn.Execute(strSQL) IF NOT rs.EOF THEN printerid = rs("printerid") objConn.Close Response.Redirect "./displayprinter.asp?printerid="&printerid END IF END IF '-------------------------------------------------------Is this the IP address of a PC--------------------------------------------------- IF search <> "" THEN strSQL = "Select pcid FROM pc_network_interfaces where ipaddress='" &search &"'" set rs = objconn.Execute(strSQL) IF NOT rs.EOF THEN pcid = rs("pcid") objConn.Close Response.Redirect "./displaypc.asp?pcid="&pcid END IF END IF '----------------------------------------------------------------------------------------------------------------------------------------- subnetid = Request.Querystring("subnetid") strSQL = "SELECT *,INET_NTOA(ipstart) AS subnetstart FROM subnets,subnettypes WHERE subnets.subnettypeid=subnettypes.subnettypeid AND subnets.isactive=1 AND subnetid="&subnetid set rs = objconn.Execute(strSQL) ipdiff = rs("ipend")-rs("ipstart") 'response.write(ipdiff) %>
Vlan # Zone Network CIDR Description
"> "> ">


Subnet Details
Vlan # Zone Network CIDR Description
<%Response.Write(rs("vlan"))%> <%Response.Write(rs("subnettype"))%> <%Response.Write(rs("subnetstart"))%> <%Response.Write(rs("cidr"))%> <%Response.Write(rs("description"))%>
<% objConn.Close %>