Name

global.TCPKeyGenerator

Description

No description available

Script

// Discovery
/* Generates the key for querying TCP connections
*  Aleck.Lin@service-now.com
*/

var TCPKeyGenerator = Class.create();

TCPKeyGenerator.getKey = function(type, ip, ci, port) {
  var key = type + '_' + ip + '_' + port;
  if (ip == '127.0.0.1' || ip == '::1')
      key += '_' + ci;
  
  return key;
};

TCPKeyGenerator.prototype = {
  initialize: function() {
  },

  type: 'TCPKeyGenerator'
}

Sys ID

c3c99781ef23110098d5925495c0fb92

Offical Documentation

Official Docs: