31
Leveraging Webservices for Administrative Tasks

Leveraging Administrative Tasks with Webservices

Embed Size (px)

DESCRIPTION

#CSUC14

Citation preview

Page 1: Leveraging Administrative Tasks with Webservices

Leveraging Webservices for Administrative Tasks

Page 2: Leveraging Administrative Tasks with Webservices

Objective

demonstrate a set of tools developed

at Indiana University that takes

advantage of CS's webservices and

database interactions in order to help

WCMS admins deal with day-to-day

tasks

Page 3: Leveraging Administrative Tasks with Webservices

Cascade Server User Conference 16 September, 2014

Leveraging Webservices for Administrative Tasks

Erick Carballo, [email protected]

Josh Lamar, [email protected]

Enterprise Webtech Services – UITS – Indiana University

Page 4: Leveraging Administrative Tasks with Webservices

Agenda

1. Background

2. Description / demo

3. Final considerations/Questions

Page 5: Leveraging Administrative Tasks with Webservices

I. WCMS @ IU: Background

Page 6: Leveraging Administrative Tasks with Webservices

CS @ IU

• June 2007: Product evaluation• June 2008: HH’s Cascade Server

chosen by IU and pilot project core team created

• August 2008: Vendor-supplied training• September 2008: Pilot phase• February 2009: Initial training offered

and production service became available

Page 7: Leveraging Administrative Tasks with Webservices

CS @ IU: A Few Approx. Numbers

• All Indiana University: 8 campuses (115,000 students)

• Active WCMS Users: 3,800• Groups: 3,200• Page assets in system: 879,000• Files in system: 432,000• Folders: 84,000• Active logged-in (approx.): 40-70• Logins in a day: 150 discrete users• Great majority of content: Global area

Page 8: Leveraging Administrative Tasks with Webservices

8

Enterprise Web Technical Services

• Consolidated Hosting

Environment

• GoIU (url shortening

service)

• Instructional servers

• “Personal" pages

• Podcasting

Team manages the central web servers and related services available to *all* departments on *all* IU campuses

• Search

• Siteshare

• Web Analytics (analog and

weblog)

• Web Content Management

System

• IU’s Central Web Server

Page 9: Leveraging Administrative Tasks with Webservices

II. Description / Demo

Page 10: Leveraging Administrative Tasks with Webservices

I N D I A N A U N I V E R S I T Y

Admin Tools: Utilities

1. (All-inclusive) Publisher

2. Publisher Stats

3. Page Load Stats

4. Monitor user/group access

5. User messages

6. Misc. utilities

Page 11: Leveraging Administrative Tasks with Webservices

1. All-Inclusive publisher

Page 12: Leveraging Administrative Tasks with Webservices
Page 13: Leveraging Administrative Tasks with Webservices

13

Page 14: Leveraging Administrative Tasks with Webservices

1. Queue with 25 jobs or more

2. Job publishing for more than 20 minutes

3. Job at 100% for more than 5 mins.

Page 15: Leveraging Administrative Tasks with Webservices

15

Publisher’s mechanics

• Page with javascript makes Ajax call every 3 seconds (recursion)

• Ajax calls to get current publish jobs directly from db (cxml_publishrequest)

• Session (PHP) keeps track of timing• when/if time exceeded:

• table cells change color • text messages are sent accordingly

Page 16: Leveraging Administrative Tasks with Webservices

2. Publisher Stats

Page 17: Leveraging Administrative Tasks with Webservices

17

Publisher Stats’ mechanics

• PHP script as cron job: • infinite loop • pauses for 3 seconds after each reiteration • Loop finishes every hour and cron starts it again (keep Apache

server happy)

• Script queries cxml_publishrequest and stores info in independent database.

• Recorded jobs are stored in session and compared in order to avoid duplication

• DB query: • if page/file asset: info sent to db• if folder/publish set:

• webservices get child assets • info sent to db

• Google API for charts and related info (ajax calls for additional info)

Page 18: Leveraging Administrative Tasks with Webservices

3. Page Load Stats

Page 19: Leveraging Administrative Tasks with Webservices

Page Load Stats Mechanics

• New functionality added to CS’s onload.js

• The added code “clicks” on Metrics tab to get page’s Rendering Time (via jQuery) and sends data to external database (via Ajax)

• N.B.: Code requires that user lets page render and load fully.

Page 21: Leveraging Administrative Tasks with Webservices

4. Monitor user/group access

Page 22: Leveraging Administrative Tasks with Webservices

04/13/2023

Page 23: Leveraging Administrative Tasks with Webservices

23

Monitor user/group access mechanics

• Only folder assets (too big otherwise)

• Look at cxml_aclentry then get children for folders

• Show the results on a webpage

Page 24: Leveraging Administrative Tasks with Webservices

5. User Messages

Page 25: Leveraging Administrative Tasks with Webservices

The users script works exactly like the group access script, but first it just gets all the groups the user belongs to and then loops through each one.

Page 26: Leveraging Administrative Tasks with Webservices

6. Misc. Utils.

Page 27: Leveraging Administrative Tasks with Webservices

Misc. Utilities

• Disk usage• Change creation date• Webservices object view• Id-2-path• Transports info

Page 28: Leveraging Administrative Tasks with Webservices

28

Disk usage

Page 29: Leveraging Administrative Tasks with Webservices

III. Final considerations

Page 30: Leveraging Administrative Tasks with Webservices

Cascade Server’s balance

• internal power, flexibility, and granularity

• webservices and db access: “external” potential

• ideal for monitoring and administrative tasks

Page 31: Leveraging Administrative Tasks with Webservices

Erick Carballo: [email protected]

Josh Lamar: [email protected]

wcms.iu.edu