Manoj Joseph wrote:
Hi,

In Linux, the procfs interface is used for more than just the process related information. For instance, on my linux box, /proc/fs/nfs/exports shows the nfs exports and /proc/vmstat has vm statistics etc...

A dumping ground of semi-structured information that is IMO a complete abomination and should never have been added to /proc.

It looks like Solaris uses it only for exporting information relating to processes.

Which is after all what it was originally designed for, proc being short for process not proc short for dumping ground of stats and pseudo-stats.

Is my understanding correct? If it is, does Solaris have an alternative for exporting more arbitrary information like Linux does?

Yes OpenSolaris does this in a much more structured way that the arbitrary format text files that Linux does.

For most of the things you do cat /proc/<muble>/<sometextfile> there is either a special admin command, or the data is available via kstats. See kstats(1M) which is a perl program interface to the kstats library functionality.

For your specific example of showing the NFS shares use the share(1M) and/or sharemgr(1M) commands.

For your specific example of vm statistics use the vmstat command.

A few other commands you might find very useful for getting data that Linux exports via /proc are:

prtdiag(1M), prtconf(1M), psrinfo(1M), smbios(1M).

--
Darren J Moffat
_______________________________________________
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org

Reply via email to