SNMP.Get
--------

Performs a SNMP GET query.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SNMP](component_SNMP.md) | [3.1](newinversion31.md) | ✅ Yes | ❌ No | ✅ Yes | ✅ Yes, on macOS and Linux | ❌ No |

### Deprecated

This function was [deprecated](deprecated.md).

MBS( "SNMP.Get"; Community; Target; ObjectID ) 

**MBS**( **"SNMP.Get";** /\* Performs a SNMP GET query. \*/  
**$Community**; /\* The community name to use.e.g. "public" \*/   
**$Target**; /\* The IP and port to connect to.e.g. "192.168.2.5:1234" \*/   
**$ObjectID**) /\* The object ID to use.e.g. "system.sysUpTime.0" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Community | The community name to use. | "public" |
| Target | The IP and port to connect to. | "192.168.2.5:1234" |
| ObjectID | The object ID to use. | "system.sysUpTime.0" |

### Result

Returns the result or an error.

### Description

Performs a SNMP GET query.  
Using version 1, no authentication and no security options.  
  
Please use [Shell](component_Shell.md) functions with snmp command line tools to get more options.  
### Examples

Query uptime of demo server:

 $r = MBS ("SNMP.Get"; "demopublic"; "test.net-snmp.org"; "system.sysUpTime.0 ")  
### Release notes

- **Version 7.3**
    - Added Linux support for [SNMP.Get](http://www.mbsplugins.eu/SNMPGet.shtml).
    - Improved [SNMP.Get](http://www.mbsplugins.eu/SNMPGet.shtml) function to report errors better.

### Blog Entries

- [MBS FileMaker Plugin, version 7.3pr1](https://www.mbsplugins.de/archive/2017-06-05/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 3.1pr1](https://www.mbsplugins.de/archive/2012-12-14/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 18th December 2021

  
[RunTask.WriteInputText](RunTaskWriteInputText.md) - [SNMP.SetRetries](SNMPSetRetries.md)

[HTML Version](SNMPGet.shtml)