SNMP - Set
Declaration
<AMSNMPSETREQUEST HOST="text" NAME="text" COMMUNITY="text" TIMEOUT="number" TIMEOUTMEASURE="text (options)" BROADCASTDELAY="number" VALUE="text" RESULTDATASET="text (dataset name)" />
Description
Issues a SET message to an SNMP agent in order to alter the value of a variable.
IMPORTANT: To
get the most out of Automate Desktop's SNMP activities, users should have
a fundamental understanding of SNMP architecture and its major
elements, such as Managers, Agents, MIBs, and PDUs.
Practical usage
Can be used to set the value of a SNMP variable on a SNMP capable agent such as a router.
Parameters
General
Property | Type | Required | Default | Markup | Description |
---|---|---|---|---|---|
Agent IP Address | Text | Yes | (Empty) | HOST="xxx.xxx.xxx.xxx" | The IP Address or hostname of the SNMP agent to communicate with. |
Variable Name | Text | Yes | (Empty) |
|
The
SNMP variable to set. This value can be an OID (Object Identifier)
in either numeric or human-readable format. NOTE: This is not an Automate Desktop variable. |
Community | Text | Yes | Public | COMMUNITY="NetAuto" | The SNMP community. |
Variable Syntax | Text (options) | No | integer | SYNTAX="ipaddress" | Specifies
the type of data that will be set in the variable value parameter.
The available options are:
|
Variable Value | Text | Yes | (Empty) | VALUE="the data" | The new value to set. |
Advanced
Property | Type | Required | Default | Markup | Description |
---|---|---|---|---|---|
Timeout after | Text | Yes | 30 | TIMEOUT="30" | The total elapsed time that this activity should wait for a response before generating a timeout error. The default is 30 seconds. |
Timeout measure | Text (options) | Yes | seconds |
|
The
time measurement that corresponds to the value entered in the Timeout after parameter. The
available options are:
|
Broadcast delay | Number | No | 3 | BROADCASTDELAY="10" | The maximum broadcast delay time that this activity will allow. The default is 3 seconds. |
Broadcast Measure | Text (options) | No | seconds |
|
The
time measurement that corresponds to the broadcast delay value.
The available options are:
|
SNMP version | Text (options) | No | SNMPv1 |
|
The
version of the SNMP protocol to use. The default is SNMP version
1 as it is the most prevalent. The available options are:
NOTE: SNMPv3 must be selected to enable the authentication protocol option. |
Remote port | Number | No | 161 | REMOTEPORT="555" | The TCP/IP port that should be used for the SNMP request. The default port is 161. |
Authentication Protocol | Text (options) | No | Do not use authentication |
|
SNMPv3 must be selected to make this potion available. The available options for Authentication algorithm are:
|
Discovery time out | Number | Yes | 30 seconds | DISCOVERYTIMEOUT="30seconds" | The total elapsed time that this activity should wait for a discovery before a time out. |
Authentication username | Text | Yes | empty | USERNAME="username" | User name to configure the remote user. |
Privacy Algorithm | Text (options) | No | Do not encrypt messages |
|
The available options for Privacy are:
|
Authentication password | Text | Yes | Empty |
PASSWORD="password" |
Password to configure the remote user. |
Privacy password | Text | Yes | Empty |
PRIVACYPASSWORD="privacypassword' |
Privacy password for the algorithm. |
Data
Property | Type | Required | Default | Markup | Description |
---|---|---|---|---|---|
Create and populate dataset (optional) | Text | No | (Empty) | RESULTDATASET="myData" | The name of the dataset to create and populate with the results of the request. |
Example
NOTE:
- Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
- To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.
Description
This sample task sends a set message and then creates and populates a dataset with the results.
Copy
<AMSNMP ACTIVITY="set" HOST="192.168.0.465" NAME="snmpGet" COMMUNITY="theCommunity2" VALUE="12.168.0.851" SYNTAX="ipaddress" BROADCASTDELAY="20" REMOTEPORT="841" />