2

I tried to get the ACLs of Q n Topics but one by one. Can we run a script in EMS to get the ACLs of required queues r topics into a file.?

Thanks in advance. Regards, Vijay

user2094955
  • 37
  • 1
  • 6

2 Answers2

5

Create a text file with all your commands in it with each command on a new line.

example myscript.txt

showacl queue queue1
showacl queue queue2

On command line navigate to ems bin directory and call tibemsadmin executable with -script parameter and pass above created text file. example:

tibemsadmin -server tcp://localhost:7222 -script myscript.txt -user user -password pwd

The output would be shown on console you can redirect it to a text by appending >out.txt to above command.

*Don't forget to update the correct EMS server, username and password in the command.

basit
  • 178
  • 1
  • 5
  • Thank you Basit, it worked and i got all at one shot. But when connecting local ems server localhost , pwd not required.i hope i am right. – user2094955 Dec 09 '16 at 15:25
  • By default there is no password for the initial 'admin' user hence it works without the pwd parameter. – basit Dec 13 '16 at 05:31
0

If you have access to the EMS installation directory, then you can get the required details directly from the acl.conf file available in the installation directory.

Sarun
  • 161
  • 1
  • 8