Novell Home

WebLog II

Novell Cool Solutions: Feature
By Leigh Johnston

Digg This - Slashdot This

Posted: 24 Oct 2002
 

Recently we conducted a Cool Tools Contest and invited our readers to explain how they use any of the 500+ tools and utilities available on the Cool Tools page. We got some great entries, and are blown away by how useful those freebies are at solving real-life problems. Here's one of the top five award-winning entries.


Tools in this Solution:

I used the free tool "Weblog" provided/uploaded by Ron Fowler. After testing it I downloaded the source files and change it to also create log files for users and workstations as we don't have ColdFusion like Ron does. Since then we have caught 25 students logging in as other students and 5 logging in as staff. We know there's more out there and now we're just sitting back and waiting.

When run WITHOUT arguments in the command line it will write to the file 'complete.log' in the folder it is run from, with the following details:

date,time,mac address,ip address,computer name,blank,blank

When run in the following manner:

Login Script:
SET User="%LOGIN_NAME"
SET Ctext="%LOGIN_CONTEXT"
#\\SERVER\SYS\PUBLIC\CLIENT\LOG\WEBLOG.BAT

Weblog Batch file:
@echo off
\\SERVER\SYS\PUBLIC\CLIENT\LOG\WEBLOG.EXE %User% %Ctext%

it will write to the file 'complete.log' in the folder it is run from, with the following details:

date,time,mac address,ip address,computer name,loginID,Context

It will also give you give you a separate log file for all users within the 'user' folder with the following details:

date,time,mac address,ip address,computer name

and a separate log file for all workstations within the 'workstn' folder with the following details:

date,time,mac address,ip address,loginID,Context

Optionally if you want it to write to a different location from where it is being run from, you can add a third argument in the command line eg.

Weblog Batch file:
@echo off
\\SERVER\SYS\PUBLIC\CLIENT\LOG\WEBLOG.EXE %User% %Ctext% 
\\server2\sys\public\logs

Arguments must be in the following order: User Context [path]

Note: Make sure you have user and workstn folders within the folder you are writing the 'complete.log' file to. Otherwise you will get a "path not found" runtime error when it tries to write the user and workstation log files.

If you have any questions you may contact Leigh at Johnston.Leigh.M@edumail.vic.gov.au


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell