1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 (c) 2005 U.S. Robotics Corporation
7 <title>Device » SNMP</title>
9 <link href="usr_main.css" rel="stylesheet" type="text/css">
10 <link href="usr_menus.css" rel="stylesheet" type="text/css"><script src="usr_menus.js" type="text/javascript"></script><script src="usr_menus_build.js" type="text/javascript"></script>
11 <script src="usr_common.js" type="text/javascript"></script>
13 <meta HTTP-EQUIV='Pragma' CONTENT='no-cache'>
15 <script type="text/javascript" src="util.js"></script>
16 <script type="text/javascript">
18 setPageTitle("<%ejGetWlJS(wlInterface)%>");
20 var state = '<%ejGetJS(snmpRefresh)%>';
22 var code = 'location = "snmpconfig.cgi?snmpRefresh=0"';
27 with ( document.forms[0] ) {
28 status[<%ejGetJS(snmpStatus)%>].checked = true;
29 rocommunity.value = '<%ejGetJS(snmpRoCommunity)%>';
30 rwcommunity.value = '<%ejGetJS(snmpRwCommunity)%>';
31 sysName.value = '<%ejGetJS(snmpSysName)%>';
32 sysContact.value = '<%ejGetJS(snmpSysContact)%>';
33 sysLocation.value = '<%ejGetJS(snmpSysLocation)%>';
34 trapIp.value = '<%ejGetJS(snmpTrapIp)%>';
39 var loc = 'snmpconfig.cgi?';
40 with ( document.forms[0] ) {
41 if (rocommunity.value == '') {
42 alert('Read community is required.');
45 if (rwcommunity.value == '') {
46 alert('Set community is required.');
49 if ( status[1].checked == true )
50 loc += 'snmpStatus=1';
52 loc += 'snmpStatus=0';
53 if (rocommunity.value.length > 15) {
54 alert('The length of read community (' + rocommunity.value.length + ') is too long [0-15].');
57 loc += '&snmpRoCommunity=' + encodeUrl(rocommunity.value);
58 if (rwcommunity.value.length > 15) {
59 alert('The length of set community (' + rwcommunity.value.length + ') is too long [0-15].');
62 loc += '&snmpRwCommunity=' + encodeUrl(rwcommunity.value);
63 if (sysName.value.length > 15) {
64 alert('The length of sysName (' + sysName.value.length + ') is too long [0-15].');
67 loc += '&snmpSysName=' + encodeUrl(sysName.value);
68 if (sysContact.value.length > 15) {
69 alert('The length of sysContact (' + sysContact.value.length + ') is too long [0-15].');
72 loc += '&snmpSysContact=' + encodeUrl(sysContact.value);
73 if (sysLocation.value.length > 15) {
74 alert('The length of sysLocation (' + sysLocation.value.length + ') is too long [0-15].');
77 loc += '&snmpSysLocation=' + encodeUrl(sysLocation.value);
78 if ( isValidIpAddress(trapIp.value) == false && trapIp.value != '0.0.0.0') {
79 alert('Trap Management IP address "' + trapIp.value + '" is invalid IP address.');
82 loc += '&snmpTrapIp=' + trapIp.value;
84 var code = 'location = "' + loc + '"';
91 <body onload="initMenu(); frmLoad();">
93 <script type="text/javascript">
94 writeHeader("Device");
99 <p>Simple Network Management Protocol (SNMP) allows a management application to
100 retrieve statistics and status from the SNMP agent in this device.</p>
102 <p>Select the desired values and press <b>Apply</b> to configure the SNMP options.</p>
106 <input name='status' id="optSNMPDisable" type='radio'> <label for="optSNMPDisable">Disable SNMP agent</label><br>
107 <input name='status' id="optSNMPEnable" type='radio'> <label for="optSNMPEnsable">Enable SNMP agent</label>
110 <table border="0" cellpadding="0" cellspacing="0">
112 <td><label for="rocommunity">Read community:</label></td>
113 <td><input type='text' name='rocommunity' id='rocommunity' size="20"></td>
116 <td><label for="rwcommunity">Set community:</label></td>
117 <td><input type='text' name='rwcommunity' id='rwcommunity' size="20"></td>
120 <td><label for="sysName">System name:</label></td>
121 <td><input type='text' name='sysName' id='sysName' size="20"></td>
124 <td><label for="sysLocation">System location:</label></td>
125 <td><input type='text' name='sysLocation' id='sysLocation' size="20"></td>
128 <td><label for="sysContact">System contact:</label></td>
129 <td><input type='text' name='sysContact' id='sysContact' size="20"></td>
132 <td><label for="trapIp">Trap manager IP:</label></td>
133 <td><input type='text' name='trapIp' id='trapIp' size="20"></td>
137 <p><input type='button' onClick='btnApply()' value='Apply'></p>
141 <script type="text/javascript">