Справочник Пользователя для Raritan Computer SX4
140 D
OMINION
SX
I
NSTALLATION AND
O
PERATIONS
M
ANUAL
Extensions to TCL
Various extensions have been incorporated into TCL to support functions to interact with the
RaritanConsole unit. The command info comm amp (executed in a Script Shell Window) lists all the
commands that are supported.
ampsetconfiguration, ampaddsubscription, amprmsubscription, ampsetipacl, amprmipacl, ampadduser,
amprmuser are commands that make configuration changes to the Raritan unit. ampsave must be executed
in order for the changes to become effective, and may be executed at the end of executing a set of these
commands or after each command. Please note that in some cases (network), ampsave causes the unit to
reboot. Use ampreload to revert changes before a save is executed.
RaritanConsole unit. The command info comm amp (executed in a Script Shell Window) lists all the
commands that are supported.
ampsetconfiguration, ampaddsubscription, amprmsubscription, ampsetipacl, amprmipacl, ampadduser,
amprmuser are commands that make configuration changes to the Raritan unit. ampsave must be executed
in order for the changes to become effective, and may be executed at the end of executing a set of these
commands or after each command. Please note that in some cases (network), ampsave causes the unit to
reboot. Use ampreload to revert changes before a save is executed.
ampgetconfiguration
Returns a list of categories that can be displayed
Usage: ampgetconfiguration
% ampgetconfiguration
network
modem
datacom
smtp
radius
network
modem
datacom
smtp
radius
If a specific category is specified, then the data for that category will be displayed.
Usage: ampgetconfiguration <category><port_number>
•
Category: can be network, datacom, smtp, and radius
•
Port_number: valid port number, applies only to datacom category; otherwise not used
% ampgetconfiguration network
Hostname: RaritanConsole_C3200
IP:10.0.1.41
SubnetMask:255.0.0.0
Gateway:10.0.1.41
PortAddress:2398
TerminalType:VT100
Hostname: RaritanConsole_C3200
IP:10.0.1.41
SubnetMask:255.0.0.0
Gateway:10.0.1.41
PortAddress:2398
TerminalType:VT100
ampsetconfiguration
Sets the specified field to the value passed. Returns an error if the interpreter cannot get the config lock.
Usage: ampsetconfiguration <category> <field_name> <value>
•
Category: network, datacom, smtp, radius
•
Field_name: field to be altered in a particular category
•
Value: new value
Setting a specific parameter is done as follows (changing a port configuration):
% ampsetconfiguration network portaddress 2398
configuration successful
% ampsave
configuration successful
% ampsave
Important! An ampsave command must be executed in order for any changes to take effect. In the
instance above, a reboot occurs.
instance above, a reboot occurs.