SVN
https://mware.ucdavis.edu/svn/ucd-sakai/ucd-utilities
Utilities
OfficialMessageTool
setup
install ucd-utilites module
cd <sakai-source-root-dir>/
svn co https://mware.ucdavis.edu/svn/ucd-sakai/ucd-utilities
cd ucd-utilities && mvn clean install sakai:deploy
Install Sakai Groovy Shell (SGS)
Install SGS following procedure found here:
Contrib: Sakai Groovy Shell
Setting login user settings
The script will need to establish a session witht eh priv's necessary to complete the site updates (eg, admin) and looks for the username and password in the DynamicConfigurationServices under the admin.user and admin.pw keys.
One way to do this is with jconsole
You'll need to forward X11 thru the knockdc firewall cluster to do it.
add to .ssh/config:
LocalForward 127.0.0.154:12104 <remoteMachineDNSName>:22 Host <host Name to type on commandline> HostName 127.0.0.154 Port 12104
Then
ssh -X knockdc .... ssh -X remoteMachineDNSName jconsole
select 'Remote' connection tab and use localhost port 9000
Select the 'MBeans' tab (top)
Expand the 'beans' domain (left side) and select the DynamicConfigurationService MBean
Select the 'Operations' tab (top)
Set the values for the two keys 'admin.user' (username) and 'admin.pw' (password)
Then on the remote machine run
remote-machine>telnet localhost 6789
h3 Running the process
connect to the telnet port and run:
import edu.ucdavis.smartsite.util.OfficialMessageTool; tool = new OfficialMessageTool(); go
you should see a display of the string representation of the tool instance.
...if so, then
sessionid = tool.login(); result = tool.addMessageToolToUserSites(sessionid); go
When the task is completed, be sure to remove the admin.pw key value from the DynamicConfigurationService MBean in jconsole, at the least and probably better to also remove the 'admin.user' key