Tuesday, September 21, 2010

Alpha 4 released

I've created a release, even though the (internal OAv2) Change stuff isn't finished.
Grab it here -
http://launchpad.net/oav2/trunk/alpha4/+download/OAv2_alpha_4.zip

Enumerating SQL Server DBs

Does anyone have a VBScript (that can be run from the command line) that can enumerate the databases (and their attributes) on a SQL Server - NOT using SQLDMO ?
IE - not like the one below

strDBServerName = "."

Set objSQLServer = CreateObject("SQLDMO.SQLServer")
objSQLServer.LoginSecure = True
objSQLServer.Connect strDBServerName

Set colDatabases = objSQLServer.Databases

For Each objDatabase In colDatabases
WScript.Echo objDatabase.Name
Next Set colDatabases =NOTHING
Set objSQLServer =NOTHING


My problem is that a standard (non SQL installed) machine doesn't have SQLDMO installed as far as I can tell - please correct me if I am mistaken. Basically I want to use the normal audit_windows.vbs script to enumerate all databases on a server and their size (and anything else that you might find interesting). Can anyone help ?

UPDATE - I found an example script, incorporated it into the audit script and it's all good. I created a basic "Show Databases" report and it works.

Posting each week

OK, so I've now set a reminder in my calendar for every Monday to post something here...
Maybe I need a PA ?!?!?!

Too Long

Wow - it's been waaaaay too long between posts.
Here's what's been happening.
I spoke at SAGE-AU in Hobart. It went down OK.
I've been away a couple of times with a work course (3 days at a time).
We're in the middle of ripping out our kitchen. Nearly there with the new one.
The kids have been to 1001 birthday parties lately.
Real life is just too busy !!!

OK, having mounted my defense of excuses, where is the next release of OAv2 at ? I'm glad you asked.

I think all that's left to do for another release is to post the Change form to the DB. Really. That's it. I'll do my best to knock it off tonight - but the kitchen benchtops and plumbing are going in this afternoon - sigh...

I've completed migrating the "reports" into the DB. You can now define a report and it's display columns. You can export it as XML (and import it back) as well. Essentially, someone can come up with a nice report, export the XML and post it to the forums for others to use.

There has been much refactoring and code cleanup, too. Oh, and partition use graphs are in, too (along with trend lines). And exporting to CSV and XML works (along with Excel). If you want, you can always grab the code from Launchpad using Bazaar.

Monday, July 5, 2010

Linking alerts to changes

Finished the basics of linking generated alerts to changes.
What this means is that on the "list alerts" page, you can select multiple alerts and a form will appear so you can associate them to :
The "changes" table functionality in OAv2 (not complete),
An external system (via ID and/or URL),
A simple acknowledgement within the "alert" table in OAv2.

Very ITIL like. Very nice.

At the end of the day, you can audit machines, get a listing of alerts (which are changes to audited fields) and associate these with a Change System - either the basic one within OAv2 or an external one.

Next up is to start the Change System within OAv2. It's going to be simple (at least to start). Basically a recording of proposed changes - what, where, how, why, who, etc. Pretty simple from a coding perspective - CRUD mainly with a small amount of User credential checking. I don't plan on workflow style Changes (at least yet).

Once that is done, Alpha 4 will be inbound.

Thursday, June 10, 2010

Alpha 3 available

Yep, you read right - it's available.
Go grab it and give it a thrashing.
All previous Bugs should have been addressed.

http://www.open-audit.org/OAv2_03.zip

Import / Export in OAv2

I have the import and export routines working for Devices, Locations and Organisations. Excel only at this stage.

One interesting aspect was the need to alter the network group creation routine. Think of a network device that you know about, but don't know specific IP details. IE - you know it's IP Address, but what about it's configured subnet ? What about it's MAC Address ? A lot of people will not know the details. So now network group creation has to account for IP Addresses in the system table - not just the sys_hw_networkcard_ip table. Interesting, but all good and working.

Any report type page (ie - a list of "All Devices") now has a shiny little button (an Excel icon). Click it and you can download & open the resulting Excel spreadsheet. At the moment it's a straight data dump, so things like column headings come direct from the DB. I will have to make another option that removes certain columns and alters the column headings (IE - man_ip_address would become IP Address, system_id would disappear altogether, etc). This would make two styles of output - a dump and a report. Will address this later on.

I think that's good enough for a release. Give me a few hours (when I get home from work) and I'll post again with release details.

Any help debugging would be appreciated.