/
wsPauseFileWikis.py
executable file
·24 lines (21 loc) · 1.04 KB
/
wsPauseFileWikis.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/python
#
# wsPauseFileWikis.py
# Purpose: Script to pause file deletion task within the Connections Wikis application
# Notes: Depends on a hacked version of the fileAdmin.py library
# Invocation: ./wsadmin.sh -lang jython -javaoption -Dscript.encoding=IBM-1047 -f $filename
# Author: Richard Clark <richard.clark@portalpartnership.com>
import sys
wsLineSeparator = java.lang.System.getProperty('line.separator')
# Load Cluster filesAdmin
# Get list of services
wsSvcs = AdminControl.queryNames("*:name=WikisSchedulerMBean,type=LotusConnections,*").split(wsLineSeparator)
if len(wsSvcs[0]) == 0:
raise RuntimeError('ERROR: Files services could not be retrieved.')
else:
for a in wsSvcs:
# serviceNum is a variable relating to the service node number
serviceNum = wsSvcs.index(a)
serviceNum = serviceNum+1
execfile("/opt/IBM/WebSphere/AppServer/profiles/Dmgr01/config/bin_lc_admin/wikisAdmin_unattend.py")
WikisScheduler.pauseSchedulingTask("FileActuallyDelete")