In this article, I would brief about EMS commands with some examples.
Start the EMS Server.
From EMS Administration Tool, connect to EMS using connect and login with default credentials
EMS commands are executed to view queues and topics,
EMS commands are shown below for creating queue,topics, groups, users, add members and grant permissions to group and users.
Below is list of commands in EMS with examples.,
add member | create queue | delete rcvmlistener |
addprop factory | create route | delete topic |
addprop queue | create rvcmlistener | delete user |
addprop route | create topic | disconnect |
addprop topic | create user | echo |
autocommit | delete all | exit |
commit | delete bridge | grant queue |
compact | delete connection | grant topic |
connect | delete durable | grant admin |
create bridge | delete factory | help |
create durable | delete group | info |
create factory | delete jndiname | jaci clear |
create group | delete message | jaci resetstats |
create jndiname | delete queue | jaci showstats |
delete route | purge all queues | |
purge all topics | set server | show durables |
purge durable | setprop factory | show factory |
purge queue | setprop queue | show factories |
purge topic | setprop route | show jndiname |
remove member | setprop topic | show jndinames |
removeprop factory | show bridge | show group |
removeprop queue | show bridges | show members |
removeprop route | show channel | show message |
removeprop topic | show channels | show messages |
resume route | show config | show parents |
revoke admin | show consumer | show queue |
revoke queue | show consumers | show queues |
revoke topic | show connections | show route |
rotatelog | show db | show routes |
set password | show durable | show rvcmtransportledger |
show rvcmlisteners | showacl admin | |
show server | showacl group | |
show stat | showacl queue | |
show store | showacl topic | |
show stores | showacl user | |
show topic | shutdown | |
show topics | suspend route | |
show transaction | time | |
show transactions | timeout | |
show transport | transaction commit | |
show transports | transaction rollback | |
show user | updatecrl | |
show users | whoami | |
create
user :
Command to create a new user.
syntax : create user user_name
“user description” password=pass
ex : create user raghu
“training user” password=raghu123
show
users:
used to show all users that are existing.
syntax: show users
ex : show users
Delete
user :
Command is used to delete the specified
user
syntax : delete user user_name
ex : delete user tibcodj
create
group :
Used to create a group of users. When
created the group is empty.
syntax : create group group_name
“description”
ex : create group training “cbl
training group”
delete
group:
used to delete the group mentioned
syntax : delete group group_name
ex: delete group training
add
member :
used to add one or more users to the
group.
syntax : add member group_name
username, username
ex: add member training abc,admin,trainer
set
password :
used to set the password for the
mentioned user
syntax : set password user_name
password
ex: set password tibcodj dj1243
grant
admin:
used to grant administrator permissions
to the named user or group.
syntax: grant admin user=user_name |
group=grou_name admin_permissions
ex: grant admin user = djall
grant admin group = training all
connect
:
used to connect the administrative tool
to the ems
server
syntax: connect tcp://server_name:port_no
ex: connect tcp://localhost:7222
disconnect
:
command used to disconnect the
administrative tool from server
syntax: disconnect
ex : disconnect
create
topic:
Used to create a topic with the specified
name and properties. Properties are listed using
a comma as described in the topics.conf
syntax: create topic topic_name
properties
ex: create topic t1
Show
topic:
show details for the mentioned topic
syntax: show topic topic_name
ex: show topic t1
setprop topic:
used to set topic properties. This is
override any existing properties.
syntax: setprop topic topi_name properties
ex: setprop topic t1 secure
grant
topic:
It is used to grant permissions to a user
or group on a specified topic.
syntax: grant topic topic_name user_nema | group_name
permissions
purge
topic:
delete all messages for all the subscribers on
the mentioned topic
sytax: purge topic topicname
ex: purge topic t1
delete
topic:
used to delete the specified topic
syntax: delete topic topic_name
ex: delete topic t1
create
queue:
used to create queue with the specified
name and properties.
syntax: create queue queue_name
properties
ex: create queue q1
show
queue:
used to show the details for the
specified queue
syntax: show queue queue_name
ex: show queue q1
setprop queue:
used to set properties to the specified
queue
syntax: setprop queue queue_name properties
ex: setprop queue q1secure,sender_name
grant
queue:
used to grant permissions on the queue to
a specified user or group.permissions like
view, create, delete, modify, purge
syntax: grant queue queue_name user_name | group_name
permissions
purge
queue:
used to purge or delete all messages in
the named queue.
syntax: purge queue queue_name
delete
queue:
used to delete the specified queue
syntax: delete queue queue_name
ex: delete queue q1
create
durable:
used to create a static durable
subscriber
syntax: create durable topic_name durable_name
property
ex: create durable t1 durable1
delete
durable:
used to delete the named durable susbcriber
syntax: delete durable durable_name
ex: delete durable durable.1
show
config:
shows the configuration parameters of the
connected server
syntax: show config
show
consumer:
used to show details of a specific
consumer.
syntax: show consumer consumerID
show
consumers:
used to display all the consumers. we can
define the filters if we want only certain
consumers to be displayed
syntax: show consumers
show
connections :
used to show connections between clients
and servers.
syntax: show connections
show
db:
used to print a summary of the server’s
database.
syntax: show db
show
server:
command used to show server name and
information of the connected server.
syntax: show server (aliases:info, i)
add
member :
add one or more members to the group
syntax : add
member group_name
user_name
Ex: add
member training raghu
addprop factory :
Used to add properties to the factory.
Property names are separated using spaces
syntax : addprop factory factory_name properties
Ex: addprop factory MyTopicFactory ssl_trusted=cert1.pemssl_trusted=cert2.pem
ssl_verify_host=disabled
addprop queue:
Used to add properties to the queue.
Properties names are separated using spaces.
Syntax: addprop queue queue-name properties
addprop route:
add properties to route. The properties
that are being defined should be separated by
spaces
Syntax : addprop route route-name prop=value
addprop topic:
add properties to topic. Properties are
separated by spaces.
syntax: addprop topic topic_name properties
autocommit :
autocommit is used to automatically save changes
made to the configuration files.
If it is set to ON then it saves or else
we can turn it OFF. If we type autocommit it just
show the present condition.
syntax : autocommit on/off
shutdown:
used to shutdown the connected server
syntax: shutdown
whoami:
command to display the current logged in
user
syntax : whoami
commit:
commit all configuration changes into
files on disk.
syntax: commit
exit:
command used to exit the administration
tool
syntax: exit ( alias: q, bye, quit, end)
create
bridge:
used to create a bridge between
destinations
syntax: create bridge source=type:dest_name
target=type:dest_name
type is either topic or queue
delete
all:
used to delete all users, groups, topics,
queues or durables
syntax : delete all users|groups|topics|queues|durables
info:
used to show server name and information
about the connected server
syntax: info(alias: i)
help:
display help information
syntax: help command
create
bridge:
used to create a bridge between
destinations
syntax: create bridge source=type:dest_name
target=type:dest_name
type is either topic or queue
delete
all:
used to delete all users, groups, topics,
queues or durables
syntax : delete all users|groups|topics|queues|durables
info:
used to show server name and information
about the connected server
syntax: info(alias: i)
help:
display help information
syntax: help command
show
bridge:
used to display information about the
configured bridges for the named topic or queue
syntax: show bridge topic|queue bridge_source
show
bridges:
used to show summary of the destination
bridges that are currently configured. type
specifies the type of destination
established as the bridge source
syntax: show bridges topic
show
durable:
show information about a durable
subscriber
syntax: show durable durable_name
show
durables:
show list of all durables that are
defined
syntax: show durables
show
groups:
used to display all user groups
syntax: show groups
show
group:
used to show group name, description, and
number of members in the group.
syntax: show group group_name
show
members:
show all user members of specified user
group
syntax: show members group_name
show
message:
shows the message for the specified
message id
show message messageID
revoke
admin:
used to revoke the global administration
permissions for the named user
syntax: revoke admin user=name |
group=name
time:
used to place a time stamp on each
command output.
syntax: times on|off
timeout:
used to show or change the current
command timeout value. The timeout value
is the
number of seconds the admin tool will wait for a response from the
server after sending
the command.
syntax: timeout seconds (by default the timeout value is 30
seconds)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.