- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to find the date on which pvcreate command ran
Operating System - HP-UX
1755678
Members
3848
Online
108837
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
Discussions
Discussions
Forums
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
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
тАО08-19-2008 06:46 AM
тАО08-19-2008 06:46 AM
Re: How to find the date on which pvcreate command ran
Sorry, I meant only the first part of the command before the pipe - but I forgot to say this clearly.
;-)
My intention was to highlight the difference between the commands (without the perl extension), because the pure result looks like this:
# xd -j8200 -N16 -tu /dev/rdsk/c0t6d0
0000000 2014063___ 1142329960 2014063___ 1142329961
0000010
The first timestamp is the pvcreation time, the second the vgcreation time.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
;-)
My intention was to highlight the difference between the commands (without the perl extension), because the pure result looks like this:
# xd -j8200 -N16 -tu /dev/rdsk/c0t6d0
0000000 2014063___ 1142329960 2014063___ 1142329961
0000010
The first timestamp is the pvcreation time, the second the vgcreation time.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2008 07:12 AM
тАО08-19-2008 07:12 AM
Re: How to find the date on which pvcreate command ran
Hi (again):
> Torsten: My intention was to highlight the difference between the commands (without the perl extension)...
No problem, but note too that I used a different set of switches with 'xd'. Comparing the two on one server of mine:
# xd -An -j8200 -N16 -tu /dev/dsk/c2t6d0
1644472381 1204570092 1644472381 1204570092
# xd -j8200 -N16 -tu /dev/rdsk/c2t6d0
0000000 1644472381 1204570092 1644472381 1204570092
0000010
Hence, for me, the decimal epoch seconds for the PVID is the second (zero-relative) field, or a value of 1204570092.
Thus:
# perl -le 'print scalar localtime(1204570092)'
Mon Mar 3 13:48:12 2008
# echo "0d1204570092=Y"|adb
2008 Mar 3 13:48:12
...so, all is good :-)
Regards!
...JRF...
> Torsten: My intention was to highlight the difference between the commands (without the perl extension)...
No problem, but note too that I used a different set of switches with 'xd'. Comparing the two on one server of mine:
# xd -An -j8200 -N16 -tu /dev/dsk/c2t6d0
1644472381 1204570092 1644472381 1204570092
# xd -j8200 -N16 -tu /dev/rdsk/c2t6d0
0000000 1644472381 1204570092 1644472381 1204570092
0000010
Hence, for me, the decimal epoch seconds for the PVID is the second (zero-relative) field, or a value of 1204570092.
Thus:
# perl -le 'print scalar localtime(1204570092)'
Mon Mar 3 13:48:12 2008
# echo "0d1204570092=Y"|adb
2008 Mar 3 13:48:12
...so, all is good :-)
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2008 04:34 AM
тАО08-21-2008 04:34 AM
Re: How to find the date on which pvcreate command ran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2008 04:48 AM
тАО08-21-2008 04:48 AM
Re: How to find the date on which pvcreate command ran
James
You perl gem..
hehe
You perl gem..
hehe
"There is always some scope for improvement"
- « Previous
-
- 1
- 2
- Next »
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP