HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- pstat & Linux
Operating System - Linux
        1839917
        Members
    
    
        3195
        Online
    
    
        110157
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            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
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
Topic Options
			
				
					
	
			
		
	- 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
02-01-2005 07:01 PM
02-01-2005 07:01 PM
			
				
					
						
							pstat & Linux
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hello!
I need a function like hp-ux pstat interface pstat_getproc
OS Red Hat Enterpise Linux 3 AS
Best wishes
Yuri Ermakov
					
				
			
			
				
		
		
	
	
	
I need a function like hp-ux pstat interface pstat_getproc
OS Red Hat Enterpise Linux 3 AS
Best wishes
Yuri Ermakov
	Ermak
			
			
				
			
			
			
			
			
			
		
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2005 08:39 PM
02-01-2005 08:39 PM
			
				
					
						
							Re: pstat & Linux
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						this doc devrsrc1.external.hp.com/LPK/docs/portguideparisc.pdf (Linux Porting Guide) from HP may help.
Rgds,
Vitaly
		
		
	
	
	
Rgds,
Vitaly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2005 07:21 PM
02-02-2005 07:21 PM
			
				
					
						
							Re: pstat & Linux
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						A quick and dirty equivelant of some of its functions is:
echo `find /proc/[0-9]* -path '*/fd/*' | wc -l` / \
`cat /proc/sys/kernel/file-max`
You can also look in "/proc/sys/kernel/file-nr" and "inode-nr".
also try this script: http://madduck.net/~madduck/scratch/pstat
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
echo `find /proc/[0-9]* -path '*/fd/*' | wc -l` / \
`cat /proc/sys/kernel/file-max`
You can also look in "/proc/sys/kernel/file-nr" and "inode-nr".
also try this script: http://madduck.net/~madduck/scratch/pstat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2005 06:51 AM
09-21-2005 06:51 AM
			
				
					
						
							Re: pstat & Linux
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						The porting guide is for the OPPOSITE direction (i.e., it discusses Linux -> HP-UX,
not the requested HP-UX -> Linux).
The script is a **script**, and Yuri's looking for a function (e.g., compilable code, usually C).
And...yep...I've got the same problem,
and am looking for a solution. If I find
one, I'll try to post a note here :)
(I don't want to "roll my own" and write
code to read /proc//stat ... but that's
one way to do it.)
Yuri: are you interested in pstat_getproc
more for the "get info for a single PID"
or more for "get info for many/all PIDs"?
(I ask because that might affect the
possible answers.) 
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
not the requested HP-UX -> Linux).
The script is a **script**, and Yuri's looking for a function (e.g., compilable code, usually C).
And...yep...I've got the same problem,
and am looking for a solution. If I find
one, I'll try to post a note here :)
(I don't want to "roll my own" and write
code to read /proc/
one way to do it.)
Yuri: are you interested in pstat_getproc
more for the "get info for a single PID"
or more for "get info for many/all PIDs"?
(I ask because that might affect the
possible answers.)
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP
