- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Checking if a HP-UX system is virtual or not
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
03-17-2009 05:10 AM
03-17-2009 05:10 AM
Is there a command or a way in which I can find out if a particular HP-UX machine is Virtual or not?
I think vparstatus -w -M will show me the vpars but this command also requires Superuser.
Is there a command which a normal user can run which will give me this information.
Thanks,
Vineet
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2009 05:15 AM
03-17-2009 05:15 AM
Re: Checking if a HP-UX system is virtual or not
The following can show you if vPars is installed and whether a vpar database exists but it is not 100% proff that the server is running as a vpar:
/usr/sbin/swlist | grep "Virtual Partitions"
ll /stand/vpdb (check modified time)
Not sure if you can get 100% certainty from non-root user....
regards,
Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2009 05:20 AM
03-17-2009 05:20 AM
Re: Checking if a HP-UX system is virtual or not
if you were referring to HP Integrity Virtual Machines, then "model" command would give you the answer:
#model
ia64 hp server Integrity Virtual Machine
As for vpars, it is not that straightforward, especially if you don't have root access.
J.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2009 05:25 AM
03-17-2009 05:25 AM
Re: Checking if a HP-UX system is virtual or not
>>>I think vparstatus -w -M will show me the vpars but this command also requires Superuser.<<<
Yes , You are right normal "user cannot"
>>Is there a command which a normal user can run which will give me this information.<<
No.
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2009 05:45 AM
03-17-2009 05:45 AM
Re: Checking if a HP-UX system is virtual or not
Thanks a lot for your prompts answers.
I would like to confirm just 1 thing. Are there just the 2 ways in which Virtualization can be implemented in HP viz. vPars and Integrity Servers??
Thanks,
Vineet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2009 05:51 AM
03-17-2009 05:51 AM
Re: Checking if a HP-UX system is virtual or not
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2009 05:54 AM
03-17-2009 05:54 AM
Solutionvecheck(1):
DESCRIPTION
The vecheck command uses its exit status to report whether or not the
command has been run in a virtual partition (vPars) environment. The
result can be used to alter command flow in a script.
...
RETURN VALUE
The vecheck command exits with one of the following values:
0 The command is run in a vPars environment.
255 The command is run in a non-vPars environment.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2009 05:58 AM
03-17-2009 05:58 AM
Re: Checking if a HP-UX system is virtual or not
1. Vpars
11.11
http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1335ACE
11.23
http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1335BCE
11.31
http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1335CCE
2. HP Virtual Machine
11.23
http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=integrity_vm
11.31
http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=integrity_vm1131
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2009 06:00 AM
03-17-2009 06:00 AM
Re: Checking if a HP-UX system is virtual or not
Please assign points to your thread. Just a way of saying Thanks for the right answers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2009 06:47 AM - last edited on 06-18-2021 03:26 AM by Ramya_Heera
03-17-2009 06:47 AM - last edited on 06-18-2021 03:26 AM by Ramya_Heera
Re: Checking if a HP-UX system is virtual or not
I'm thinking that any OS image that is running in a vPar is going to have the vpard daemon running, so its not an official command, but a reasonable way of checking this would be:
UNIX95= ps -Cvpard >/dev/null 2>&1 && echo "This is a vPar"
Any user can look at the process table so that should work for non-root users.
Of course even within the bounds of a single OS you can't assume you have access to all the CPUs and memory as there is also Processor Sets and the Fair Share Scheduler to consider. Might be worth having a look at this technical paper:
http://docs.hp.com/en/9450/vse_tips_for_application_developers.pdf
HTH
Duncan
I am an HPE Employee
