Complete this lesson to query current service rankings as well as those service rankings that are available for upgrade.
cd wxs_home/bin
./xscmd.sh -c osgiCurrent -g Grid -ms MapSet -sn myShardListener
The following output is displayed:OSGi Service Name: myShardListener
ObjectGrid Name MapSet Name Server Name Current Ranking
--------------- ----------- ----------- ---------------
Grid MapSet collocatedServer 1
CWXSI0040I: The command osgiCurrent has completed successfully.
cd wxs_home/bin
./xscmd.sh -c osgiCurrent -g Grid -ms MapSet
The following output is displayed:OSGi Service Name Current Ranking ObjectGrid Name MapSet Name Server Name
----------------- --------------- --------------- ----------- -----------
myProtoBufSerializer 1 Grid MapSet collocatedServer
myShardListener 1 Grid MapSet collocatedServer
CWXSI0040I: The command osgiCurrent has completed successfully.
cd wxs_home/bin
./xscmd.sh -c osgiAll -sn myShardListener
The following output is displayed:Server: collocatedServer
OSGi Service Name Available Rankings
----------------- ------------------
myShardListener 1
Summary - All servers have the same service rankings.
CWXSI0040I: The command osgiAll has completed successfully.
The
output is grouped by the server. In this example, only the following
server exists: collocatedServer.cd wxs_home/bin
./xscmd.sh -c osgiAll
The following output is displayed:Server: collocatedServer
OSGi Service Name Available Rankings
----------------- ------------------
myProtoBufSerializer 1
myShardListener 1
Summary - All servers have the same service rankings.
cd wxs_home/bin
./xscmd.sh -c osgiAll
The following output is displayed:Server: collocatedServer
OSGi Service Name Available Rankings
----------------- ------------------
myProtoBufSerializer 1, 2
myShardListener 1, 2
Summary - All servers have the same service rankings.
In this tutorial, you queried currently specified and all available service rankings. You also displayed the service ranking for a new bundle that you installed and started.