- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How do i convert maxdsiz from hex to integer value
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
07-22-2009 09:06 AM
07-22-2009 09:06 AM
From current kernel,
kmtune|grep maxdsiz
maxdsiz 0x90000000 - 0X90000000
maxdsiz_64bit 0x100000000 - 0X100000000
How do I calculate 0x90000000 & 0x100000000 into integer value ?
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2009 09:14 AM
07-22-2009 09:14 AM
Re: How do i convert maxdsiz from hex to integer value
you can use the calculator scientific mode (on a windows workstation).
select Hex
enter the value
click on Dec
you get the integer value.
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2009 09:21 AM
07-22-2009 09:21 AM
Re: How do i convert maxdsiz from hex to integer value
bc is your friend...
echo "ibase=16;90000000"|bc
echo "ibase=16;100000000"|bc
HTH
Duncan
I am an HPE Employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2009 09:26 AM
07-22-2009 09:26 AM
Re: How do i convert maxdsiz from hex to integer value
There's always Perl, too:
# perl -e 'printf "%d\n",0x100000000'
4294967296
...and Perl has no artificial limits.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2009 09:35 AM
07-22-2009 09:35 AM
Re: How do i convert maxdsiz from hex to integer value
as check from hpux 11.0 11.11 have this format. but in hpux 11.23 never see this format.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2009 09:42 AM
07-22-2009 09:42 AM
Solution> so, the value is hex in kernel right ?
The notation '0x' means hexadecimal.
By the way, a leading zero (0) in a series of numbers means octal. Hence, 0777 is an octal value whereas 777 would be a decimal number and 0x777 would be a hexadecimal one.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2009 09:50 AM
07-22-2009 09:50 AM
Re: How do i convert maxdsiz from hex to integer value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2009 01:55 AM
07-23-2009 01:55 AM
Re: How do i convert maxdsiz from hex to integer value
With 11.23 ksh you can do:
$ typeset -i10 x=16#90000000; echo $x
2415919104
(Unfortunately the Posix shell is limited to 32 bits. )-:
You can also use gdb to act as a calculator.
(gdb) p 0x90000000