[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting system information out of the kernel





Hi all,

I am working on a perl script that collects system config info from Digital
Unix, Solaris and HPUX systems. This script scans several DNS address spaces to
determine which hosts may be Unix boxes (uses a pattern match on the hostname),
and then for each host, uses the rexec system call to login to the unix system,
identify the OS type, and then collect the relevant info.

Using uerf/dec event/messages file is not 100% reliable for gathering info, as
is the preserved message buffer in the kernel. What I am after is finding out
all the symbols defined in the kernel, and interogating these symbols to gather
the info I am interested in. For example the kernel symbol physmem tells you how
much memory the system has. Does anyone know how to list all the symbols, and
secondly where I can find info on the various symbols. Maybe someone knows where
there is a resource on the internet on debugging the Digital Unix kernel. I have
looked at the kernel debugger manual, which has limited usefulness.

Many thanks in advance

Alastair Munro




-----------------------------------------------------------------------------
This message is confidential; its contents do not constitute a 
commitment by Paribas except where provided for in a written agreement 
between you and Paribas. Any unauthorised disclosure, use or 
dissemination, either whole or partial, is prohibited. If you are not 
the intended recipient of the message, please notify the sender 
immediately. 

Ce message est confidentiel ; son contenu ne représente en aucun cas un 
engagement de la part de Paribas sous réserve de tout accord conclu par 
écrit entre vous et Paribas. Toute publication, utilisation ou 
diffusion, même partielle, doit être autorisée préalablement. Si vous 
n'êtes pas destinataire de ce message, merci d'en avertir immédiatement 
l'expéditeur.