| 1 |
<%@ LANGUAGE="VBSCRIPT" %> |
| 2 |
<html> |
| 3 |
|
| 4 |
<head> |
| 5 |
<meta NAME="GENERATOR" Content="Microsoft FrontPage 3.0"> |
| 6 |
<meta HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1"> |
| 7 |
<title>MRTG DATA</title> |
| 8 |
</head> |
| 9 |
|
| 10 |
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#0000FF" alink="#0000FF"> |
| 11 |
|
| 12 |
<h1>Your-Router-Name_here</h1> |
| 13 |
<h3>Ports on Router</h3> |
| 14 |
<% |
| 15 |
Set fs = CreateObject("Scripting.FileSystemObject") |
| 16 |
Dim fs, f, f1, fc, fstr, linklen, bufflink |
| 17 |
Set fs = CreateObject("Scripting.FileSystemObject") |
| 18 |
Set f = fs.GetFolder("e:\inetpub\wwwroot\mrtg\pages\Your-Router-Name_here") |
| 19 |
Set fc = f.Files |
| 20 |
For Each f1 in fc |
| 21 |
fstr = LCase(f1.name) |
| 22 |
If Right(fstr, 8) = "-day.gif" Then |
| 23 |
linklen = Len(fstr) |
| 24 |
buffLink = Mid(fstr,1,(linklen - 8)) |
| 25 |
|
| 26 |
Response.Write ("<table><tr><td>") |
| 27 |
|
| 28 |
Response.Write("<a href=" & buffLink & ".html>") |
| 29 |
Response.Write ("<img src=" & f1.name & " border=0> ") |
| 30 |
Response.write ("</td><td>") |
| 31 |
Response.write (bufflink & "<br>") |
| 32 |
Response.Write VbCrLf |
| 33 |
Response.write "</td></tr></table>" & VbCrLf |
| 34 |
End If |
| 35 |
Next |
| 36 |
%> |
| 37 |
</body> |
| 38 |
</html> |