Visara Master Console Center Scripting Guide Uživatelský manuál Strana 188

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 262
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 187
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,
SNMP_TRAPSEND
Zobrazit stránku 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 261 262

Komentáře k této Příručce

Žádné komentáře