- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to use those system functions to catch sys...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2004 01:36 AM - last edited on тАО01-01-2013 07:02 PM by Cathy_xu
тАО05-28-2004 01:36 AM - last edited on тАО01-01-2013 07:02 PM by Cathy_xu
anyone knows where i can find more detail information about how to use those HP system functions ?
"/usr/include/sys/pstat.h"
# define pstat_getstatic __pstat_getstatic64
# define pstat_getdynamic __pstat_getdynamic64
# define pstat_getvminfo __pstat_getvminfo64
# define pstat_getprocessor __pstat_getprocessor64
# define pstat_getproc __pstat_getproc64
# define pstat_getdisk __pstat_getdisk64
# define pstat_getlv __pstat_getlv64
# define pstat_getswap __pstat_getswap64
# define pstat_getfile __pstat_getfile64
# define pstat_getsem __pstat_getsem64
# define pstat_getmsg __pstat_getmsg64
# define pstat_getshm __pstat_getshm64
# define pstat_getipc __pstat_getipc64
# define pstat_getstable __pstat_getstable64
# define pstat_getprocvm __pstat_getprocvm64
# define pstat_getcrashinfo __pstat_getcrashinfo64
# define pstat_getcrashdev __pstat_getcrashdev64
# define pstat_getnode __pstat_getnode64
# define pstat_getstream __pstat_getstream64
# define pstat_getsocket __pstat_getsocket64
# define pstat_getfiledetails __pstat_getfiledetails64
# define pstat_getpathname __pstat_getpathname64
# define pstat_getmpathname __pstat_getmpathname64
# define pstat_getfile2 __pstat_getfile264
# define pstat_getpset __pstat_getpset64
Thanks!
P.S.This thread has been moved from HP-UX>System Administration to HP-UX > languages- HP Forums Moderator
Solved! Go to Solution.
- Tags:
- pstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2004 01:41 AM
тАО05-28-2004 01:41 AM
Re: How to use those system functions to catch system info. ?
However, here is a a quick example.
#include
#include
#include
struct pst_static buf;
if (pstat_getstatic(&buf, sizeof(buf), (size_t)1, 0) != -1){
(void)printf("Physical memory %ld\n",buf.physical_memory);
}
else
perror("pstat_static");
}
- Tags:
- threads corrupted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2004 01:44 AM
тАО05-28-2004 01:44 AM
Re: How to use those system functions to catch system info. ?
Stick this in before the "struct pst_static buf";
main(argc,argv)
int argc;
char **argv;
{
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2004 01:49 AM
тАО05-28-2004 01:49 AM
Re: How to use those system functions to catch system info. ?
But do you know more detail info about pstat or other system functions, like how to use those variables, in PDF files, books...
thanks again !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2004 01:53 AM
тАО05-28-2004 01:53 AM
Re: How to use those system functions to catch system info. ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2004 02:12 AM
тАО05-28-2004 02:12 AM
Re: How to use those system functions to catch system info. ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-28-2004 04:25 AM
тАО05-28-2004 04:25 AM
Solutionhttp://docs.hp.com/hpux/onlinedocs/os/11i/pstat_whitepaper.pdf
I'd asked a question via HP support and this was the only information they were able to provide (although often the comments in the header files are enough to work out roughly what's going on).
In addition, the memory management and process management white papers in /usr/share/doc on an 11.0 system provide some clues as to some of the other values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2004 08:35 AM
тАО06-01-2004 08:35 AM