- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Processor Speed without Root privilege
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
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
02-18-2003 01:40 PM
02-18-2003 01:40 PM
I need to obtain the CPU speed, but do not have root privileges. I tried ioscan -C processor but could not run it. I checked the syslog, but the system did not record this info at startup. Any ideas will be greatly appreciated.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 01:49 PM
02-18-2003 01:49 PM
Re: Processor Speed without Root privilege
I cannot guarantee. But try these following.
1.
$/usr/sbin/cstm
map -> sel dev xx -> info ->infolog
(where xx is the index of any of the CPUs listed in the map's output)
In the infolog, it will list "Processor Speed".
2.
The neat thing about RP class servers is that HP adds the CPU speed to the model. For ex.,
$model
9000/800/N4000-44
The above means 440mhz processor. However you older ones do not contain this information in the model string.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 01:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 02:02 PM
02-18-2003 02:02 PM
Re: Processor Speed without Root privilege
I've got K580s & N4000-55s that output only "N/A" in the Processor Speed field from that cstm command.
Not sure that's 100% reliable.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 02:20 PM
02-18-2003 02:20 PM
Re: Processor Speed without Root privilege
I don't get that problem on my systems, I did actually try a couple of them....
I would have suggested this command but you need to be root:
# echo itick_per_usec/D | adb -k /stand/vmunix /dev/mem
But it gives an error 13
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 02:34 PM
02-18-2003 02:34 PM
Re: Processor Speed without Root privilege
Thanks for all the replies. I tried echo "selclass qualifier cpu;info;wait;infolog" | cstm on a couple of servers and did get N/A for CPU speed. Model worked as expected, but I am also not sure if it is 100% reliable. I am still a newbie on HP-UX, but I am somewhat surprised that it is so hard to get that info comared to Solaris.
Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-18-2003 03:33 PM
02-18-2003 03:33 PM
Re: Processor Speed without Root privilege
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2003 01:21 AM
02-19-2003 01:21 AM
Re: Processor Speed without Root privilege
there seems to be really no straight-forward way for non-root to get this information.
However, the kernel provides it through the pstat() systemcall. You may use this little C proggie...
#include
#include
main()
{
struct pst_processor psp;
if (pstat_getprocessor(&psp, sizeof(psp), 1, 0) != -1) {
printf ("%i MHz\n", psp.psp_iticksperclktick/10000);
}
else {
perror("pstat_getprocessor");
exit (1);
}
exit (0);
}
Best regards...
Dietmar.