This repository was archived by the owner on May 17, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[SNMP] Update README.md for the version property #5779
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -9,6 +9,7 @@ This binding can be configured in the file `services/snmp.cfg`. | |||||
| | Property | Default | Required | Description | | ||||||
| |----------|---------|:--------:|-------------| | ||||||
| | community | public | No | default community for listening for traps (defaults to public). | | ||||||
| | version | v1 | No | define snmp protocol-version (can be v1 or v2c). | | ||||||
| | port | 162 | No | listening port. See [Binding Port](#binding-port) below. | | ||||||
| | timeout | 1500 | No | timeout period (in milliseconds) when polling SNMP GET and SET requests. | | ||||||
| | retries | 0 | No | number of retries before giving up. The retries will be sent every `timeout` milliseconds. 0 means no retries. | | ||||||
|
|
@@ -37,7 +38,7 @@ The syntax for the SNMP binding configuration string depending on whether you ar | |||||
| GET | ||||||
|
|
||||||
| ``` | ||||||
| snmp="<[<address>:<community>:<oid>:<update>]" | ||||||
| snmp="<[<address>:<protocol-version>:<community>:<oid>:<update>]" | ||||||
| ``` | ||||||
|
|
||||||
| SET | ||||||
|
|
@@ -55,6 +56,7 @@ snmp="<[<address>:<community>:<oid>:0]" | |||||
| where: | ||||||
|
|
||||||
| * `<address>` is the IP address[/Port] of the SNMP device. The Port is optional, the default value is 161 | ||||||
| * `<protocol-version>` where possible values for protocol-version are v1, v2c and v3 (v3 not supported by the binding at the moment, but possible in future enhancement). | ||||||
| * `<community>` is the SNMP community string | ||||||
| * `<oid>` is the object ID to GET or SET | ||||||
| * `<update>` is the amount of milliseconds the binding waits between periodic queries of the OID | ||||||
|
|
@@ -63,18 +65,18 @@ where: | |||||
| Here are some examples of valid binding configuration strings: | ||||||
|
|
||||||
| ``` | ||||||
| snmp="<[192.168.2.111:public:.1.3.6.1.2.1.2.2.1.10.10:10000]" | ||||||
| snmp="<[192.168.2.111:v1:public:.1.3.6.1.2.1.2.2.1.10.10:10000]" | ||||||
| snmp=">[OFF:192.168.2.111:private:.1.3.6.1.4.1.4526.11.16.1.1.1.3.1.2:2]" | ||||||
| snmp="<[192.168.2.111:public:.1.3.6.1.2.1.2.2.1.10.10:0]" | ||||||
| snmp="<[192.168.2.111:v2c:public:.1.3.6.1.2.1.2.2.1.10.10:0]" | ||||||
| ``` | ||||||
|
|
||||||
| ## Examples | ||||||
|
|
||||||
| items/snmpdemo.items | ||||||
|
|
||||||
| ``` | ||||||
| Number Switch_POEState2 "PoE WiFi State [%s]" { snmp="<[192.168.2.111:public:.1.3.6.1.4.1.4526.11.16.1.1.1.6.1.2:10000]" } | ||||||
| Switch Switch_POEEnable2 "PoE WiFi Enable [%s]" { snmp="<[192.168.2.111:public:.1.3.6.1.4.1.4526.11.16.1.1.1.3.1.2:10000] >[OFF:192.168.2.111:private:.1.3.6.1.4.1.4526.11.16.1.1.1.3.1.2:2] >[ON:192.168.2.111:private:.1.3.6.1.4.1.4526.11.16.1.1.1.3.1.2:1]" } | ||||||
| Number Switch_POEState2 "PoE WiFi State [%s]" { snmp="<[192.168.2.111:v1:public:.1.3.6.1.4.1.4526.11.16.1.1.1.6.1.2:10000]" } | ||||||
| Switch Switch_POEEnable2 "PoE WiFi Enable [%s]" { snmp="<[192.168.2.111:pv1:ublic:.1.3.6.1.4.1.4526.11.16.1.1.1.3.1.2:10000] >[OFF:192.168.2.111:private:.1.3.6.1.4.1.4526.11.16.1.1.1.3.1.2:2] >[ON:192.168.2.111:private:.1.3.6.1.4.1.4526.11.16.1.1.1.3.1.2:1]" } | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Presumably this is a typo. Should
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, it was. Thanks for the correction
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you planning to push a fix for it, then?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| String switch1p01desc "switch1 port 01 description [%s]" { snmp="<[192.168.3.222:public:.1.3.6.1.4.1.11863.1.1.3.2.1.1.1.1.2.1:10000]" } | ||||||
| ``` | ||||||
|
|
||||||
|
|
||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.