SNMP.SetTimeout
---------------

Sets timeout for the SNMP query.

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

### Deprecated

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

MBS( "SNMP.SetTimeout"; Value ) 

**MBS**( **"SNMP.SetTimeout";** /\* Sets timeout for the SNMP query. \*/  
**$Value**) /\* The new timeout value. Pass -1 to use default.e.g. 2000000 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new timeout value. Pass -1 to use default. | 2000000 |

### Result

Returns OK.

### Description

Sets timeout for the SNMP query.  
Value is in microseconds (1 million microseconds per second)  
### Examples

Set to allow 2 retries and a timeout of 2 seconds:

 MBS ( "[SNMP.SetRetries](SNMPSetRetries.md)"; 2 )  
MBS ( "SNMP.SetTimeout"; 2000000 )  
### See also

- [LDAP.SetTimeOut](LDAPSetTimeOut.md)
- [SNMP.SetRetries](SNMPSetRetries.md)
- [SSH.GetTimeout](SSHGetTimeout.md)
- [SSH.SetTimeout](SSHSetTimeout.md)

### Blog Entries

- [MBS Filemaker Plugin, version 3.1pr5](https://www.mbsplugins.de/archive/2012-12-22/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function is free to use.

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

  
[SNMP.SetRetries](SNMPSetRetries.md) - [SQL.Cancel](SQLCancel.md)

[HTML Version](SNMPSetTimeout.shtml)