Extension:SNMPquery
From MediaWiki.org
|
SNMPquery Release status: beta |
|||
|---|---|---|---|
| Implementation | Tag, Parser function | ||
| Description | Do SNMP queries to your boxes! | ||
| License | Beerware (You owe me a beer/coffee if you use this software) | ||
| Download |
Download snapshot (Git master)
Git [?]: repo summary • tree • code changes SVN [?]: checkout-url • tree • code changes |
||
| Example | <snmp mode=get host=4.2.2.1 community=public oid=.1.3.6.1.2.1.1.3.0>Uptime: </snmp> | ||
|
|||
|
|||
|
Check usage (experimental) |
|||
Contents |
[edit] What can this extension do?
You can use the extension to do SNMPget and SNMPwalk functions and return the data into your wiki! How is your wifi connection??? Query your router with SNMP and add the info to your wiki!
[edit] Usage
Example inline:
<snmp mode=get host=4.2.2.1 community=public oid=.1.3.6.1.2.1.1.3.0>Uptime: </snmp>
Example in a template where the IP is a variable:
{{ #snmpget: {{{ip}}}|public|.1.3.6.1.2.1.1.3.0| '''Uptime:''' }}
{{ #snmpwalk: {{{ip}}}|public|.1.3.6.1.4.1.14988.1.1.1.1.1.4|<br>'''Signal Strength:'''|dBm}}
[edit] Download instructions
Please cut and paste the code found below and place it in $IP/extensions/SNMPquery.php. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.
[edit] Installation
To install this extension, add the following to LocalSettings.php:
require_once("$IP/extensions/SNMPquery/SNMPquery.php");
