- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- I need to know how to get specific information fro...
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
Forums
Discussions
Discussions
Discussions
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
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
01-02-2006 10:00 PM
01-02-2006 10:00 PM
Can anyone help me out? Here's the information I need:
- The patch level installed on the system
- If the system is running on 32-bit or 64-bit mode
- Host ID Number
- Location of the PageFile
- How much RAM the system has
- The CPU's TYPE, SPEED and how many CPUs are there (COUNT)
- The server's IP Address
- IP Gateway
- IP Subnet Mask
- MAC Address
- Primary / Secondary DNS
- The name of the interface that has that information
Thanks for the help
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2006 10:11 PM
01-02-2006 10:11 PM
Solutionfrom Ignite-UX utilities you will find /opt/ignite/bin/print_manifest that gains many info on the system (probably all of them you are requesting).
Here you obtain Ignite-UX:
http://www.docs.hp.com/en/IUX/download.html
Good luck.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2006 10:13 PM
01-02-2006 10:13 PM
Re: I need to know how to get specific information from HP-UX OS
u may like to download nickel which will have most of the info needed in web pages:
http://h20331.www2.hp.com/hpsub/cache/286022-0-0-225-121.html
also, sysinfo will gather some of the info needed
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2006 10:17 PM
01-02-2006 10:17 PM
Re: I need to know how to get specific information from HP-UX OS
Q1) - The patch level installed on the system
# /usr/contrib/bin/show_patches
Q2) If the system is running on 32-bit or 64-bit mode
# getconf KERNEL_BITS
# file /stand/vmunix
Q3) Host ID Number
/usr/sbin/lanscan | grep 0x | cut -c12-23
Q4) Location of the PageFile
swapinfo
Q5) How much RAM the system has
# top and then look at memory or SAM
Q6) The CPU's TYPE, SPEED and how many CPUs are there (COUNT)
# getconf CPU_CHIP_TYPE
# getconf HW_CPU_SUPP_BITS
# getconf MACHINE_MODEL
# grep $(printf "0x%x" $(getconf _SC_CPU_VERSION)) /usr/include/sys/unistd.h
Q7) The server's IP Address/Gateway/Subnet mask/MAC
# ifconfig lan0
Q8) Primary/Secondary DNS
# grep -i "nameserver" /etc/resolv.conf
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2006 10:17 PM
01-02-2006 10:17 PM
Re: I need to know how to get specific information from HP-UX OS
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/ ).
Finally, 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}')
MHZ=$(echo itick_per_tick/D \
| adb -k $HPUX /dev/kmem \
| tail -1 \
| 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
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
And, even more finally, you can obtain CPU speed and RAM without CSTM or root ac
cess as described by Nancy Rippey here:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=851889
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2006 10:18 PM
01-02-2006 10:18 PM
Re: I need to know how to get specific information from HP-UX OS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2006 10:22 PM
01-02-2006 10:22 PM
Re: I need to know how to get specific information from HP-UX OS
Most of this information requires super user privlages. Many of these information can be get by running a single command from a super user
#/opt/ignite/bin/print_manifest
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2006 10:24 PM
01-02-2006 10:24 PM
Re: I need to know how to get specific information from HP-UX OS
You can use the commands given by me and SEP.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2006 10:32 PM
01-02-2006 10:32 PM
Re: I need to know how to get specific information from HP-UX OS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2006 10:35 PM
01-02-2006 10:35 PM
Re: I need to know how to get specific information from HP-UX OS
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=962014
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=778883
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2006 10:47 PM
01-02-2006 10:47 PM
Re: I need to know how to get specific information from HP-UX OS
SAM --> Performance Monitors --> System Properties
There is a field that says Machine Identification
That's the number I need for Host Number.. However, is there a way of getting that number with commands so I can put it on a script?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2006 10:50 PM
01-02-2006 10:50 PM
Re: I need to know how to get specific information from HP-UX OS
# /usr/sbin/lanscan | grep 0x | cut -c12-23
It will display HostID.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2006 10:57 PM
01-02-2006 10:57 PM
Re: I need to know how to get specific information from HP-UX OS
Please assign 0 points to this.
With regrets,
Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2006 04:17 AM
01-03-2006 04:17 AM
Re: I need to know how to get specific information from HP-UX OS
MAc Address: /usr/sbin/lanscan | grep 0x | cut -c12-23
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2006 05:46 PM
01-03-2006 05:46 PM
Re: I need to know how to get specific information from HP-UX OS
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sysinfo-3.3.1/
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2006 05:51 PM
01-03-2006 05:51 PM
Re: I need to know how to get specific information from HP-UX OS
swlist -l patch or show_patches
Q) If the system is running on 32-bit or 64-bit mode
getconf KERNEL_BITS
Q) Host ID Number
uname -i
Q) Location of the PageFile
Q) How much RAM the system has
Q) The CPU's TYPE, SPEED and how many CPUs are there (COUNT)
You can get this from sam as,
sam -> performance monitor -> system properties
Q) The server's IP Address
netstat -ivn
Q) IP Gateway
Q) IP Subnet Mask
netstat -rvn
Q) MAC Address (Station Address)
lanscan
Q) Primary / Secondary DNS
cat /etc/resolv.conf
Q) The name of the interface that has that information
netstat -ivn
It will give those informations.
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2006 06:03 PM
01-03-2006 06:03 PM
Re: I need to know how to get specific information from HP-UX OS
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=706790
--
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2006 07:16 PM
01-03-2006 07:16 PM
Re: I need to know how to get specific information from HP-UX OS
My favourites are cfg2html and print_manifest
.As others mentioned these are for to get deeep information about your system.For to get quick information such as model,cpu,ram,serial etc i always use print_manifest but for to get brief report
i run cfg2html monthly and it generates an html file.
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2006 08:55 PM
01-03-2006 08:55 PM
Re: I need to know how to get specific information from HP-UX OS
Just one last thing:
When I run the following command:
/opt/ignite/bin/print_manifest \
| grep "Model:" | awk '{print $2}'
it prints out the CPU Model that comes out of print_manifest, for example: 9000/800/L3000-6x
however, print_manifest is something that takes a while to execute...
Does anyone know another command that may return this same information for me? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2006 09:09 PM
01-03-2006 09:09 PM
Re: I need to know how to get specific information from HP-UX OS
# uname -m
9000/800
and
# model
9000/800/rp3410
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2006 09:11 PM
01-03-2006 09:11 PM
Re: I need to know how to get specific information from HP-UX OS
# cat /usr/sam/lib/mo/sched.models will list all model information.
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2006 09:21 PM
01-03-2006 09:21 PM
Re: I need to know how to get specific information from HP-UX OS
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=939417
[Overview of system model strings]
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2006 10:57 AM
01-05-2006 10:57 AM
Re: I need to know how to get specific information from HP-UX OS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2006 04:40 AM
01-06-2006 04:40 AM
Re: I need to know how to get specific information from HP-UX OS
Take a look at the script that is attached. We run it on a monthly basis.
Regards