Available APIs for process and package management

Hello All and welcome to my Hello All:

Welcome to my inaugural post. I am a complete noob to Solaris (although I have been using Linux for 5+ years) and am in the process of trying to get a handle on what local C/C++ APIs (if any) are available for management. Specifically, I am looking to find out about process and package management.

For process management, basically I would like to know is there some kind of interface to the the prstat application (ie. Memory and CPU utilization). Does something like this exist?

For package management, I am looking for the ability to add, remove, and query the package 揹atabase? Correct me if I am wrong, but the Solaris package 揹atabase?seems similar to that of a Debian system (at least from the perspective that the informational files are stored as plain text in a well-defined directory [ie /var/sadm/pkg/]).

I have installed Solaris 10 on an x86 machine with a full installation; however, of the installed development kits (listed below) nothing jumped out at me.

-bash-3.00# ls -1d /var/sadm/pkg/*devel

/var/sadm/pkg/SUNWaspell-devel

/var/sadm/pkg/SUNWevolution-devel

/var/sadm/pkg/SUNWevolution-libs-devel

/var/sadm/pkg/SUNWgnome-a11y-base-devel

/var/sadm/pkg/SUNWgnome-a11y-libs-devel

/var/sadm/pkg/SUNWgnome-a11y-reader-devel

/var/sadm/pkg/SUNWgnome-a11y-speech-devel

/var/sadm/pkg/SUNWgnome-audio-devel

/var/sadm/pkg/SUNWgnome-base-libs-devel

/var/sadm/pkg/SUNWgnome-camera-devel

/var/sadm/pkg/SUNWgnome-common-devel

/var/sadm/pkg/SUNWgnome-component-devel

/var/sadm/pkg/SUNWgnome-config-devel

/var/sadm/pkg/SUNWgnome-desktop-prefs-devel

/var/sadm/pkg/SUNWgnome-file-mgr-devel

/var/sadm/pkg/SUNWgnome-hex-editor-devel

/var/sadm/pkg/SUNWgnome-img-editor-devel

/var/sadm/pkg/SUNWgnome-libs-devel

/var/sadm/pkg/SUNWgnome-media-devel

/var/sadm/pkg/SUNWgnome-panel-devel

/var/sadm/pkg/SUNWgnome-pilot-devel

/var/sadm/pkg/SUNWgnome-print-devel

/var/sadm/pkg/SUNWgnome-project-devel

/var/sadm/pkg/SUNWgnome-terminal-devel

/var/sadm/pkg/SUNWgnome-text-editor-devel

/var/sadm/pkg/SUNWgnome-vfs-devel

/var/sadm/pkg/SUNWgnome-wm-devel

/var/sadm/pkg/SUNWgnutls-devel

/var/sadm/pkg/SUNWjpg-devel

/var/sadm/pkg/SUNWlibexif-devel

/var/sadm/pkg/SUNWlibgcrypt-devel

/var/sadm/pkg/SUNWlibpopt-devel

/var/sadm/pkg/SUNWmozilla-devel

/var/sadm/pkg/SUNWmoznspr-devel

/var/sadm/pkg/SUNWmoznss-devel

/var/sadm/pkg/SUNWogg-vorbis-devel

/var/sadm/pkg/SUNWopenjade-devel

/var/sadm/pkg/SUNWopensp-devel

/var/sadm/pkg/SUNWpcsclite-devel

/var/sadm/pkg/SUNWpng-devel

/var/sadm/pkg/SUNWpostgr-devel

/var/sadm/pkg/SUNWPython-devel

/var/sadm/pkg/SUNWTiff-devel

I've placed orders for Solaris Internals and Solaris Performance & Tuning (that should arrive tomorrow), but I was hoping that someone could give me a gentle push (or perhaps a swift kick) in a general direction. :)

Thanks.

[3116 byte] By [ccrammond] at [2007-11-26 10:36:23]
# 1

> For process management, basically I would like to

> know is there some kind of interface to the the

> prstat application (ie. Memory and CPU utilization).

> Does something like this exist?

Not prstat (although you could 'truss' it and see some of what it's doing to collect the information). kstat is available with a C interface and through perl/shell. It has several CPU fields. It's certainly useful for monitoring, but read-only. I'm not sure what you're looking for in terms of "management".

Also 'dtrace' can provide tons of dynamic information, but that's not necessarily what you're looking for.

> For package management, I am looking for the ability

> to add, remove, and query the package 揹atabase?

> Correct me if I am wrong, but the Solaris package

> 揹atabase?seems similar to that of a Debian system

> (at least from the perspective that the

> informational files are stored as plain text in a

> well-defined directory [ie /var/sadm/pkg/]).

Yes, although it's based on the SysV packaging system. I don't believe there's any API for it outside of the 'pkg*' utilities.

--

Darren

Darren_Dunham at 2007-7-7 2:47:19 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...