From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: beta
Implementation Tag , Parser function
Description Do SNMP queries to your boxes!
Author(s) (rururudytalk)
License Beerware (You owe me a beer/coffee if you use this software)
Download Template:WikimediaDownload/svn
Example <snmp mode=get host= community=public oid=.>Uptime: </snmp>
Translate the SNMPquery extension if it is available at translatewiki.net
Check usage and version matrix.

What can this extension do?[edit]

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!


Example inline:

<snmp mode=get host= community=public oid=.>Uptime: </snmp>

Example in a template where the IP is a variable:

     {{ #snmpget:  {{{ip}}}|public|.| '''Uptime:''' }}
     {{ #snmpwalk: {{{ip}}}|public|.|<br>'''Signal Strength:'''|dBm}}

Download instructions[edit]

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.


To install this extension, add the following to LocalSettings.php: