[1744] in Moira

home help back first fref pref prev next nref lref last post

Re: Moira interface?

daemon@ATHENA.MIT.EDU (Garry Zacheiss)
Thu Feb 15 13:29:17 2001

Message-Id: <200102151829.NAA03538@riff-raff.mit.edu>
To: Petr Swedock <petr@ai.MIT.EDU>
cc: moiradev@MIT.EDU
In-Reply-To: Your message of "Thu, 15 Feb 2001 07:58:35 EST."
             <Pine.GSO.4.21.0102141548080.1086-100000@thelonius> 
Date: Thu, 15 Feb 2001 13:29:13 -0500
From: Garry Zacheiss <zacheiss@MIT.EDU>

>> My name is Petr Swedock. I'm sysadmin/netadmin at the AI lab and I'm
>> setting up a database here in the lab and Bob Mahoney said I should 
>> direct my questions here.

   Sure, this is a good place for any questions you might have.

>> So, my questions: Is the UI on moira portable? What's it written in? 

   All of the current moira clients are written in C. I consider them
portable: they are currently known to build on Solaris, Irix, Digital
Unix, Linux, NetBSD, AIX, and have in the past been built in the past
under Win32 using Cygwin.  The curses client (aka "moira") is known to
have some issues under AIX, that I've never bothered to work out because
it's not a supported platform for us, and I don't have regular access to
a machine of that architecture.

>> Is the code extensible? What's the DB behind it? Will it work with
>> Oracle 8i? How do I get my hands on it to see if it's really what I
>> want?

   The code is fairly extensible, depending on your familiarity with it.
The database we're currently using is Oracle 7.3.4, we had previously
been using Oracle 7.1.6.  Porting to Oracle 8 should be straightforward,
and I plan to do that over this before the end of this summer.  We'll be
targeting Oracle 8.1.7, but the work should be useful for you, as well.

    In case you're wondering, the server program itself (moirad) is
written in C with embedded SQL using Oracle's Pro*C product; most of the
programs that generate configuration files from Moira are also written
in C with embedded SQL, although we've of late also been using Perl with
the DBI::Oracle module for this purpose; I find these much easier to
write and maintain, but you should be aware if using Oracle 8 that I've
heard rumors of DBI having issues with the VARCHAR type under that
release of Oracle.  I haven't personally investigated yet.

    If you'd like to see a moira source tree, log into Athena and
"attach moiradev; cd /mit/moiradev/src".  There are parts of this source
tree you won't be able to read, all of which relate to maintaining an
AFS prdb with moira.  I doubt any of these will be very interesting to
you.  

    If you'd rather I generate a source tarball for you, I'd be happy to
do that, although turnaround time will be somewhat slower.

    I hope this is helpful; please let me know if you have any other
questions.

Garry



home help back first fref pref prev next nref lref last post