Extension:SNMPquery

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
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
Example <snmp mode=get host=4.2.2.1 community=public oid=.1.3.6.1.2.1.1.3.0>Uptime: </snmp>
Parameters

none

Tags
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");
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox