Kostis Netzwerkberatung
Konstantinos Kostis
Talstr. 25, D-63322 Rödermark
Tel. +49 6074 881056, FAX 881058
kosta@kostis.net, http://www.kostis.net/

You may use this software free of charge at your own risk

netdb 3.0.6 (2001-01-29)


/etc/netdb/htm/

template HTML pages for netdb admin GUI

File   Content
create.htm   GUI input form for creating a new netdb entry
delete.htm   GUI input form for deleting a netdb entry
edit.htm   GUI input form for editing a new netdb entry
input.htm   GUI main menu
rename.htm   GUI input form for renaming a netdb entry

Depending on which properties you need you can customize your netdb forms yourself.

In a TCP/IP only network with no IPX/SPX, DECnet and X.25, those properties should not appear in any entry input mask, hence the lines containing those properties can be deleted. Keep a copy of modifed files since they will be overwritten by future netdb updates. Keep the lines with <input type="hidden" name="..." value="%...%"> intact in any case since otherwise you may loose data.

/etc/netdb/htm/create.htm

HTML template

Create Entry

Used by

The main difference between create.htm and edit.htm is that create.htm has four additional lines (marked red).

Lines marked green may not be needed in most networks. You can delete (some of) those lines, but make your own backup of any file you change since future netdb updates might overwrite them.

<!doctype html public "-//W3C//DTD HTML 3.2 Final//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rev="made" href="mailto:kosta@kostis.net">
    <title>netdb Create</title>
  </head>
  <body bgcolor="#FFFFFF">
    <h1><font face="Arial">netdb Create</font></h1>
    <h2>
      <font face="Arial" color="#FF0000">
        <strong>Please replace ipaddr with proper IP address!</strong>
      </font>
    </h2>
    <form action="/cgi-bin/netdb/admin/netdbedt.cgi" method="POST">
      <input type="hidden" name="hostname" value="%hostname%">
      <input type="hidden" name="domain" value="%domain%">
      <input type="hidden" name="ohostname" value="%hostname%">
      <input type="hidden" name="odomain" value="%domain%">
      <input type="hidden" name="oipaddr" value="%ipaddr%">
      <input type="hidden" name="oipmask" value="%ipmask%">
      <input type="hidden" name="omac" value="%mac%">
      <input type="hidden" name="ocomment" value="%comment%">
      <input type="hidden" name="oisdnarea" value="%isdnarea%">
      <input type="hidden" name="oisdnnum" value="%isdnnum%">
      <input type="hidden" name="ox25" value="%x25%">
      <input type="hidden" name="oipxaddr" value="%ipxaddr%">
      <input type="hidden" name="oipxlan" value="%ipxlan%">
      <input type="hidden" name="odecnet" value="%decnet%">
      <input type="hidden" name="olocation" value="%location%">
      <input type="hidden" name="ohubport" value="%hubport%">
      <input type="hidden" name="ouser" value="%user%">
      <input type="hidden" name="ocnames" value="%cnames%">
      <table border="1">
        <tr>
          <td bgcolor="#C0C0C0"><strong>Property</strong></td>
          <td bgcolor="#C0C0C0"><strong>Value</strong></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">hostname</font></td>
          <td><strong>%hostname%</strong></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">domain</font></td>
          <td><strong>%domain%</strong><td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipaddr</font></td>
          <td><input type="text" size="15" name="ipaddr" value="%ipaddr%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipmask</font></td>
          <td><input type="text" size="15" name="ipmask" value="%ipmask%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">mac</font></td>
          <td><input type="text" size="17" name="mac" value="%mac%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">comment</font></td>
          <td><input type="text" size="72" name="comment" value="%comment%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">isdnarea</font></td>
          <td><input type="text" size="4" name="isdnarea" value="%isdnarea%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">isdnnum</font></td>
          <td><input type="text" size="9" name="isdnnum" value="%isdnnum%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">x25</font></td>
          <td><input type="text" size="30" name="x25" value="%x25%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipxaddr</font></td>
          <td><input type="text" size="8" name="ipxaddr" value="%ipxaddr%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipxlan</font></td>
          <td><input type="text" size="8" name="ipxlan" value="%ipxlan%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">decnet</font></td>
          <td><input type="text" size="7" name="decnet" value="%decnet%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">location</font></td>
          <td><input type="text" size="72" name="location" value="%location%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">hubport</font></td>
          <td><input type="text" size="72" name="hubport" value="%hubport%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">user</font></td>
          <td><input type="text" size="32" name="user" value="%user%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">cnames</font></td>
          <td><input type="text" size="255" name="cnames" value="%cnames%"></td>
        </tr>
      </table>
      <p><input type="submit" name="ACTION" value="Save"></p>
    </form>
  </body>
</html>

/etc/netdb/htm/delete.htm

HTML template

Delete Entry

Used by

<!doctype html public "-//W3C//DTD HTML 3.2 Final//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rev="made" href="mailto:kosta@kostis.net">
    <title>netdb Delete</title>
  </head>
  <body bgcolor="#FFFFFF">
    <h1><font face="Arial">netdb Delete</font></h1>
    <form action="/cgi-bin/netdb/admin/
netdbedt.cgi" method="POST">
      <input type="hidden" name="hostname" value="%hostname%">
      <input type="hidden" name="domain" value="%domain%">
      <input type="hidden" name="cnames" value="%cnames%">
      <input type="hidden" name="ohostname" value="%hostname%">
      <input type="hidden" name="odomain" value="%domain%">
      <input type="hidden" name="oipaddr" value="%ipaddr%">
      <input type="hidden" name="oipmask" value="%ipmask%">
      <input type="hidden" name="omac" value="%mac%">
      <input type="hidden" name="ocomment" value="%comment%">
      <input type="hidden" name="oisdnarea" value="%isdnarea%">
      <input type="hidden" name="oisdnnum" value="%isdnnum%">
      <input type="hidden" name="ox25" value="%x25%">
      <input type="hidden" name="oipxaddr" value="%ipxaddr%">
      <input type="hidden" name="oipxlan" value="%ipxlan%">
      <input type="hidden" name="odecnet" value="%decnet%">
      <input type="hidden" name="olocation" value="%location%">
      <input type="hidden" name="ohubport" value="%hubport%">
      <input type="hidden" name="ouser" value="%user%">
      <input type="hidden" name="ocnames" value="%cnames%">
      <table border="1">
        <tr>
          <td bgcolor="#C0C0C0"><strong>Property</strong></td>
          <td bgcolor="#C0C0C0"><strong>Value</strong></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">hostname</font></td>
          <td><strong>%hostname%</strong></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">domain</font></td>
          <td>%domain% </td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipaddr</font></td>
          <td>%ipaddr% </td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipmask</font></td>
          <td>%ipmask% </td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">mac</font></td>
          <td>%mac% </td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">comment</font></td>
          <td>%comment% </td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">isdnarea</font></td>
          <td>%isdnarea% </td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">isdnnum</font></td>
          <td>%isdnnum% </td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">x25</font></td>
          <td>%x25% </td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipxaddr</font></td>
          <td>%ipxaddr% </td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipxlan</font></td>
          <td>%ipxlan% </td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">decnet</font></td>
          <td>%decnet% </td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">location</font></td>
          <td>%location% </td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">hubport</font></td>
          <td>%hubport% </td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">user</font></td>
          <td>%user% </td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">cnames</font></td>
          <td>%cnames% </td>
        </tr>
      </table>
      <p><input type="submit" name="ACTION" value="Delete"></p>
    </form>
  </body>
</html>

/etc/netdb/htm/edit.htm

HTML template

Edit Entry

Used by

<!doctype html public "-//W3C//DTD HTML 3.2 Final//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rev="made" href="mailto:kosta@kostis.net">
    <title>netdb Edit</title>
  </head>
  <body bgcolor="#FFFFFF">
    <h1><font face="Arial">netdb Edit</font></h1>
    <form action="/cgi-bin/netdb/admin/
netdbedt.cgi" method="POST">
      <input type="hidden" name="hostname" value="%hostname%">
      <input type="hidden" name="domain" value="%domain%">
      <input type="hidden" name="ohostname" value="%hostname%">
      <input type="hidden" name="odomain" value="%domain%">
      <input type="hidden" name="oipaddr" value="%ipaddr%">
      <input type="hidden" name="oipmask" value="%ipmask%">
      <input type="hidden" name="omac" value="%mac%">
      <input type="hidden" name="ocomment" value="%comment%">
      <input type="hidden" name="oisdnarea" value="%isdnarea%">
      <input type="hidden" name="oisdnnum" value="%isdnnum%">
      <input type="hidden" name="ox25" value="%x25%">
      <input type="hidden" name="oipxaddr" value="%ipxaddr%">
      <input type="hidden" name="oipxlan" value="%ipxlan%">
      <input type="hidden" name="odecnet" value="%decnet%">
      <input type="hidden" name="olocation" value="%location%">
      <input type="hidden" name="ohubport" value="%hubport%">
      <input type="hidden" name="ouser" value="%user%">
      <input type="hidden" name="ocnames" value="%cnames%">
      <table border="1">
        <tr>
          <td bgcolor="#C0C0C0"><strong>Property</strong></td>
          <td bgcolor="#C0C0C0"><strong>Value</strong></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">hostname</font></td>
          <td><strong>%hostname%</strong></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">domain</font></td>
          <td><strong>%domain%</strong></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipaddr</font></td>
          <td><input type="text" size="15" name="ipaddr" value="%ipaddr%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipmask</font></td>
          <td><input type="text" size="15" name="ipmask" value="%ipmask%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">mac</font></td>
          <td><input type="text" size="17" name="mac" value="%mac%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">comment</font></td>
          <td><input type="text" size="72" name="comment" value="%comment%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">isdnarea</font></td>
          <td><input type="text" size="4" name="isdnarea" value="%isdnarea%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">isdnnum</font></td>
          <td><input type="text" size="9" name="isdnnum" value="%isdnnum%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">x25</font></td>
          <td><input type="text" size="30" name="x25" value="%x25%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipxaddr</font></td>
          <td><input type="text" size="8" name="ipxaddr" value="%ipxaddr%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipxlan</font></td>
          <td><input type="text" size="8" name="ipxlan" value="%ipxlan%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">decnet</font></td>
          <td><input type="text" size="7" name="decnet" value="%decnet%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">location</font></td>
          <td><input type="text" size="72" name="location" value="%location%"></td>
        <tr>
          <td><font size="2" face="Courier New">location</font></td>
          <td><input type="text" size="72" name="location" value="%location%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">hubport</font></td>
          <td><input type="text" size="72" name="hubport" value="%hubport%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">user</font></td>
          <td><input type="text" size="32" name="user" value="%user%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">cnames</font></td>
          <td><input type="text" size="255" name="cnames" value="%cnames%"></td>
        </tr>
      </table>
      <p><input type="submit" name="ACTION" value="Save"></p>
    </form>
  </body>
</html>

/etc/netdb/htm/input.htm

HTML

Main input menu

Used by

<!doctype html public "-//W3C//DTD HTML 3.2 Final//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rev="made" href="mailto:kosta@kostis.net">
    <title>netdb Input</title>
  </head>
  <body bgcolor="#FFFFFF">
    <h1><font face="Arial">netdb Input</font></h1>
    <form action="/cgi-bin/netdb/admin/
netdbget.cgi" method="POST">
      <table border="1">
        <tr>
          <td><font size="2" face="Courier New">hostname</font></td>
          <td><input type="text" size="30" name="hostname"></td>
        </tr>
      </table>
      <table border="0">
        <tr>
          <td><input type="submit" name="ACTION" value="Create/Edit"></td>
          <td><input type="submit" name="ACTION" value="Rename"></td>
          <td><input type="submit" name="ACTION" value="Delete"></td>
        </tr>
      </table>
    </form>
  </body>
</html>

/etc/netdb/htm/rename.htm

HTML template

Rename entry

Used by

<!doctype html public "-//W3C//DTD HTML 3.2 Final//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link rev="made" href="mailto:kosta@kostis.net">
    <title>netdb Rename</title>
  </head>
  <body bgcolor="#FFFFFF">
    <h1><font face="Arial">netdb Rename</font></h1>
    <form action="/cgi-bin/netdb/admin/
netdbedt.cgi" method="POST">
      <input type="hidden" name="domain" value="%domain%">
      <input type="hidden" name="ipaddr" value="%ipaddr%">
      <input type="hidden" name="ipmask" value="%ipmask%">
      <input type="hidden" name="mac" value="%mac%">
      <input type="hidden" name="comment" value="%comment%">
      <input type="hidden" name="isdnarea" value="%isdnarea%">
      <input type="hidden" name="isdnnum" value="%isdnnum%">
      <input type="hidden" name="x25" value="%x25%">
      <input type="hidden" name="ipxaddr" value="%ipxaddr%">
      <input type="hidden" name="ipxlan" value="%ipxlan%">
      <input type="hidden" name="decnet" value="%decnet%">
      <input type="hidden" name="location" value="%location%">
      <input type="hidden" name="hubport" value="%hubport%">
      <input type="hidden" name="user" value="%user%">
      <input type="hidden" name="cnames" value="%cnames%">
      <input type="hidden" name="ohostname" value="%hostname%">
      <input type="hidden" name="odomain" value="%domain%">
      <input type="hidden" name="oipaddr" value="%ipaddr%">
      <input type="hidden" name="oipmask" value="%ipmask%">
      <input type="hidden" name="omac" value="%mac%">
      <input type="hidden" name="ocomment" value="%comment%">
      <input type="hidden" name="oisdnarea" value="%isdnarea%">
      <input type="hidden" name="oisdnnum" value="%isdnnum%">
      <input type="hidden" name="ox25" value="%x25%">
      <input type="hidden" name="oipxaddr" value="%ipxaddr%">
      <input type="hidden" name="oipxlan" value="%ipxlan%">
      <input type="hidden" name="odecnet" value="%decnet%">
      <input type="hidden" name="olocation" value="%location%">
      <input type="hidden" name="ohubport" value="%hubport%">
      <input type="hidden" name="ouser" value="%user%">
      <input type="hidden" name="ocnames" value="%cnames%">
      <table border="1">
        <tr>
          <td bgcolor="#C0C0C0"><strong>Property</strong></td>
          <td bgcolor="#C0C0C0"><strong>Value</strong></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">hostname</font></td>
          <td><input type="text" size="30" name="hostname" value="%hostname%"></td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">domain</font></td>
          <td>%domain%</td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipaddr</font></td>
          <td>%ipaddr%</td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipmask</font></td>
          <td>%ipmask%</td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">mac</font></td>
          <td>%mac%</td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">comment</font></td>
          <td>%comment%</td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">isdnarea</font></td>
          <td>%isdnarea%</td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">isdnnum</font></td>
          <td>%isdnnum%</td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">x25</font></td>
          <td>%x25%</td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipxaddr</font></td>
          <td>%ipxaddr%</td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">ipxlan</font></td>
          <td>%ipxlan%</td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">decnet</font></td>
          <td>%decnet%</td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">location</font></td>
          <td>%location%</td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">hubport</font></td>
          <td>%hubport%</td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">user</font></td>
          <td>%user%</td>
        </tr>
        <tr>
          <td><font size="2" face="Courier New">cnames</font></td>
          <td>%cnames%</td>
        </tr>
      </table>
      <p><input type="submit" name="ACTION" value="Save"></p>
    </form>
  </body>
</html>