aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js')
-rw-r--r--web/js/nms-info-box.js1
-rw-r--r--web/js/nms-search.js16
2 files changed, 16 insertions, 1 deletions
diff --git a/web/js/nms-info-box.js b/web/js/nms-info-box.js
index c985e42..90ba12f 100644
--- a/web/js/nms-info-box.js
+++ b/web/js/nms-info-box.js
@@ -526,7 +526,6 @@ var nmsInfoPanel = function nmsInfoPanel(name,id) {
var switchSNMPPanel = function () {
nmsInfoPanel.call(this,"switchSNMP");
this.init = function() {
- this.addHandler("snmp");
this.refresh();
};
this.refresh = function(reason) {
diff --git a/web/js/nms-search.js b/web/js/nms-search.js
index 6d61536..fb8e725 100644
--- a/web/js/nms-search.js
+++ b/web/js/nms-search.js
@@ -80,6 +80,22 @@ nmsSearch.searchTest = function(id, sw) {
return true;
}
} catch (e) {}
+ try {
+ for (var x in nmsData.snmp.snmp[sw].misc.entPhysicalSerialNum) {
+ if (nmsData.snmp.snmp[sw].misc.entPhysicalSerialNum[x] == null) {
+ continue;
+ }
+ if (nmsData.snmp.snmp[sw].misc.entPhysicalSerialNum[x] == undefined) {
+ continue;
+ }
+ if (nmsData.snmp.snmp[sw].misc.entPhysicalSerialNum[x] == "") {
+ continue;
+ }
+ if (re.test(nmsData.snmp.snmp[sw].misc.entPhysicalSerialNum[x])) {
+ return true;
+ }
+ }
+ } catch (e) {}
if (re.test(nmsData.snmp.snmp[sw].misc.sysDescr[0])) {
return true;
}