Thursday, April 21, 2005
Determining the size of individual courses
QUESTION:
Back in the 5.x days an administrator used to be able to see the size of a course by looking in the course properties. That feature has disappeared with the move to 6.x. Has anyone found an easy way to determine the size of a course in 6.2 etc?
ANSWERS:
-----1-----
Sys Admin can view the size from Properties button. What about a list of all the courses?
-----2-----
ASP clients ask for this from our TSM. He sent it to us as a .csv file.
-----3-----
If you're on Linux/Solaris, all you have to do is go into the /blackboard/content/vi/bb_bb60/courses/1/ directory and run this.
du -sk * sort -nr
-----4-----
Here is a Windows script that I use that ain't pretty. I save it as foldersize.asp.
I put it in the docs folder and run it as https://blackboard.my.edu/foldersize.asp.
You will need to change the folder path to your configuration and set the size that you want.
Maybe someone can improve it for us. ;)
-----5-----
I did a couple of cosmetic tweeks, but stongly suggest cleaning up the objects in the last line.
----- THREAD:
From: blkbrd-l - "Listserv" [mailto:BLKBRD-L@asu.edu] On Behalf Of Bob Armstrong
Sent: Thursday, April 21, 2005 3:24 PM
To: BLKBRD-L@asu.edu
Subject: [BLKBRD-L] Determining the size of individual courses
----- ARCHIVES:
Directions to BLKBRD-L archives and settings:
http://is.asu.edu/instruction/faq/usingBLKBRD-L.html
Back in the 5.x days an administrator used to be able to see the size of a course by looking in the course properties. That feature has disappeared with the move to 6.x. Has anyone found an easy way to determine the size of a course in 6.2 etc?
ANSWERS:
-----1-----
Sys Admin can view the size from Properties button. What about a list of all the courses?
-----2-----
ASP clients ask for this from our TSM. He sent it to us as a .csv file.
-----3-----
If you're on Linux/Solaris, all you have to do is go into the /blackboard/content/vi/bb_bb60/courses/1/ directory and run this.
du -sk * sort -nr
-----4-----
Here is a Windows script that I use that ain't pretty. I save it as foldersize.asp.
I put it in the docs folder and run it as https://blackboard.my.edu/foldersize.asp.
You will need to change the folder path to your configuration and set the size that you want.
Maybe someone can improve it for us. ;)
<%LANGUAGE="VBSCRIPT"%>
<html>
<head>
<title>Folder Size</title>
</head>
<body>
<%
on error resume next
Server.ScriptTimeOut = 980
Dim fs, f, f1, s, sf, tf, a
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFolder("D:\blackboard\content\vi\bb_bb60\courses\1")
Set sf = f.SubFolders
For Each f1 In sf
If f1.Size > 19999999 Then
response.write UCase(f1.Name) & " uses " & f1.Size & "
bytes.<BR>"
End If
Next
%>
</body>
</html>
-----5-----
I did a couple of cosmetic tweeks, but stongly suggest cleaning up the objects in the last line.
%>
Dim fs, f, f1, s, sf, tf, a
Set fs = CreateObject("Scripting.FileSystemObject")
Set f =
fs.GetFolder("XXXX:\blackboard\content\vi\bb_bb60\courses\1")
Set sf = f.SubFolders
response.Write("<table><TR><th>Course/Org</th><th> Stored files
(MB)</th></tr>")
For Each f1 In sf
If f1.Size > 4999999 Then
response.write "<td>"&UCase(f1.Name) & "</td><td>" &
f1.Size/1000000 & " Mbytes.</td></tr>"
End If
Next
response.Write("</table>")
Set sf = nothing
Set f = nothing
set fs = nothing
%>
----- THREAD:
From: blkbrd-l - "Listserv" [mailto:BLKBRD-L@asu.edu] On Behalf Of Bob Armstrong
Sent: Thursday, April 21, 2005 3:24 PM
To: BLKBRD-L@asu.edu
Subject: [BLKBRD-L] Determining the size of individual courses
----- ARCHIVES:
Directions to BLKBRD-L archives and settings:
http://is.asu.edu/instruction/faq/usingBLKBRD-L.html