Get-Topics
This cmdlet lists all Topics registered on a specified cache. It lists down the Topic names and the respective number of subscribers and publishers against each Topic name.
Note
This feature is also available in the NCache Community Edition, but -Detail
and -ShowAll
are exclusive to the NCache Enterprise Edition.
Get-Topics -CacheName [-Server] [-Port] [-Detail] [-ShowAll] [-NoLogo] [-Credentials]
Examples
- This command gets Topics registered on demoCache.
Get-Topics –CacheName demoCache
- This command gets Topics registered on demoCache existing on server 20.200.20.11.
Get-Topics –CacheName demoCache –Server 20.200.20.11
- This command uses port and gets Topics registered on demoCache existing on server 20.200.20.11.
Get-Topics -CacheName demoCache -Server 20.200.20.11 -Port 8250
- This command shows all the subscriptions associated with the Topic.
Get-Topics -CacheName demoCache -Detail
- This command displays all Topics (both default and user-created), along with details such as subscribers, publishers, assigned Topic priorities, subscriptions, and associated messages.
Get-Topics -CacheName demoCache -ShowAll
- This command authenticates the credentials provided and lists all Topics and number of corresponding subscribers and publishers registered on demoCache, using port 8250 by default.
Get-Topics –CacheName demoCache -Credentials(Get-Credential john_smith)
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
Parameters | Data Type | Description | Default Value |
---|---|---|---|
-CacheName* |
<String> |
The cache name for which the Topics are to be listed. | - |
-Server |
<String> |
The server name on which the NCache Service is running. | IP of the local machine |
-Port |
<Integer> |
The port on which the NCache Service is listening. | 8250 |
-Detail |
<SwitchParameter> |
Specifies all the subscriptions associated with the Topic. | - |
-ShowAll |
<SwitchParameter> |
Specifies details of all the subscribers, publishers, Topic priority assigned, subscriptions, and messages associated with the Topic. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | - |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user who has appropriate permissions at the node. | - |