John,
On solaris systems, you can view all currently loaded kernel modules
by typing "modinfo". To find out if afs is loaded, type:
modinfo | grep afs
I hoped I've understood your question correctly. I have no idea whether
or not a modinfo command or equivalent exists on the AIX operating system.
-Steven McElwee
--
---------------------------------------------------------------------------
Steven McElwee | Email --> | [EMAIL PROTECTED]
OIT/System Adm | <-- US Snail Mail |
Duke University |------------------------|-------------------------
401 North Building | (919) 660-6914 (Work) | (919) 660-7029 (Fax)
Durham, NC 27706 | | (919) 971-0781 (Cellular)
---------------------------------------------------------------------------
-- original message follows --
> From: "John Marino" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: How to tell if AFS is available.
> Date: Tue, 5 Dec 95 11:45:47 EST
> Is there a way to tell if AFS is loaded (not mounted) on a machine.
>
> Currently for AIX we do a dynamic LOAD of an afs shared object. If the LOAD
> fails then AFS isn't available. However, I am trying to port this code
> to Solaris. Here, I was using a "dlopen" and "dlsym" to load and use
> the AFS shared object. Unfortunately, the dlopen annd dlsym will not fail
> even when AFS is not there.
>
> Is there another approach I can take?
>
>
> John Marino ([EMAIL PROTECTED]) 914-433-7094
>