This page describes the commands used to configure and enable the SAS facility.
SAS configuration is namespace-aware: all these commands apply to the current namespace for the client (selected with setactivenamespace
).
Events sent to SAS are associated with a resource identifier.
All components within a Rhino namespace use the same resource identifier.
The resource identifier can be set with the setsasresourceid
command.
The resource identifier will be in the generated resource bundle that will be imported into SAS.
Rhino supports connecting to some or all SAS server instances in a federation. This is maintained as an internal list of servers and ports.
Servers may be added with addsasserver
and removed with removesasserver
.
By default SAS listens on port 6761. If the port is omitted from the add command, then the default port will be used.
Console command: addsasserver
Command |
addsasserver <servers> Description Add one or more servers to the set of configured SAS servers Required Arguments servers Comma delimited list of host:port pairs for SAS servers |
---|---|
Example |
[Rhino@localhost (#1)] addsasserver localhost:12000 Added server(s) to SAS configuration properties: servers=localhost:12000 [Rhino@localhost (#2)] addsasserver 127.0.0.1:12001,127.0.0.2 Added server(s) to SAS configuration properties: servers=127.0.0.1:12001,127.0.0.2 |
Console command: removesasserver
Command |
removesasserver <servers> Description Remove one or more servers from the set of configured SAS servers Required Arguments servers Comma delimited list of host:port pairs for SAS servers |
---|---|
Example |
[Rhino@localhost (#1)] removesasserver localhost:12000 Removed server(s) from SAS configuration properties: servers=localhost:12000 [Rhino@localhost (#2)] removesasserver 127.0.0.1:12001,127.0.0.2 Removed server(s) from SAS configuration properties: servers=127.0.0.1:12001,127.0.0.2 |
Console command setsassystemname
Command |
setsassystemname <systemName> [-appendID <appendID>] Description Configure the SAS resource identifier. Required Arguments systemName The unique system name to use. Cluster wide Options -appendID If true, append node ID to system name |
---|---|
Example |
$ ./rhino-console setsassystemname mmtel Set SAS system name: systemName=mmtel $ ./rhino-console setsassystemname mmtel -appendID true Set SAS system name: systemName=mmtel appendID=true |
Console command setsasresourceid
Command |
setsasresourceid <resourceIdentifier> Description Configure the SAS resource identifier. Required Arguments resourceIdentifier The resource identifier to use. |
---|---|
Example |
$ ./rhino-console setsasresourceid com.metaswitch.rhino Set SAS resource identifier: resourceIdentifier=com.metaswitch.rhino |
Console command setsasqueuesize
Command |
setsasqueuesize <queueSize> Description Configure the per server SAS message queue limit. Required Arguments queueSize The maximum number of messages to queue for sending to the SAS server. |
---|---|
Example |
$ ./rhino-console setsasqueuesize 100000 Set SAS queue size: queueSize=100000 |
Console command: getsasconfiguration
Command |
getsasconfiguration Description Display SAS tracing configuration |
---|---|
Example |
$ ./rhino-console getsasconfiguration SAS tracing is currently disabled. Configuration properties for SAS: servers=[sas-server] systemName=mmtel appendNodeIdToSystemName=true resourceIdentifier=com.metaswitch.rhino queueSize=10000 per server |