asadmin multimode command runs a series of asadmin subcommands within one single session. The --file option takes a file containing the list of subcommands.In the following example, I created 2 files named asadmin-create-resources and asadmin-delete-resources, and pass each of them to
asadmin multimode:# content of file asadmin-create-resourcescreate-jms-resource --restype javax.jms.QueueConnectionFactory jms/QueueConnectionFactory1create-jms-resource --restype javax.jms.Queue jms/Queue1create-jms-resource --restype javax.jms.Queue jms/Queue2$ asadmin multimode --file /tmp/asadmin-create-resources# content of file asadmin-delete-resourcesdelete-jms-resource jms/Queue1delete-jms-resource jms/Queue2delete-jms-resource jms/QueueConnectionFactory1$ asadmin multimode --file /tmp/asadmin-delete-resources |
asadmin help:asadmin help multimode asadmin multimode --help asadmin multimode -\?
No comments:
Post a Comment