EMS scripting - How to execute a sequence of EMS commands

We can execute a sequence of EMS commands by writing a simple script file.
write EMS commands in txt file and save in location C:\tibco\ems\5.1\bin
Example script file is dev.scr and its content is

show queues
show topics


open command prompt and go to the location C:\tibco\ems\5.1\bin and run the below command, it will execute the EMS commands

C:\tibco\ems\5.1\bin>
tibemsadmin -server "tcp://localhost:7222" -user admin -password "" -script C:\tibco\ems\5.1\bin\dev.scr


just give the full path of the file with the extension(i.e C:\script.txt or C:\script.scr or C:\script.anything) in the command and run it.
Even if there is no file extension, it doesnt matter :-)...you just need to have a plain text file with all the ems commands.


Syntax of the command is

tibemsadmin -server <server-url> -user <user-name> -password  <password> -script C:\script.txt

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP