Snmp_set, Snmp_set, snmp, Snmp_set, snmp_t – Visara Master Console Center Scripting Guide User Manual
Page 188: Mp_set, snmp
![background image](https://www.manualsdir.com/files/808700/content/doc188.png)
Chapter 5 Script Commands
Scripting Guide
188
SNMP_SET
Syntax:
SNMP_SET( $Alias, $MIBOID, $Value) ==> %ReturnCode
Description:
Sets the value of a specified MIB object.
Action:
The value of the object specified by the MIBOID parameter in the MIB
of the Alias is set to the value specified by the Value parameter.
Parameters:
$Alias. String expression. The NMS alias to set the MIB object value
on. The specified alias must not be a group alias. Refer to NMS Alias
on page 31 for more information.
$MIBOID. String expression. The MIB object ID for which to set the
value. Refer to MIB OID on page 31 for more information.
$Value. String expression. The MIB object is set to this value.
Returns:
Numeric value, as follows:
Return Code
Description
0
Success
-1
Agent not defined in SNMP Setup
-2
Invalid
Argument
-3
Agent
not
found
-5
Unable to open configuration file
-6
Internal memory allocation error. Contact
Visara Technical Support immediately
-7
Bad
MIB
-8
Configuration
file
error
Notes:
1. For information on error checking of SNMP_SET(), refer to the
description of the ERRORNUM() command.
2. Note that valid MIB branch names must have “.0” appended to
them to reference the value to which they refer.
Example:
//sets the value of “sysLocation” in the MIB on the
RS6000
//to “down”
$Alias := “RS6000”
$MIBOID := “sysLocation.0”
%Result := SNMP_SET( $Alias, $MIBOID, “Ops Center”)
See Also:
SNMP_GET, SNMP_GETNEXT, SNMP_GETTABLE,