Extension:SNMPquery: Difference between revisions
Content deleted Content added
→Installation: no config or rights |
KrenairBot (talk | contribs) m This extension appears to be in SVN, not Git. |
||
Line 16: | Line 16: | ||
|php = |
|php = |
||
|license = Beerware (You owe me a beer/coffee if you use this software) |
|license = Beerware (You owe me a beer/coffee if you use this software) |
||
|download = {{WikimediaDownload|SNMPquery}} |
|download = {{WikimediaDownload|SNMPquery}} |
||
|readme = |
|readme = |
||
|changelog = |
|changelog = |
Revision as of 22:37, 13 August 2012
![]() Release status: beta |
|
---|---|
Implementation | Tag , Parser function |
Description | Do SNMP queries to your boxes! |
Author(s) | (rururudytalk) |
MediaWiki | |
License | Beerware (You owe me a beer/coffee if you use this software) |
Download | |
Example | <snmp mode=get host=4.2.2.1 community=public oid=.1.3.6.1.2.1.1.3.0>Uptime: </snmp> |
none |
|
SNMP |
|
Translate the SNMPquery extension if it is available at translatewiki.net | |
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!
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}}
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.
Installation
To install this extension, add the following to LocalSettings.php:
require_once("$IP/extensions/SNMPquery/SNMPquery.php");