I am trying to use the Java extension so that it can check if the server is alive or not. Expansion on here:
My code is up to date:
// tool scanner class function device scanner (list) {this.list = list; This.totalDevices = list.length; This.scan = function {for (var i = 0; i & lt; this.totaldevices; i ++) {$ .Ping (list [i], 1000) .done (function (success, url, time, On) (found (url);}) .file (function (success, url, time, on) {notFound (url);}); }} This.found = function (address) {warning (address); } This.notFound = function (address) {warning (address); }} Var Scanner = New Device Scanner ([KVMRxDefaultIP, KVMTx1DefaultIP, KVMTx2DefaultIP]); Click $ ("# BT1") (function () {scanner.scan ();});
How can I ping scanned or unsuccessful store results from device?
// device scanner class function device scanners (list) {var me = this; // here (1) this.list = list; This.totalDevices = list.length; This.scan = function {for (var i = 0; i & lt; this.totaldevices; i ++) {$ .Ping (list [i], 1000) .done (function (success, url, time, () ({My.property_done = true; // here (2) found (url);}) .file (function (url, timing, on) {me.property_failed = true; // here (3) nofound ( Url);}); }} This.found = function (address) {warning (address); } This.notFound = function (address) {warning (address); }} Var Scanner = New Device Scanner ([KVMRxDefaultIP, KVMTx1DefaultIP, KVMTx2DefaultIP]); Click $ ("# BT1") (function () {scanner.scan ();});
No comments:
Post a Comment