Getting 'pstat -s' and 'swap -s' info programatically

Getting 'pstat -s' and 'swap -s' info programatically

Post by Dave St.Cla » Wed, 13 Jul 1994 23:10:21



Does anyone know how to get the same information as the following commands
via C system calls for both Solaris 1 and Solaris 2?

        SOLARIS 1> pstat -s
        31136k allocated + 5996k reserved = 37132k used, 96924k available

        SOLARIS 2> swap -s
        total: 20448k bytes allocated + 5248k reserved = 25696k used, 60848k available

Thanks,

dave