SNMP Get Next

Declaration

<AMSNMPGETNEXTREQUEST HOST="text" NAME="text" COMMUNITY="text" REMOTEPORT="text" TIMEOUT="text" BROADCASTDELAY="text" OIDSTRINGNOTATION="yes/no" TIMETICKSTRINGNOTATION="yes/no" SNMPVERSION="options" RESULTDATASET="text">

See Also

SNMP Get | SNMP Get Next | SNMP Set | SNMP Walk | SNMP Send Trap | SNMP Walk | MSMQ (Microsoft Message Queuing) | Microsoft SharePoint | AS2 (Applicability Statement 2) | Amazon EC2 (Elastic Compute Cloud) | Amazon RDS (Relational Database Service) | Amazon S3 (Simple Storage Service) | Amazon SimpleDB | Amazon SQS (Simple Queue Service)

Description

Issues a GETNEXT message to an SNMP agent in order to inspect the value of the next variable.

SNMP (Simple Network Management Protocol) is a UDP-based protocol used mostly in network management systems to monitor network-attached devices for conditions that warrant administrative attention.

IMPORTANT: Use of AutoMate's SNMP actions require a fundamental understanding of the SNMP architecture and its major elements, such as Managers, Agents, MIBs, and PDUs.  

Practical Usage

This action can be used to get the value of an SNMP Variable on an SNMP capable agent such as a router.

Parameters

General Properties

Property

Type

Required

Default

Markup

Description

Agent IP Address

Text

Yes

(Empty)

HOST="xxx.xxx.xxx.xxx"

The IP Address or host name of the SNMP agent to communicate with.

Variable Name

Text

Yes

(Empty)

  1. NAME="1.3.6.1.2.1.1.1.0"

  2. NAME="system.sysDescr.0"

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 variable.

Community

Text

Yes

Public

COMMUNITY="NetAuto"

The SNMP community name.

Create and populate dataset

Text

Yes

(Empty)

RESULTDATASET="myData"

The name of the dataset that should be created and populated with the results of the request.

Advanced Properties

Property

Type

Required

Default

Markup

Description

Timeout After

Text

Yes

30

TIMEOUT="500"

The amount of time that the action should wait for a response before generating a time out error. The default is 30 seconds.

Timeout measure

Text (options)

Yes

seconds

TIMEOUTMEASURE="minutes"

The time measurement that corresponds to the time out measure value. The available options are:

  • milliseconds

  • seconds (default)

  • minutes

  • hours

Broadcast delay

Number

No

3

BROADCASTDELAY="10"

The amount of time that the action should wait for a response when broadcasting. The default is 3 seconds.

Broadcast Measure

Text (options)

No

seconds

BROADCASTMEASURE="minutes"

The time measurement that corresponds to the broadcast delay value. The available options are:

  • milliseconds

  • seconds (default)

  • minutes

  • hours

SNMP version

Text (options)

No

SNMPv1

SNMPVERSION="snmpv2c"

The version of the SNMP protocol to use. The default is SNMP version 1 as it is the most prevalent. The available options are:

  • SNMPv1 (default)

  • SNMPv2c

  • SNMPv3

Remote port

Number

No

161

REMOTEPORT="555"

The TCP/IP port that should be used for the SNMP request. The default port is 161.

Data Properties

Property

Type

Required

Default

Markup

Description

Use string notation for OIDs

Yes/No

No

Yes

OIDSTRINGNOTATION="no"

Specifies whether the variable should contain the returning OID in numeric or "human readable" format. If set to YES, the value will be returned in human readable format. If set to NO, the value will be returned in numeric format. This parameter is set to YES by default.

Use string notation for timetick values

Text (options)

Yes

seconds

TIMETICKSTRINGNOTATION="no"

Timetick variable types are normally a 32-bit number but they can be returned in string notation. If this parameter is set to YES, the step will return the value in string notation. If set to NO, this step will return the value in 32-bit number format. This parameter is set to YES by default.

Description Properties

The Description tab allows you to customize the text description of any step as it appears in the Task Builder's Steps Pane.

More on setting custom step description

Error Causes Properties

The Error Causes tab properties lets you instruct a task step to react only to specific errors or ignore certain errors that should cause it to fail.

More on Error Causes properties

On Error Properties

The On Error tab properties lets you determine what the task should do if a particular step encounters an error as defined in the Error Causes properties.

More about On Error properties

Additional Notes

Expressions, Variables & Functions

A percent sign is used as a special character in AutoMate to indicate the beginning and end of an expression. This allows variables, functions and other expressions to be entered in any text parameter of a task's properties. For example: %1+1% inside a task will resolve to 2 at runtime. A more elaborate example is %FileDateTime(myFile)% which results to the date/time of myFile. To help construct expressions, you can open Expression Builder by clicking the Insert Expression (%) button or by pressing F2.

More on expressions

More on variables

More on functions

More on extended functions
More on the expression builder

Example

NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

 

Description: Send SNMP Get Next message to "157.119.203.154" for variable "1.3.6.1.2.1.1.1.0".  Create and populate dataset "theDataset" with results.  Community is "public".  

 

<AMSNMPGETNEXTREQUEST HOST="157.119.203.154" NAME="1.3.6.1.2.1.1.1.0" COMMUNITY="public" RESULTDATASET="theDataset" />

 

↑ Top of Page