This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong.
xxxxxxxxxx
====== SDK Script webpage.are ======
<code c webpage.are>
/* DESC: This script will generate a page which can be viewed in the Web Manager
* Copyright (C) 2012 NetModule AG, Switzerland
*/
ID = 1;
/* show interface overview */
void show_interfaces ()
{
interfaces = mkarray();
nr_interfaces = 0;
status = nb_status("lan");
stlist = qsort(struct_fields(status));
for (j = 0; j < length(stlist); j++) {
key = stlist[j];
pos = strstr(key, "_ADDRESS");
if (!is_void(pos)) {
ifc = left(key, pos);
interfaces[nr_interfaces++] = ifc;
}
nb_page_respond(page, '<h3>LAN Interfaces Overview</h3>\n');