- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need command to convert Hexadecimal kernal paramet...
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
06-10-2005 03:37 AM
06-10-2005 03:37 AM
Need command or script to convert Hexadecimal kernal parameter value to Decimal value.
In some servers, kernal parameter values are being set in Hexadecimal. I want to see actual decimal value for semaphores and shared memory parameters setting.
Please help for this.
Thanks
Ezhil
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 03:50 AM
06-10-2005 03:50 AM
Solution# printf "%#d" 0xfda456
Where 0xfda456 is your hex number.
To convert decimal to hex:
# printf "%#x" 12345
or
# printf "%#X" 12345
The only differrence in the above 2 commands is that the first will use lowercase characters and the 2nd will use upper case characters.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 03:50 AM
06-10-2005 03:50 AM
Re: Need command to convert Hexadecimal kernal parameter value
printf "%d\n" 0x"hex_value"
echo "0Xhex_value=D" | adb
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 03:52 AM
06-10-2005 03:52 AM
Re: Need command to convert Hexadecimal kernal parameter value
To convert hex 7F to decimal type:
echo '0x7f=D' | adb
You will receive the following output:
127
and To convert decimal 127 to hex type:
echo '0d127=X' | adb
You will receive the following output:
7F
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 03:53 AM
06-10-2005 03:53 AM
Re: Need command to convert Hexadecimal kernal parameter value
example
kernel parameter max_size 0X40000000
remove the 0X
hex to dec
# echo "ibase=16;40000000"|bc
1073741824
dec to hex
# echo "obase=16;1073741824"|bc
40000000
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 04:02 AM
06-10-2005 04:02 AM
Re: Need command to convert Hexadecimal kernal parameter value
That would not only convert dec to hex and back but also gives you filtering
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 05:11 AM
06-10-2005 05:11 AM
Re: Need command to convert Hexadecimal kernal parameter value
ibase 16
10
16
q
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 02:06 PM
06-10-2005 02:06 PM
Re: Need command to convert Hexadecimal kernal parameter value
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2005 02:08 PM
06-10-2005 02:08 PM