snmp_set manual page
Table of Contents

NAME

snmp_set - perform an SNMP set request on a device

SYNOPSIS

snmp_set -h hostname -c community-name [ -t timeout ] -v "variable-name type value ..."

DESCRIPTION

snmp_set performs an SNMP set on a device.

OPTIONS

Each option is recognized as a separate argument.

-c community-name
community name for access to the SNMP entity

-h hostname
hostname of the SNMP entity containing the variables to be set.

-t timeout
number of seconds before the set request times out if a reply is not received from the SNMP entity. If this option is not specified, the timeout is 30 seconds.

-v variable-name type value ...
a triplet for each variable to be set, enclosed in double quotes. The format of the triplet is: 1. variable name, in dot notation 2. variable type, as a single letter option:
-i
integer 3. the value to give to the variable name.

EXAMPLES

Set the administrative status of interface 1 on golden to 2 (down), using community name private.

snmp_set -c private -h golden -v "ifAdminStatus.1 -i 2"

NOTES

snmp_set currently supports integer values only.


Table of Contents