HPE GreenLake Administration
- Community Home
 - >
 - Servers and Operating Systems
 - >
 - Operating Systems
 - >
 - Operating System - HP-UX
 - >
 - Re: hwconfig command line for hpux 11i
 
Operating System - HP-UX
        1840172
        Members
    
    
        4732
        Online
    
    
        110162
        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
	
		
			
            
                
            Go to solution
        
            
		
		
			
            	
	
		
        
		
	
	
		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
 
11-02-2008 08:09 PM
11-02-2008 08:09 PM
			
				
					
					
						Hi,
There is a command something like hwconfig to find out the server hardware configuration such as hard disk, memory, etc.
What is the correct command line for hpux 11i?
Regards
Chui
	
			
				
		
			
			
			
			
			
			
		
		
		
	
	
	
There is a command something like hwconfig to find out the server hardware configuration such as hard disk, memory, etc.
What is the correct command line for hpux 11i?
Regards
Chui
Solved! Go to Solution.
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-02-2008 08:19 PM
11-02-2008 08:19 PM
Solution
			
				
					
					
						for memory
#echo "selclass qualifier memory;info;wait;infolog"|cstm
for CPU info
cstm>SelClass type "Processor" qualifier "CPU" hwpath ""
cstm>Information ; wait
-- Updating Map --
Updating Map...
cstm>InfoLog
If you have Ignite installed, you can use the print_manifest command.
You can also use SAM to display system properties (Sam -> Performance
Monitors -> System Properties).
There are also utilities like "cfg2html" ( http://come.to/cfg2html ),
"nickel" ( ftp://ftp.hp.com/pub/catia/Utils/nickel.shar ) and "sysinfo"
( http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/ ).
You can also obtain this information from the command line with a
series of little scripts like these:
CPU
HPUX=/stand/vmunix
MODEL=$(grep -i $(model | tr "/" " " \
| awk '{print $NF}') \
/usr/sam/lib/mo/sched.models \
| awk '{print $NF}')
#Note: for 11.23 RISC, use
MHZ=$(echo itick_per_tick/D \ # echo "itick_per_usec/d" \
| adb -k $HPUX /dev/kmem \ # | adb $HPUX /dev/kmem
| tail -1 \ #For Itanium, use machinfo
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"
Number of CPUs
ioscan -k |grep -n processor |wc -l
Support Tools Manager (STM) CPU info:
echo "selclass qualifier cpu;info;wait;infolog" | cstm
RAM
HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi
MYMEM=$(echo "${MYSYMBOL}/D" \
| adb $HPUX /dev/kmem \
| grep "${MYSYMBOL}: *." \
| awk '{printf "%.0f MB\n",$2/256}')
echo $MYMEM
Support Tools Manager (STM) RAM info:
echo "selclass qualifier memory;info;wait;infolog" | cstm
You can obtain CPU speed and RAM without CSTM or root access as described by Tom Ferony (under Nancy Rippey's log
in) here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889
And then if u wanted to refer a link for the same .... follow the below link which would give u exactly the same info which I have done a copy & a paste
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1238211
		
		
	
	
	
#echo "selclass qualifier memory;info;wait;infolog"|cstm
for CPU info
cstm>SelClass type "Processor" qualifier "CPU" hwpath ""
cstm>Information ; wait
-- Updating Map --
Updating Map...
cstm>InfoLog
If you have Ignite installed, you can use the print_manifest command.
You can also use SAM to display system properties (Sam -> Performance
Monitors -> System Properties).
There are also utilities like "cfg2html" ( http://come.to/cfg2html ),
"nickel" ( ftp://ftp.hp.com/pub/catia/Utils/nickel.shar ) and "sysinfo"
( http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sysinfo-3.3.1/ ).
You can also obtain this information from the command line with a
series of little scripts like these:
CPU
HPUX=/stand/vmunix
MODEL=$(grep -i $(model | tr "/" " " \
| awk '{print $NF}') \
/usr/sam/lib/mo/sched.models \
| awk '{print $NF}')
#Note: for 11.23 RISC, use
MHZ=$(echo itick_per_tick/D \ # echo "itick_per_usec/d" \
| adb -k $HPUX /dev/kmem \ # | adb $HPUX /dev/kmem
| tail -1 \ #For Itanium, use machinfo
| awk '{print $2/10000}')
echo `hostname` has `ioscan -k |grep -n processor \
|wc -l` $MODEL $MHZ "Mhz processor(s)"
Number of CPUs
ioscan -k |grep -n processor |wc -l
Support Tools Manager (STM) CPU info:
echo "selclass qualifier cpu;info;wait;infolog" | cstm
RAM
HPUX=/stand/vmunix
MAJORREV=$(uname -r | cut -f2 -d .)
if [ $MAJORREV -ge "11.0" ]
then
MYSYMBOL="phys_mem_pages"
else
MYSYMBOL="physmem"
fi
MYMEM=$(echo "${MYSYMBOL}/D" \
| adb $HPUX /dev/kmem \
| grep "${MYSYMBOL}: *." \
| awk '{printf "%.0f MB\n",$2/256}')
echo $MYMEM
Support Tools Manager (STM) RAM info:
echo "selclass qualifier memory;info;wait;infolog" | cstm
You can obtain CPU speed and RAM without CSTM or root access as described by Tom Ferony (under Nancy Rippey's log
in) here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889
And then if u wanted to refer a link for the same .... follow the below link which would give u exactly the same info which I have done a copy & a paste
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1238211
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-02-2008 08:24 PM
11-02-2008 08:24 PM
			
				
					
						
							Re: hwconfig command line for hpux 11i
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						The first command is ioscan. Use -k to look at the current I/O list (and to run at full speed), leave off -k to ask every driver to search for hardware changes:
 
ioscan -knf
 
The -k option allows anyone to run ioscan. Without -k, only root can run the command. Here is a (very detailed) list of the hardware including CPU, disk, tape, RAM, network cards.
 
echo "selclass qualifier all;info;wait;infolog" | cstm
 
A simpler list is found with the command:
 
print_manifest
 
If you do not have print_manifest, then use the full path:
 
/opt/ignite/bin/print_manifest
 
If you do not have /opt/ignite/bin, your system is a great risk if there is a boot disk failure. Be sure to download it and learn about how to use it.
 
And finally, you can use sam. Just select Performance Monitors -> System Properties.
	
Bill Hassell, sysadmin
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
ioscan -knf
The -k option allows anyone to run ioscan. Without -k, only root can run the command. Here is a (very detailed) list of the hardware including CPU, disk, tape, RAM, network cards.
echo "selclass qualifier all;info;wait;infolog" | cstm
A simpler list is found with the command:
print_manifest
If you do not have print_manifest, then use the full path:
/opt/ignite/bin/print_manifest
If you do not have /opt/ignite/bin, your system is a great risk if there is a boot disk failure. Be sure to download it and learn about how to use it.
And finally, you can use sam. Just select Performance Monitors -> System Properties.
Bill Hassell, sysadmin
- Mark as New
 - Bookmark
 - Subscribe
 - Mute
 - Subscribe to RSS Feed
 - Permalink
 - Report Inappropriate Content
 
11-02-2008 08:25 PM
11-02-2008 08:25 PM
			
				
					
						
							Re: hwconfig command line for hpux 11i
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						HI Chui,
There are several tools available in HP-UX.
e.g.
-->Nickel report---
Its very good script for system information. You can try the HP Nickel script ,it generates the report in HTML format ,download it from the below site
http://hpux.connect.org.uk/
-->sysinfo
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sysinfo-3.3.1/
--> "print_manifest" command
--> cfg2html from: http://come.to/cfg2html
Regards,
Asif Sharif
					
				
			
			
				
		
		
	
	
	
There are several tools available in HP-UX.
e.g.
-->Nickel report---
Its very good script for system information. You can try the HP Nickel script ,it generates the report in HTML format ,download it from the below site
http://hpux.connect.org.uk/
-->sysinfo
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sysinfo-3.3.1/
--> "print_manifest" command
--> cfg2html from: http://come.to/cfg2html
Regards,
Asif Sharif
	Regards,
Asif Sharif
			
			
				
			
			
			
			
			
			
		Asif Sharif
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