Return information about STK Data Federate (SDF) servers and resources.
SDF_RM <ApplicationPath> {Option}
The SDF_RM connect command returns information about the STK Data Federate (SDF) servers and resources in STK.
The following table describes {Option} values for returning Server information:
{Option} | Description |
---|---|
GetServerList | Return a list of servers. |
GetActiveServers | Return a list of the active servers. |
GetServerInfo ServerName <ServerName> | Return detailed information about the
specified server.
Return data is in the following form: "ServerName","URL","DefaultFolder","Description","EncryptedUserName","EncryptedPassword","Active","LastFolder","TrustedServer" |
The SDF_RM command can also return information for SDF resources. The syntax for these options is:
SDF_RM <ApplicationPath> {Option} ResourcePath "<ResourcePath>" [ServerName <ServerName>] [Revision <RevisionNumber>]
The ResourcePath "<ResourcePath>" specifies the file.
Note: Paths to SDF resources are case-sensitive.
The Revision <RevisionNumber> parameter is optional and only applies if the specified resource is under revision control. If a revision number is not specified and the specified resource is under revision control, the information for the latest revision will be returned.
Use ServerName <ServerName> to specify the server. This option is required if more than one server is available.
The following table describes {Option} values for returning Resource information:
{Option} | Description |
---|---|
GetResourceName | Returns the name of the specified resource. |
GetResourceFullName | Returns the full name (URL) of the specified resource. |
GetResourceCurrentVersion | Returns the revision number for the
latest (head) revision of the specified resource.
The [<RevisionNumber>] parameter should not be included for this option. |
GetResourceRevisionComments | Returns the comments associated with the specified revision. |
GetResourceCreatedByUser | Returns the user who created the specified resource. |
GetResourceCreationTime | Returns the creation time of the specified resource. The value returned is a UNIX time value (the number of seconds elapsed since 00:00 hours, January 1st, 1970 UTC). |
GetResourceLastModifiedTime | Returns the last modified time of the specified resource. The value returned is a UNIX time value (the number of seconds elapsed since 00:00 hours, January 1st, 1970 UTC). |
GetResourceIsRevisionControlled | Returns TRUE if the specified resource
is under revision control and FALSE if it is not.
The [<RevisionNumber>] parameter should not be included for this option. |
GetResourceSize | Returns the size (in bytes) of the specified resource. |
To return a list of all active servers:
SDF_RM / GetActiveServers
ServerA
Test1
To return information about a server:
SDF_RM / GetServerInfo ServerName ServerA
"ServerA","http://sdf.mydomain.com","","My Data Federate Server","V1hZWE9bWUNF","","Yes","","Yes"
To return the last modified time of the specified resource:
SDF_RM / GetResourceLastModifiedTime ResourcePath "/Users/john/MySatellite.sa" ServerName ServerA
1333381862
To return the full name of revision 3 of the specified resource:
SDF_RM / GetResourceFullName ResourcePath "/Users/john/DirecTv.sa" Revision 3
https://adf9.agi.com/content/files/Users/john/DirecTv.sa?ver=3
This command belongs to the following group(s):
11
STK Programming Interface 11.0.1