Name
global.AddSshCommandParamsToProbe
Description
Take parameters of the SshCommand probe and add to the current probe. This is used by probes using the SSHProviderTerminal class, when launching the SshCommand probe
Script
var AddSshCommandParamsToProbe = Class.create();
AddSshCommandParamsToProbe.prototype = {
initialize: function() {
},
/*
* find the parameters of the SshCommand probe and pass to the current probe
*/
addSshCommandParameters: function(probe) {
var probeParamGr = new GlideRecord('discovery_probe_parameter');
probeParamGr.addQuery('probe','e07f03e8c0a800670196a29829b0e452'); // the SshCommand probe
probeParamGr.query();
while (probeParamGr.next()) {
var parName = probeParamGr.name;
if (parName) {
probe.addParameter(parName, probeParamGr.value);
}
}
},
type: 'AddSshCommandParamsToProbe'
};
Sys ID
11a90b60c36003003e76741e81d3ae96