- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Checking kernel paramaters
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
09-21-2001 12:56 PM
09-21-2001 12:56 PM
Is anyone familiar with a library or command that can be used as a standard user to get a list of ALL kernel paramaters. I noticed the kc.sl library used by SAM, but have not been able to find information on it's use.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 01:18 PM
09-21-2001 01:18 PM
Re: Checking kernel paramaters
Will /usr/sbin/sysdef give you what you need?
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 01:24 PM
09-21-2001 01:24 PM
Re: Checking kernel paramaters
I haven't applied that patch set but is it simply a case of /usr/sbin not being in a regular user's path. i.e. does /usr/sbin/kmtune work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 01:49 PM
09-21-2001 01:49 PM
Re: Checking kernel paramaters
The problem stems from the fact that kmtune tries to create a lock file in a root owned directory making it impossible for a regular user to run the command successfully.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 02:43 PM
09-21-2001 02:43 PM
Re: Checking kernel paramaters
I find that if all I want to do is query the kernel, the kmtune runs fine for both 11.0 and 11.11 as a regular user - but I haven't installed your particular patchset. That having been said, a very simple setuid C program which can be compiled with the bundled c compiler will do the trick:
Create a text file sukmtune.c
int main()
{
int cc = 0;
cc = setuid(0);
if (cc == 0)
{
cc = system("/usr/sbin/kmtune");
}
return(cc);
}
Compile it as root: cc sukmtune.c -o sukmtune
chmod 4755 sukmtune
Now a regular user can execute this as root.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2001 03:53 PM
09-21-2001 03:53 PM
Re: Checking kernel paramaters
I figure since kmtune can get the info without being root (until they implemented this lock mechanism on XSWGR54) there must be a library that will work, I just don't know what it is.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2001 03:52 PM
09-24-2001 03:52 PM
Re: Checking kernel paramaters
Have a look at the following files. They give
all the information on all the kernel
parameters in the system including the defaults
minimums and maximums. Both of these files
are world-readable.
/var/sam/boot.config
/usr/conf/master.d/core-hpux
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2001 07:45 AM
09-25-2001 07:45 AM
Re: Checking kernel paramaters
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2001 08:06 AM
09-26-2001 08:06 AM
Re: Checking kernel paramaters
in the process of creating/building a new
kernel a file "conf.c" is created and compiled
to be linked into the new kernel.
Hence is DOES contain ALL parameters...
So, all you would need is read-permission
for that file (below "/stand/build").
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2001 01:15 PM
11-10-2001 01:15 PM
Re: Checking kernel paramaters
echo "
You have to specify the paramaters you want, but the nice part is that it converts formulas and hex values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2001 02:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2001 02:31 PM
11-10-2001 02:31 PM
Re: Checking kernel paramaters
Thanks for the update. I figured it was implemented on purpose (like the change to the sticky bit functionality).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2002 06:04 AM
01-08-2002 06:04 AM
Re: Checking kernel paramaters
and found the command it uses to build its list of configurable kernel parameters.
I tested this and it doesn't require a root user to run it. Also, it displayed maxusers, which technically isn't a kernel parameter (a variable used to calculate them tho).
the suggestions above which I tried left out maxusers.
Anyway, the command is:
/usr/lbin/sysadm/get_sysfile /stand/vmunix
(send the output of this to a file or grep what you need from it)