Command-line to create conference rooms.
I want to script the creation of conference rooms. I also want to script the population of these conference rooms. I want to create the conference rooms with default access of NONE and add only the users that I designate to the conference room (either as READ, WRITE, or MANAGE). Can this be done?
[304 byte] By [
bkdaniel] at [2007-11-26 9:15:07]

# 1
There is no command line utility available to create confrence-rooms but you can create conf-rooms programatically using the public IM apis. You can access those apis from this url http://<hostname>:<webport>/im/apidoc
You can acess sample code from this url http://collab.netbeans.org/source/browse/collab/service/src/org/netbeans/lib/co llab/tools/
# 2
I am using the collab/tools/Shell application on two different systems. I can add a public conference room through the API within the shell (apc) on one system but not on the other. I can list the public conference rooms, see the members of the conference rooms, but I cannot add conference rooms. If I go through the IM client GUI I can add conference rooms. I am logged in as the same user within the Shell application as I am in the IM client. I basically get a timeout error. Why is this happening?
# 3
You mean to say, you can add conferences for the same user through the client UI and not through Shell ?
There should not be much difference between both ... so this is strange.
If yes, can you run the Shell with -debug option and print the output ? (if this is not a test box, please do skip the initial auth related packets though !).
Also, if you do have access to the server logs, it would be great to enable debugging on the server (set "log4j.logger.xmppd=DEBUG, A1" in log4j.conf), restart server and attach the server logs too.
My email id is mridul<at>sun.com
Thanks,
Mridul
# 4
Yes, I can add a conference room from the client UI but not in the Shell even though I am logged in as the same user. I will work on getting you debug information from the Shell application and IM server logs.
# 5
How do you execute the Shell in -debug mode? I executed the Shell with the following commands:
1) go to domainims:/opt/SUNWiim/config/log4j.conf and set log4j.logger.xmppd=DEBUG,A1. It should be set to INFO right now, I believe.
2) restart the server
# /opt/SUNWiim/sadmin/imadmin refresh
3) start the Shell application
# bash
# cd /home/staff/user2/im (or /home/staff/user2) (look for Shell.java file)
# export classpath=./jso.jar:./jaxen-core.jar:./saxpath.jar:./xp.jar:./collab-service.ja r:./log4j.jar:./
# java -cp $classpath -debug org.netbeans.lib.collab.tools.Shell
4) Type the following commands inside the Shell
imp> login
IM Service: domainimm.domainpriv.gov:5222
User Name: imadmin
Password: adminpass
imp> apc test2
The only error message that I received in the Shell was:
Cannot create conference:
I will email you the filtered xmppd.log files. The GUI log file shows the creation of the test2 conference while the Shell log file gives no error information after it tries to create the test2 conference room.
Any ideas?
# 6
Step 3.4 needs to be modified for obtaining client side logs.
Namely, -debug should be a parameter to be passed to Shell, not java.
So please invoke it as :
# java -cp $classpath org.netbeans.lib.collab.tools.Shell -debug
This will give you a whole bunch of client side logs : usually on the console itself, so doing a tee of the output would help like this :
# java -cp $classpath org.netbeans.lib.collab.tools.Shell -debug | tee console.logs
I will go through the server side logs you sent me, thanks.
Regards,
Mridul
# 7
Thanks for the correction. I did try the publish presence information (ppi) command after the login and before the conference room creation and it did work. Problem solved for the Shell. I will add code to my application for publishing presence information now and it should work. I will let you know if it does not.
Thanks again.