2022-04-21 17:49:03 +02:00
|
|
|
<style id="node-red-node-snmp-common-style">
|
|
|
|
.form-row.form-row-snmpv1v2.hidden {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
.form-row.form-row-snmpv3.hidden {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
.form-row.form-row-snmpv3-auth.hidden {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script type="text/javascript" id="node-red-node-snmp-common-script">
|
|
|
|
const node_snmp_common = {
|
|
|
|
oneditprepare: function (node) {
|
2022-05-07 17:40:57 +02:00
|
|
|
const compat = { "v1": "1", "v2": "2c", "v2c": "2c", "v3": "3" };
|
|
|
|
if(compat[node.version]) {
|
|
|
|
node.version = compat[node.version];
|
|
|
|
} else if(["1","2c","3"].indexOf(node.version) < 0) {
|
|
|
|
node.version = "1";
|
|
|
|
}
|
2022-04-21 17:49:03 +02:00
|
|
|
$("#node-input-version").on("change", function(evt) {
|
2022-05-07 17:40:57 +02:00
|
|
|
const isV3 = $("#node-input-version").val() === "3";
|
2022-04-21 17:49:03 +02:00
|
|
|
$(".form-row-snmpv1v2").toggleClass("hidden", isV3);
|
|
|
|
$(".form-row-snmpv3").toggleClass("hidden", !isV3);
|
|
|
|
$("#node-input-auth").trigger("change");
|
|
|
|
});
|
|
|
|
$("#node-input-auth").on("change", function(evt) {
|
2022-05-07 17:40:57 +02:00
|
|
|
const isV3 = $("#node-input-version").val() === "3";
|
2022-04-21 17:49:03 +02:00
|
|
|
const auth = $("#node-input-auth").val();
|
|
|
|
if(isV3) {
|
|
|
|
switch (auth) {
|
|
|
|
case "authNoPriv":
|
|
|
|
$(".form-row-snmpv3-auth").toggleClass("hidden", false);
|
|
|
|
$(".form-row-snmpv3-priv").toggleClass("hidden", true);
|
|
|
|
break;
|
|
|
|
case "authPriv":
|
|
|
|
$(".form-row-snmpv3-auth").toggleClass("hidden", false);
|
|
|
|
$(".form-row-snmpv3-priv").toggleClass("hidden", false);
|
|
|
|
break;
|
|
|
|
default: //"noAuthNoPriv":
|
|
|
|
$(".form-row-snmpv3-auth").toggleClass("hidden", true);
|
|
|
|
$(".form-row-snmpv3-priv").toggleClass("hidden", true);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2022-05-07 17:40:57 +02:00
|
|
|
$("#node-input-version").val(node.version);
|
|
|
|
if(!$("#node-input-auth").val()) {
|
|
|
|
$("#node-input-auth").val("noAuthNoPriv");
|
|
|
|
}
|
2022-04-21 17:49:03 +02:00
|
|
|
$("#node-input-version").trigger("change");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
2019-11-06 10:30:46 +01:00
|
|
|
<script type="text/html" data-template-name="snmp">
|
2015-03-04 20:55:53 +01:00
|
|
|
<div class="form-row">
|
2017-06-27 00:02:34 +02:00
|
|
|
<label for="node-input-host"><i class="fa fa-globe"></i> Host</label>
|
2018-07-17 10:41:52 +02:00
|
|
|
<input type="text" id="node-input-host" placeholder="ip address(:optional port)">
|
2015-03-04 20:55:53 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-version"><i class="fa fa-bookmark"></i> Version</label>
|
2018-01-28 18:50:41 +01:00
|
|
|
<select type="text" id="node-input-version" style="width:150px;">
|
2022-05-07 17:40:57 +02:00
|
|
|
<option value="1">v1</option>
|
|
|
|
<option value="2c">v2c</option>
|
|
|
|
<option value="3">v3</option>
|
2015-03-04 20:55:53 +01:00
|
|
|
</select>
|
2018-01-28 18:50:41 +01:00
|
|
|
<span style="margin-left:50px;">Timeout</span>
|
|
|
|
<input type="text" id="node-input-timeout" placeholder="secs" style="width:50px; direction:rtl; vertical-align:baseline;"> S
|
2015-03-04 20:55:53 +01:00
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv1v2">
|
2020-10-24 03:07:16 +02:00
|
|
|
<label for="node-input-community"><i class="fa fa-user"></i> Community</label>
|
|
|
|
<input type="text" id="node-input-community" placeholder="public">
|
|
|
|
</div>
|
|
|
|
<!-- Following Data is used for V3 Only -->
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3">
|
2020-10-24 03:07:16 +02:00
|
|
|
<label for="node-input-username"><i class="fa fa-user"></i> Username</label>
|
|
|
|
<input type="text" id="node-input-username" placeholder="username">
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3">
|
|
|
|
<label for="node-input-auth"><i class="fa fa-user-secret"></i> Auth.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-auth" style="width:150px;">
|
|
|
|
<option value="noAuthNoPriv">noAuthNoPriv</option>
|
|
|
|
<option value="authNoPriv">authNoPriv</option>
|
|
|
|
<option value="authPriv">authPriv</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-auth">
|
|
|
|
<label for="node-input-authprot"><i class="fa fa-shield"></i> Auth.Prot.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-authprot" style="width:150px;">
|
|
|
|
<option value="MD5">MD5</option>
|
|
|
|
<option value="SHA">SHA</option>
|
|
|
|
</select>
|
2022-04-21 17:49:03 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-auth">
|
|
|
|
<label for="node-input-authkey"><i class="fa fa-key"></i> Auth.Key</label>
|
|
|
|
<input type="password" id="node-input-authkey" placeholder="Authentication key">
|
|
|
|
</div>
|
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-priv">
|
|
|
|
<label for="node-input-privprot"><i class="fa fa-shield"></i> Priv.Prot.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-privprot" style="width:150px;">
|
|
|
|
<option value="DES">DES</option>
|
|
|
|
<option value="AES">AES</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-priv">
|
|
|
|
<label for="node-input-privkey"><i class="fa fa-key"></i> Priv.Key</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<input type="password" id="node-input-privkey" placeholder="Encryption key">
|
|
|
|
</div>
|
|
|
|
<!-- End of unique data for V3 -->
|
2015-03-04 20:55:53 +01:00
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-oids"><i class="fa fa-tags"></i> OIDs</label>
|
|
|
|
<textarea rows="4" cols="60" id="node-input-oids" placeholder="e.g. 1.3.6.1.2.1.1.5.0" style="width:70%;"></textarea>
|
|
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
|
|
|
<input type="text" id="node-input-name" placeholder="Name">
|
|
|
|
</div>
|
|
|
|
<div class="form-tips">Tip: Multiple OIDs can be separated by commas.</div>
|
|
|
|
</script>
|
|
|
|
|
2019-11-06 10:30:46 +01:00
|
|
|
<script type="text/html" data-help-name="snmp">
|
2015-03-04 20:55:53 +01:00
|
|
|
<p>Simple SNMP oid or oid list fetcher. Triggered by any input.</p>
|
2017-04-22 16:53:04 +02:00
|
|
|
<p><code>msg.host</code> may contain the host.</p>
|
|
|
|
<p><code>msg.community</code> may contain the community.</p>
|
2022-04-21 17:49:03 +02:00
|
|
|
<p><code>msg.username</code> may contain the username. (V3 only)</p>
|
|
|
|
<p><code>msg.authkey</code> may contain the digest security key. (V3 only)</p>
|
|
|
|
<p><code>msg.privkey</code> may contain the encryption security key. (V3 only)</p>
|
2016-02-11 23:50:30 +01:00
|
|
|
<p><code>msg.oid</code> may contain a comma separated list of oids to request. (no spaces)</p>
|
2019-02-15 23:15:33 +01:00
|
|
|
<p>OIDs must be numeric. iso. is the same a 1. </p>
|
2016-02-11 23:50:30 +01:00
|
|
|
<p>The node will output <code>msg.payload</code> and <code>msg.oid</code>.</p>
|
2015-03-04 20:55:53 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2017-06-27 00:02:34 +02:00
|
|
|
RED.nodes.registerType('snmp', {
|
2015-03-04 20:55:53 +01:00
|
|
|
category: 'network-input',
|
2017-06-27 00:02:34 +02:00
|
|
|
color: "YellowGreen",
|
2015-03-04 20:55:53 +01:00
|
|
|
defaults: {
|
2017-06-27 00:02:34 +02:00
|
|
|
host: { value: "127.0.0.1" },
|
2022-05-07 17:40:57 +02:00
|
|
|
version: { value: "1", required: true },
|
2020-10-24 03:07:16 +02:00
|
|
|
timeout: { value: 5 },
|
2017-06-27 00:02:34 +02:00
|
|
|
community: { value: "public" },
|
2020-10-24 03:07:16 +02:00
|
|
|
auth: { value: "noAuthNoPriv", required: true },
|
2022-04-21 17:49:03 +02:00
|
|
|
authprot: { value: "MD5", required: true },
|
|
|
|
privprot: { value: "DES", required: true },
|
2017-06-27 00:02:34 +02:00
|
|
|
oids: { value: "" },
|
2022-04-21 17:49:03 +02:00
|
|
|
name: { value: "" },
|
|
|
|
},
|
|
|
|
credentials: {
|
|
|
|
username: { type: "text" },
|
|
|
|
authkey: { type: "password" },
|
|
|
|
privkey: { type: "password" }
|
2015-03-04 20:55:53 +01:00
|
|
|
},
|
2017-06-27 00:02:34 +02:00
|
|
|
inputs: 1,
|
|
|
|
outputs: 1,
|
2015-03-04 20:55:53 +01:00
|
|
|
icon: "snmp.png",
|
2017-06-27 00:02:34 +02:00
|
|
|
label: function () {
|
|
|
|
return this.name || "snmp " + this.host;
|
2015-03-04 20:55:53 +01:00
|
|
|
},
|
2017-06-27 00:02:34 +02:00
|
|
|
labelStyle: function () {
|
|
|
|
return this.name ? "node_label_italic" : "";
|
2022-04-21 17:49:03 +02:00
|
|
|
},
|
|
|
|
oneditprepare: function () {
|
|
|
|
node_snmp_common.oneditprepare(this);
|
2015-03-04 20:55:53 +01:00
|
|
|
}
|
|
|
|
});
|
2017-06-27 00:02:34 +02:00
|
|
|
</script>
|
|
|
|
|
2019-12-23 17:21:09 +01:00
|
|
|
<script type="text/html" data-template-name="snmp set">
|
2017-06-27 00:02:34 +02:00
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-host"><i class="fa fa-globe"></i> Host</label>
|
2018-07-17 10:41:52 +02:00
|
|
|
<input type="text" id="node-input-host" placeholder="ip address(:optional port)">
|
2017-06-27 00:02:34 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-version"><i class="fa fa-bookmark"></i> Version</label>
|
2018-01-30 22:57:44 +01:00
|
|
|
<select type="text" id="node-input-version" style="width:150px;">
|
2022-05-07 17:40:57 +02:00
|
|
|
<option value="1">v1</option>
|
|
|
|
<option value="2c">v2c</option>
|
2020-10-24 03:07:16 +02:00
|
|
|
<!-- Following Data is used for V3 Only -->
|
2022-05-07 17:40:57 +02:00
|
|
|
<option value="3">v3</option>
|
2020-10-24 03:07:16 +02:00
|
|
|
<!-- End of unique data for V3 -->
|
2017-06-27 00:02:34 +02:00
|
|
|
</select>
|
2018-01-28 18:50:41 +01:00
|
|
|
<span style="margin-left:50px;">Timeout</span>
|
|
|
|
<input type="text" id="node-input-timeout" placeholder="secs" style="width:50px; direction:rtl; vertical-align:baseline;"> S
|
2017-06-27 00:02:34 +02:00
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv1v2">
|
2020-10-24 03:07:16 +02:00
|
|
|
<label for="node-input-community"><i class="fa fa-user"></i> Community</label>
|
|
|
|
<input type="text" id="node-input-community" placeholder="public">
|
|
|
|
</div>
|
|
|
|
<!-- Following Data is used for V3 Only -->
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3">
|
2020-10-24 03:07:16 +02:00
|
|
|
<label for="node-input-username"><i class="fa fa-user"></i> Username</label>
|
|
|
|
<input type="text" id="node-input-username" placeholder="username">
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3">
|
|
|
|
<label for="node-input-auth"><i class="fa fa-user-secret"></i> Auth.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-auth" style="width:150px;">
|
|
|
|
<option value="noAuthNoPriv">noAuthNoPriv</option>
|
|
|
|
<option value="authNoPriv">authNoPriv</option>
|
|
|
|
<option value="authPriv">authPriv</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-auth">
|
|
|
|
<label for="node-input-authprot"><i class="fa fa-shield"></i> Auth.Prot.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-authprot" style="width:150px;">
|
|
|
|
<option value="MD5">MD5</option>
|
|
|
|
<option value="SHA">SHA</option>
|
|
|
|
</select>
|
2022-04-21 17:49:03 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-auth">
|
|
|
|
<label for="node-input-authkey"><i class="fa fa-key"></i> Auth.Key</label>
|
|
|
|
<input type="password" id="node-input-authkey" placeholder="Authentication key">
|
|
|
|
</div>
|
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-priv">
|
|
|
|
<label for="node-input-privprot"><i class="fa fa-shield"></i> Priv.Prot.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-privprot" style="width:150px;">
|
|
|
|
<option value="DES">DES</option>
|
|
|
|
<option value="AES">AES</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-priv">
|
|
|
|
<label for="node-input-privkey"><i class="fa fa-key"></i> Priv.Key</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<input type="password" id="node-input-privkey" placeholder="Encryption key">
|
|
|
|
</div>
|
|
|
|
<!-- End of unique data for V3 -->
|
2017-06-27 00:02:34 +02:00
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-varbinds"><i class="fa fa-tags"></i> Varbinds</label>
|
2022-04-21 17:49:03 +02:00
|
|
|
<textarea rows="10" cols="60" id="node-input-varbinds" placeholder="e.g. [ { "oid": "1.3.6.1.2.1.1.5.0", "type": "OctetString", "value": "host1"}, { "oid": "1.3.6.1.2.1.1.6.0", "type": "OctetString", value: "somewhere" } ]"
|
2017-06-27 00:02:34 +02:00
|
|
|
style="width:70%;"></textarea>
|
|
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
|
|
|
<input type="text" id="node-input-name" placeholder="Name">
|
|
|
|
</div>
|
2019-12-23 17:21:09 +01:00
|
|
|
<div class="form-tips">Tip: Numeric inputs must be numbers not strings, e.g. 1 not "1".</div>
|
2015-03-04 20:55:53 +01:00
|
|
|
</script>
|
|
|
|
|
2019-12-23 17:21:09 +01:00
|
|
|
<script type="text/html" data-help-name="snmp set">
|
2017-06-27 00:02:34 +02:00
|
|
|
<p>Simple snmp Set node. Trigger by any input</p>
|
|
|
|
<p><code>msg.host</code> may contain the host.</p>
|
|
|
|
<p><code>msg.community</code> may contain the community.</p>
|
2022-04-21 17:49:03 +02:00
|
|
|
<p><code>msg.username</code> may contain the username. (V3 only)</p>
|
|
|
|
<p><code>msg.authkey</code> may contain the digest security key. (V3 only)</p>
|
|
|
|
<p><code>msg.privkey</code> may contain the encryption security key. (V3 only)</p>
|
2017-06-27 00:02:34 +02:00
|
|
|
<p><code>msg.varbinds</code> may contain varbinds as an array of json objects containing multiple oids, types and values.
|
2022-04-21 17:49:03 +02:00
|
|
|
<code style="font-size: smaller;"><pre style="white-space: pre;">[
|
|
|
|
{
|
|
|
|
"oid": "1.3.6.1.2.1.1.5.0",
|
|
|
|
"type": "OctetString",
|
|
|
|
"value": "host1"
|
|
|
|
},
|
|
|
|
{ "oid": ... }
|
|
|
|
]</pre></code>
|
2019-12-23 17:21:09 +01:00
|
|
|
<p>Any numeric inputs must be numbers, not strings, e.g. 1 not "1".</p>
|
2019-02-15 23:15:33 +01:00
|
|
|
<p>OIDs must be numeric. iso. is the same a 1.</p>
|
2017-06-27 00:02:34 +02:00
|
|
|
</p>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
RED.nodes.registerType('snmp set', {
|
|
|
|
category: 'network-input',
|
|
|
|
color: "YellowGreen",
|
|
|
|
defaults: {
|
|
|
|
host: { value: "127.0.0.1" },
|
2022-05-07 17:40:57 +02:00
|
|
|
version: { value: "1", required: true },
|
2020-10-24 03:07:16 +02:00
|
|
|
timeout: { value: 5 },
|
2017-06-27 00:02:34 +02:00
|
|
|
community: { value: "public" },
|
2020-10-24 03:07:16 +02:00
|
|
|
auth: { value: "noAuthNoPriv", required: true },
|
2022-04-21 17:49:03 +02:00
|
|
|
authprot: { value: "MD5", required: true },
|
|
|
|
privprot: { value: "DES", required: true },
|
|
|
|
oids: { value: "" },
|
|
|
|
varbinds: { value: "", validate:function(v) {
|
|
|
|
try {
|
|
|
|
return !v || !!JSON.parse(v);
|
|
|
|
} catch(e) {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}},
|
2017-06-27 00:02:34 +02:00
|
|
|
name: { value: "" }
|
|
|
|
},
|
2022-04-21 17:49:03 +02:00
|
|
|
credentials: {
|
|
|
|
username: { type: "text" },
|
|
|
|
authkey: { type: "password" },
|
|
|
|
privkey: { type: "password" }
|
|
|
|
},
|
2017-06-27 00:02:34 +02:00
|
|
|
inputs: 1,
|
|
|
|
outputs: 0,
|
|
|
|
icon: "snmp.png",
|
|
|
|
label: function () {
|
|
|
|
return this.name || "snmp set " + this.host;
|
|
|
|
},
|
|
|
|
labelStyle: function () {
|
|
|
|
return this.name ? "node_label_italic" : "";
|
2022-04-21 17:49:03 +02:00
|
|
|
},
|
|
|
|
oneditprepare: function () {
|
|
|
|
node_snmp_common.oneditprepare(this);
|
2017-06-27 00:02:34 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
2015-03-04 20:55:53 +01:00
|
|
|
|
2019-12-23 17:21:09 +01:00
|
|
|
<script type="text/html" data-template-name="snmp table">
|
2015-03-04 20:55:53 +01:00
|
|
|
<div class="form-row">
|
2017-06-27 00:02:34 +02:00
|
|
|
<label for="node-input-host"><i class="fa fa-globe"></i> Host</label>
|
2018-07-17 10:41:52 +02:00
|
|
|
<input type="text" id="node-input-host" placeholder="ip address(:optional port)">
|
2015-03-04 20:55:53 +01:00
|
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-version"><i class="fa fa-bookmark"></i> Version</label>
|
2018-01-30 22:57:44 +01:00
|
|
|
<select type="text" id="node-input-version" style="width:150px;">
|
2022-05-07 17:40:57 +02:00
|
|
|
<option value="1">v1</option>
|
|
|
|
<option value="2c">v2c</option>
|
2020-10-24 03:07:16 +02:00
|
|
|
<!-- Following Data is used for V3 Only -->
|
2022-05-07 17:40:57 +02:00
|
|
|
<option value="3">v3</option>
|
2020-10-24 03:07:16 +02:00
|
|
|
<!-- End of unique data for V3 -->
|
2015-03-04 20:55:53 +01:00
|
|
|
</select>
|
2018-01-28 18:50:41 +01:00
|
|
|
<span style="margin-left:50px;">Timeout</span>
|
|
|
|
<input type="text" id="node-input-timeout" placeholder="secs" style="width:50px; direction:rtl; vertical-align:baseline;"> S
|
2015-03-04 20:55:53 +01:00
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv1v2">
|
2020-10-24 03:07:16 +02:00
|
|
|
<label for="node-input-community"><i class="fa fa-user"></i> Community</label>
|
|
|
|
<input type="text" id="node-input-community" placeholder="public">
|
|
|
|
</div>
|
|
|
|
<!-- Following Data is used for V3 Only -->
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3">
|
2020-10-24 03:07:16 +02:00
|
|
|
<label for="node-input-username"><i class="fa fa-user"></i> Username</label>
|
|
|
|
<input type="text" id="node-input-username" placeholder="username">
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3">
|
|
|
|
<label for="node-input-auth"><i class="fa fa-user-secret"></i> Auth.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-auth" style="width:150px;">
|
|
|
|
<option value="noAuthNoPriv">noAuthNoPriv</option>
|
|
|
|
<option value="authNoPriv">authNoPriv</option>
|
|
|
|
<option value="authPriv">authPriv</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-auth">
|
|
|
|
<label for="node-input-authprot"><i class="fa fa-shield"></i> Auth.Prot.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-authprot" style="width:150px;">
|
|
|
|
<option value="MD5">MD5</option>
|
|
|
|
<option value="SHA">SHA</option>
|
|
|
|
</select>
|
2022-04-21 17:49:03 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-auth">
|
|
|
|
<label for="node-input-authkey"><i class="fa fa-key"></i> Auth.Key</label>
|
|
|
|
<input type="password" id="node-input-authkey" placeholder="Authentication key">
|
|
|
|
</div>
|
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-priv">
|
|
|
|
<label for="node-input-privprot"><i class="fa fa-shield"></i> Priv.Prot.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-privprot" style="width:150px;">
|
|
|
|
<option value="DES">DES</option>
|
|
|
|
<option value="AES">AES</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-priv">
|
|
|
|
<label for="node-input-privkey"><i class="fa fa-key"></i> Priv.Key</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<input type="password" id="node-input-privkey" placeholder="Encryption key">
|
|
|
|
</div>
|
|
|
|
<!-- End of unique data for V3 -->
|
2015-03-04 20:55:53 +01:00
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-oids"><i class="fa fa-tags"></i> OID</label>
|
|
|
|
<input type="text" id="node-input-oids" placeholder="e.g. 1.3.6.1.2.1.1.5.0">
|
|
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
|
|
|
<input type="text" id="node-input-name" placeholder="Name">
|
|
|
|
</div>
|
|
|
|
<div class="form-tips">Tip: ONLY accepts a single OID.</div>
|
|
|
|
</script>
|
|
|
|
|
2019-12-23 17:21:09 +01:00
|
|
|
<script type="text/html" data-help-name="snmp table">
|
2015-03-04 20:55:53 +01:00
|
|
|
<p>Simple SNMP oid table fetcher. Triggered by any input.</p>
|
2017-04-22 16:53:04 +02:00
|
|
|
<p><code>msg.host</code> may contain the host.</p>
|
|
|
|
<p><code>msg.community</code> may contain the community.</p>
|
2022-04-21 17:49:03 +02:00
|
|
|
<p><code>msg.username</code> may contain the username. (V3 only)</p>
|
|
|
|
<p><code>msg.authkey</code> may contain the digest security key. (V3 only)</p>
|
|
|
|
<p><code>msg.privkey</code> may contain the encryption security key. (V3 only)</p>
|
2016-02-11 23:50:30 +01:00
|
|
|
<p><code>msg.oid</code> may contain the oid of a table to request.</p>
|
2019-02-15 23:15:33 +01:00
|
|
|
<p>OID must be numeric. iso. is the same a 1.</p>
|
2016-02-11 23:50:30 +01:00
|
|
|
<p>The node will output <code>msg.payload</code> and <code>msg.oid</code>.</p>
|
2015-03-04 20:55:53 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2017-06-27 00:02:34 +02:00
|
|
|
RED.nodes.registerType('snmp table', {
|
2015-03-04 20:55:53 +01:00
|
|
|
category: 'network-input',
|
2017-06-27 00:02:34 +02:00
|
|
|
color: "YellowGreen",
|
2015-03-04 20:55:53 +01:00
|
|
|
defaults: {
|
2017-06-27 00:02:34 +02:00
|
|
|
host: { value: "127.0.0.1" },
|
2022-05-07 17:40:57 +02:00
|
|
|
version: { value: "1", required: true },
|
2020-10-24 03:07:16 +02:00
|
|
|
timeout: { value: 5 },
|
2017-06-27 00:02:34 +02:00
|
|
|
community: { value: "public" },
|
2020-10-24 03:07:16 +02:00
|
|
|
auth: { value: "noAuthNoPriv", required: true },
|
2022-04-21 17:49:03 +02:00
|
|
|
authprot: { value: "MD5", required: true },
|
|
|
|
privprot: { value: "DES", required: true },
|
2017-06-27 00:02:34 +02:00
|
|
|
oids: { value: "" },
|
|
|
|
name: { value: "" }
|
2015-03-04 20:55:53 +01:00
|
|
|
},
|
2022-04-21 17:49:03 +02:00
|
|
|
credentials: {
|
|
|
|
username: { type: "text" },
|
|
|
|
authkey: { type: "password" },
|
|
|
|
privkey: { type: "password" }
|
|
|
|
},
|
2017-06-27 00:02:34 +02:00
|
|
|
inputs: 1,
|
|
|
|
outputs: 1,
|
2015-03-04 20:55:53 +01:00
|
|
|
icon: "snmp.png",
|
2017-06-27 00:02:34 +02:00
|
|
|
label: function () {
|
|
|
|
return this.name || "snmp table " + this.host;
|
2015-03-04 20:55:53 +01:00
|
|
|
},
|
2017-06-27 00:02:34 +02:00
|
|
|
labelStyle: function () {
|
|
|
|
return this.name ? "node_label_italic" : "";
|
2022-04-21 17:49:03 +02:00
|
|
|
},
|
|
|
|
oneditprepare: function () {
|
|
|
|
node_snmp_common.oneditprepare(this);
|
2015-03-04 20:55:53 +01:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
2016-04-12 19:39:19 +02:00
|
|
|
|
2019-12-23 17:21:09 +01:00
|
|
|
<script type="text/html" data-template-name="snmp subtree">
|
2016-04-12 19:39:19 +02:00
|
|
|
<div class="form-row">
|
2017-06-27 00:02:34 +02:00
|
|
|
<label for="node-input-host"><i class="fa fa-globe"></i> Host</label>
|
2018-07-17 10:41:52 +02:00
|
|
|
<input type="text" id="node-input-host" placeholder="ip address(:optional port)">
|
2016-04-12 19:39:19 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-version"><i class="fa fa-bookmark"></i> Version</label>
|
2018-01-30 22:57:44 +01:00
|
|
|
<select type="text" id="node-input-version" style="width:150px;">
|
2022-05-07 17:40:57 +02:00
|
|
|
<option value="1">v1</option>
|
|
|
|
<option value="2c">v2c</option>
|
2020-10-24 03:07:16 +02:00
|
|
|
<!-- Following Data is used for V3 Only -->
|
2022-05-07 17:40:57 +02:00
|
|
|
<option value="3">v3</option>
|
2020-10-24 03:07:16 +02:00
|
|
|
<!-- End of unique data for V3 -->
|
2016-04-12 19:39:19 +02:00
|
|
|
</select>
|
2018-01-28 18:50:41 +01:00
|
|
|
<span style="margin-left:50px;">Timeout</span>
|
|
|
|
<input type="text" id="node-input-timeout" placeholder="secs" style="width:50px; direction:rtl; vertical-align:baseline;"> S
|
2016-04-12 19:39:19 +02:00
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv1v2">
|
2020-10-24 03:07:16 +02:00
|
|
|
<label for="node-input-community"><i class="fa fa-user"></i> Community</label>
|
|
|
|
<input type="text" id="node-input-community" placeholder="public">
|
|
|
|
</div>
|
|
|
|
<!-- Following Data is used for V3 Only -->
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3">
|
2020-10-24 03:07:16 +02:00
|
|
|
<label for="node-input-username"><i class="fa fa-user"></i> Username</label>
|
|
|
|
<input type="text" id="node-input-username" placeholder="username">
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3">
|
|
|
|
<label for="node-input-auth"><i class="fa fa-user-secret"></i> Auth.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-auth" style="width:150px;">
|
|
|
|
<option value="noAuthNoPriv">noAuthNoPriv</option>
|
|
|
|
<option value="authNoPriv">authNoPriv</option>
|
|
|
|
<option value="authPriv">authPriv</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-auth">
|
|
|
|
<label for="node-input-authprot"><i class="fa fa-shield"></i> Auth.Prot.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-authprot" style="width:150px;">
|
|
|
|
<option value="MD5">MD5</option>
|
|
|
|
<option value="SHA">SHA</option>
|
|
|
|
</select>
|
2022-04-21 17:49:03 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-auth">
|
|
|
|
<label for="node-input-authkey"><i class="fa fa-key"></i> Auth.Key</label>
|
|
|
|
<input type="password" id="node-input-authkey" placeholder="Authentication key">
|
|
|
|
</div>
|
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-priv">
|
|
|
|
<label for="node-input-privprot"><i class="fa fa-shield"></i> Priv.Prot.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-privprot" style="width:150px;">
|
|
|
|
<option value="DES">DES</option>
|
|
|
|
<option value="AES">AES</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-priv">
|
|
|
|
<label for="node-input-privkey"><i class="fa fa-key"></i> Priv.Key</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<input type="password" id="node-input-privkey" placeholder="Encryption key">
|
|
|
|
</div>
|
|
|
|
<!-- End of unique data for V3 -->
|
2016-04-12 19:39:19 +02:00
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-oids"><i class="fa fa-tags"></i> OID</label>
|
|
|
|
<input type="text" id="node-input-oids" placeholder="e.g. 1.3.6.1.2.1.1.5.0">
|
|
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
|
|
|
<input type="text" id="node-input-name" placeholder="Name">
|
|
|
|
</div>
|
|
|
|
<div class="form-tips">Tip: ONLY accepts a single OID (node).</div>
|
|
|
|
</script>
|
|
|
|
|
2019-12-23 17:21:09 +01:00
|
|
|
<script type="text/html" data-help-name="snmp subtree">
|
2020-08-06 19:10:09 +02:00
|
|
|
<p>Simple SNMP oid subtree fetcher. Triggered by any input. Reads all OIDS at and below the current base OID.</p>
|
2017-04-22 16:53:04 +02:00
|
|
|
<p><code>msg.host</code> may contain the host.</p>
|
|
|
|
<p><code>msg.community</code> may contain the community.</p>
|
2022-04-21 17:49:03 +02:00
|
|
|
<p><code>msg.username</code> may contain the username. (V3 only)</p>
|
|
|
|
<p><code>msg.authkey</code> may contain the digest security key. (V3 only)</p>
|
|
|
|
<p><code>msg.privkey</code> may contain the encryption security key. (V3 only)</p>
|
2016-04-12 19:39:19 +02:00
|
|
|
<p><code>msg.oid</code> may contain the oid of a table to request.</p>
|
2019-02-15 23:15:33 +01:00
|
|
|
<p>OID must be numeric. iso. is the same a 1. </p>
|
2016-04-12 19:39:19 +02:00
|
|
|
<p>The node will output <code>msg.payload</code> and <code>msg.oid</code>.</p>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2017-06-27 00:02:34 +02:00
|
|
|
RED.nodes.registerType('snmp subtree', {
|
2016-04-12 19:39:19 +02:00
|
|
|
category: 'network-input',
|
2017-06-27 00:02:34 +02:00
|
|
|
color: "YellowGreen",
|
2016-04-12 19:39:19 +02:00
|
|
|
defaults: {
|
2017-06-27 00:02:34 +02:00
|
|
|
host: { value: "127.0.0.1" },
|
2022-05-07 17:40:57 +02:00
|
|
|
version: { value: "1", required: true },
|
2020-10-24 03:07:16 +02:00
|
|
|
timeout: { value: 5 },
|
2017-06-27 00:02:34 +02:00
|
|
|
community: { value: "public" },
|
2020-10-24 03:07:16 +02:00
|
|
|
auth: { value: "noAuthNoPriv", required: true },
|
2022-04-21 17:49:03 +02:00
|
|
|
authprot: { value: "MD5", required: true },
|
|
|
|
privprot: { value: "DES", required: true },
|
2017-06-27 00:02:34 +02:00
|
|
|
oids: { value: "" },
|
|
|
|
name: { value: "" }
|
2016-04-12 19:39:19 +02:00
|
|
|
},
|
2022-04-21 17:49:03 +02:00
|
|
|
credentials: {
|
|
|
|
username: { type: "text" },
|
|
|
|
authkey: { type: "password" },
|
|
|
|
privkey: { type: "password" }
|
|
|
|
},
|
2017-06-27 00:02:34 +02:00
|
|
|
inputs: 1,
|
|
|
|
outputs: 1,
|
2016-04-12 19:39:19 +02:00
|
|
|
icon: "snmp.png",
|
2017-06-27 00:02:34 +02:00
|
|
|
label: function () {
|
|
|
|
return this.name || "snmp subtree " + this.host;
|
2016-04-12 19:39:19 +02:00
|
|
|
},
|
2017-06-27 00:02:34 +02:00
|
|
|
labelStyle: function () {
|
|
|
|
return this.name ? "node_label_italic" : "";
|
2022-04-21 17:49:03 +02:00
|
|
|
},
|
|
|
|
oneditprepare: function () {
|
|
|
|
node_snmp_common.oneditprepare(this);
|
2016-04-12 19:39:19 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
2019-12-23 17:21:09 +01:00
|
|
|
<script type="text/html" data-template-name="snmp walker">
|
2016-04-12 19:39:19 +02:00
|
|
|
<div class="form-row">
|
2017-06-27 00:02:34 +02:00
|
|
|
<label for="node-input-host"><i class="fa fa-globe"></i> Host</label>
|
2018-07-17 10:41:52 +02:00
|
|
|
<input type="text" id="node-input-host" placeholder="ip address(:optional port)">
|
2016-04-12 19:39:19 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-version"><i class="fa fa-bookmark"></i> Version</label>
|
2018-01-30 22:57:44 +01:00
|
|
|
<select type="text" id="node-input-version" style="width:150px;">
|
2022-05-07 17:40:57 +02:00
|
|
|
<option value="1">v1</option>
|
|
|
|
<option value="2c">v2c</option>
|
2020-10-24 03:07:16 +02:00
|
|
|
<!-- Following Data is used for V3 Only -->
|
2022-05-07 17:40:57 +02:00
|
|
|
<option value="3">v3</option>
|
2020-10-24 03:07:16 +02:00
|
|
|
<!-- End of unique data for V3 -->
|
2016-04-12 19:39:19 +02:00
|
|
|
</select>
|
2018-01-28 18:50:41 +01:00
|
|
|
<span style="margin-left:50px;">Timeout</span>
|
|
|
|
<input type="text" id="node-input-timeout" placeholder="secs" style="width:50px; direction:rtl; vertical-align:baseline;"> S
|
2016-04-12 19:39:19 +02:00
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv1v2">
|
2020-10-24 03:07:16 +02:00
|
|
|
<label for="node-input-community"><i class="fa fa-user"></i> Community</label>
|
|
|
|
<input type="text" id="node-input-community" placeholder="public">
|
|
|
|
</div>
|
|
|
|
<!-- Following Data is used for V3 Only -->
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3">
|
2020-10-24 03:07:16 +02:00
|
|
|
<label for="node-input-username"><i class="fa fa-user"></i> Username</label>
|
|
|
|
<input type="text" id="node-input-username" placeholder="username">
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3">
|
|
|
|
<label for="node-input-auth"><i class="fa fa-user-secret"></i> Auth.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-auth" style="width:150px;">
|
|
|
|
<option value="noAuthNoPriv">noAuthNoPriv</option>
|
|
|
|
<option value="authNoPriv">authNoPriv</option>
|
|
|
|
<option value="authPriv">authPriv</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-auth">
|
|
|
|
<label for="node-input-authprot"><i class="fa fa-shield"></i> Auth.Prot.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-authprot" style="width:150px;">
|
|
|
|
<option value="MD5">MD5</option>
|
|
|
|
<option value="SHA">SHA</option>
|
|
|
|
</select>
|
2022-04-21 17:49:03 +02:00
|
|
|
</div>
|
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-auth">
|
|
|
|
<label for="node-input-authkey"><i class="fa fa-key"></i> Auth.Key</label>
|
|
|
|
<input type="password" id="node-input-authkey" placeholder="Authentication key">
|
|
|
|
</div>
|
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-priv">
|
|
|
|
<label for="node-input-privprot"><i class="fa fa-shield"></i> Priv.Prot.</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<select type="text" id="node-input-privprot" style="width:150px;">
|
|
|
|
<option value="DES">DES</option>
|
|
|
|
<option value="AES">AES</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2022-04-21 17:49:03 +02:00
|
|
|
<div class="form-row form-row-snmpv3 form-row-snmpv3-priv">
|
|
|
|
<label for="node-input-privkey"><i class="fa fa-key"></i> Priv.Key</label>
|
2020-10-24 03:07:16 +02:00
|
|
|
<input type="password" id="node-input-privkey" placeholder="Encryption key">
|
|
|
|
</div>
|
|
|
|
<!-- End of unique data for V3 -->
|
2016-04-12 19:39:19 +02:00
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-oids"><i class="fa fa-tags"></i> OID</label>
|
|
|
|
<input type="text" id="node-input-oids" placeholder="e.g. 1.3.6.1.2.1.1.5.0">
|
|
|
|
</div>
|
|
|
|
<div class="form-row">
|
|
|
|
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
|
|
|
|
<input type="text" id="node-input-name" placeholder="Name">
|
|
|
|
</div>
|
|
|
|
<div class="form-tips">Tip: ONLY accepts a single OID (node).</div>
|
|
|
|
</script>
|
|
|
|
|
2019-12-23 17:21:09 +01:00
|
|
|
<script type="text/html" data-help-name="snmp walker">
|
2020-08-06 19:10:09 +02:00
|
|
|
<p>Simple SNMP oid walker fetcher. Triggered by any input.
|
|
|
|
Fetches all nodes from this OID to the end of the table.</p>
|
2017-04-22 16:53:04 +02:00
|
|
|
<p><code>msg.host</code> may contain the host.</p>
|
|
|
|
<p><code>msg.community</code> may contain the community.</p>
|
2022-04-21 17:49:03 +02:00
|
|
|
<p><code>msg.username</code> may contain the username. (V3 only)</p>
|
|
|
|
<p><code>msg.authkey</code> may contain the digest security key. (V3 only)</p>
|
|
|
|
<p><code>msg.privkey</code> may contain the encryption security key. (V3 only)</p>
|
2016-04-12 19:39:19 +02:00
|
|
|
<p><code>msg.oid</code> may contain the oid of a table to request.</p>
|
2019-02-15 23:15:33 +01:00
|
|
|
<p>OID must be numeric. iso. is the same a 1. </p>
|
2016-04-12 19:39:19 +02:00
|
|
|
<p>The node will output <code>msg.payload</code> and <code>msg.oid</code>.</p>
|
2020-08-06 19:10:09 +02:00
|
|
|
<p><b>Note</b>: This node does indeed "walk" down the tree. This is different behaviour to
|
|
|
|
the typical snmpwalk command line app.</p>
|
2016-04-12 19:39:19 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
2017-06-27 00:02:34 +02:00
|
|
|
RED.nodes.registerType('snmp walker', {
|
2016-04-12 19:39:19 +02:00
|
|
|
category: 'network-input',
|
2017-06-27 00:02:34 +02:00
|
|
|
color: "YellowGreen",
|
2016-04-12 19:39:19 +02:00
|
|
|
defaults: {
|
2017-06-27 00:02:34 +02:00
|
|
|
host: { value: "127.0.0.1" },
|
2022-05-07 17:40:57 +02:00
|
|
|
version: { value: "1", required: true },
|
2020-10-24 03:07:16 +02:00
|
|
|
timeout: { value: 5 },
|
2017-06-27 00:02:34 +02:00
|
|
|
community: { value: "public" },
|
2020-10-24 03:07:16 +02:00
|
|
|
auth: { value: "noAuthNoPriv", required: true },
|
2022-04-21 17:49:03 +02:00
|
|
|
authprot: { value: "MD5", required: true },
|
|
|
|
privprot: { value: "DES", required: true },
|
2017-06-27 00:02:34 +02:00
|
|
|
oids: { value: "" },
|
|
|
|
name: { value: "" }
|
2016-04-12 19:39:19 +02:00
|
|
|
},
|
2022-04-21 17:49:03 +02:00
|
|
|
credentials: {
|
|
|
|
username: { type: "text" },
|
|
|
|
authkey: { type: "password" },
|
|
|
|
privkey: { type: "password" }
|
|
|
|
},
|
2017-06-27 00:02:34 +02:00
|
|
|
inputs: 1,
|
|
|
|
outputs: 1,
|
2016-04-12 19:39:19 +02:00
|
|
|
icon: "snmp.png",
|
2017-06-27 00:02:34 +02:00
|
|
|
label: function () {
|
|
|
|
return this.name || "snmp walker " + this.host;
|
2016-04-12 19:39:19 +02:00
|
|
|
},
|
2017-06-27 00:02:34 +02:00
|
|
|
labelStyle: function () {
|
|
|
|
return this.name ? "node_label_italic" : "";
|
2022-04-21 17:49:03 +02:00
|
|
|
},
|
|
|
|
oneditprepare: function () {
|
|
|
|
node_snmp_common.oneditprepare(this);
|
2016-04-12 19:39:19 +02:00
|
|
|
}
|
|
|
|
});
|
2018-01-28 18:50:41 +01:00
|
|
|
</script>
|