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

  • 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 132
Chapter 5 Script Commands
Scripting Guide 133
ICONNAME
Syntax:
ICONNAME( [%Class [, %Port]]) ==> $Name
Description:
Returns an icon’s name.
Action:
The name of the icon is returned for the specified class and port.
Parameters:
%Class. Numeric expression. Optional, but required if Port is
specified. The icon class. Refer to Icon Class/Icon Name on page 29
for more information. Valid constants are CPU, OS, SW, and PRN.
%Port. Numeric expression. Optional. The port number that the
object the icon represents is connected to. Refer to Ports on page 24 for
more information.
Returns:
String value. The name of the icon.
If Class and Port are not specified, the name of the current icon (the
icon that the script is executing on) is returned.
If Port is not specified but Class is, the name of the icon in the current
icon’s “lineage” in the specified class is returned.
Notes:
Refer to Manifest Constants on page 42 for the constants reference list.
Example:
$Name := ICONNAME()
$Name := ICONNAME( CPU)
$Name := ICONNAME( CPU, 2)
See Also:
CLASSNUM, ICON, ICONMSG, ICONSTATUS, PORT
Zobrazit stránku 132
1 2 ... 128 129 130 131 132 133 134 135 136 137 138 ... 261 262

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

Žádné komentáře