Use the listWSNAdministeredSubscribers command to list the WS-Notification administered subscribers in the configuration of the target WS-Notification service point that match the specified input parameters. An administered subscriber provides a mechanism for the WS-Notification service point to subscribe to an external notification producer at server startup time.
To run the command, use the AdminTask object of the wsadmin scripting client.
The wsadmin scripting client is run from Qshell. For more information, see Configuring Qshell to run WebSphere scripts using wsadmin scripting .
Command-line help is provided for service integration bus commands:
print AdminTask.help('WSNotificationCommands')
print AdminTask.help('command_name')
This command lists all the administered subscribers in the configuration of the target WS-Notification service point that match the specified input parameters. You can use this command to obtain a reference to one or more administered subscribers that have already been created in the configuration in order to work with the administered subscriber further, for example to delete the definition.
WSNServicePoint
None.
None.
wsnSubscriberList = AdminTask.listWSNAdministeredSubscribers(newServicePoint) wsnSubscriber = wsnSubscriberList.split("\n")[0].rstrip()
set wsnSubscriberList [$AdminTask listWSNAdministeredSubscribers $newServicePoint] set wsnSubscriber [ lindex $wsnSubscriberList 0 ]
wsnSubscriberList = AdminTask.listWSNAdministeredSubscribers(newServicePoint, ["-topic", "stock"]) wsnSubscriber = wsnSubscriberList.split("\n")[0].rstrip()
set wsnSubscriberList [$AdminTask listWSNAdministeredSubscribers $newServicePoint {-topic stock}] set wsnSubscriber [ lindex $wsnSubscriberList 0 ]