- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Common user access to system info?
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
12-10-2004 05:01 AM
12-10-2004 05:01 AM
Common user access to system info?
Glance provides some of that, buried in an avalanche of other detail. The fully qualified 'ioscan' returns disk info, and 'model' returns some generally non-descriptive info.
Root access of course can show everything, but apart from a custom script, I don't know of any way for an average user to see the above info in a tidy little display....
Any suggestions? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2004 05:05 AM
12-10-2004 05:05 AM
Re: Common user access to system info?
As far as we are concened, an average user to not supposed to know these stuff.
If he needs some info, he should be contacting the sysadmin of the server to get the details.
Access to utilities like top, glance etc is availabe to everyone so that they can check on the performance etc of the system. There is not need for the average user to know the model number or understand the ioscan output. You don't need a sysadmin if an average user could understand all that.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2004 05:10 AM
12-10-2004 05:10 AM
Re: Common user access to system info?
Your only alternative is to implement sudo and allow restricted root access to specific commands or, as root, gather all the information into a file that is available to common users.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2004 05:13 AM
12-10-2004 05:13 AM
Re: Common user access to system info?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2004 05:16 AM
12-10-2004 05:16 AM
Re: Common user access to system info?
Command by command you can provide functionality to users.
You risk compromising security and failing a security audit.
Lets say you want to give your users ping
as root
whence ping
gives you the full path to ping
chmod a+x /usr/sbin/ping
Security compromised.
If you are judicious about what commands you touch, you won't compromise security too much.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2004 05:22 AM
12-10-2004 05:22 AM
Re: Common user access to system info?
But, you could install cfg2html
http://come.to/cfg2html
Then make the web pages available to your users.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2004 05:27 AM
12-10-2004 05:27 AM
Re: Common user access to system info?
We all build custom scripts to make sense out of the output of various system commands. I do not think there is any way to get everything you want the way you want.
A choice of what we want and how we want it also varies from person to person. A tidy little info of everything on the system is sure on everyone wish list, but do we expect to get it by default from the system without our own custom scripts. do not think we would get this wish fulfilled.
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2004 05:40 AM
12-10-2004 05:40 AM
Re: Common user access to system info?
Example - use hpmem to create a file:
# cat /usr/local/bin/hpmem
#!/bin/ksh
#
# Taken from the HP/UniGraphics FAQ
# You must be ROOT to execute this since it uses adb to
# examine the running kernel
#
GetKernelSymbol()
{
echo "$1/D" | \
adb -k $hpux /dev/kmem | \
tr "\012" " " | \
read junk junk2 kval
}
hpux=/hp-ux
rev=$(uname -r | cut -d. -f2)
if ((rev > 9)); then hpux=/stand/vmunix ;fi
/bin/uname -a
GetKernelSymbol "processor_count"
print CPU Count: $kval
GetKernelSymbol "itick_per_tick"
let speed=kval/10000
print CPU Speed: $speed MHz
if ((rev > 10)); then
print CPU HW Support: `getconf HW_CPU_SUPP_BITS`-bit
print Kernel Support: `getconf KERNEL_BITS`-bit
GetKernelSymbol "memory_installed_in_machine"
else
GetKernelSymbol "physmem"
fi
let mb=kval*4/1024 # convert pages to MB
print RAM Size: $mb MB
GetKernelSymbol "bufpages"
let mb=kval*4/1024 # convert pages to MB
print bufpages: $mb MB
GetKernelSymbol "maxuprc"
print maxuprc: $kval
GetKernelSymbol "maxvgs"
print maxvgs: $kval
GetKernelSymbol "maxfiles"
print maxfiles: $kval
GetKernelSymbol "max_thread_proc"
print max_thread_proc: $kval
GetKernelSymbol "nfile"
print nfile: $kval
GetKernelSymbol "nflocks"
print nflock: $kval
GetKernelSymbol "nproc"
print nproc: $kval
GetKernelSymbol "ninode"
print ninode: $kval
GetKernelSymbol "vfd_cw"
print shmmax: $kval
GetKernelSymbol "shmmni"
print shmmni: $kval
GetKernelSymbol "dbc_max_pct"
print dbc_max_pct: $kval
In root's cron:
# run hpmem script to generate file for users
0 0 * * * /usr/local/bin/hpmem > /tmp/hpmem.txt
Users run say:
mysys
cat /usr/local/bin/mysys
#!/bin/sh
cat /tmp/hpmem.txt
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2004 06:36 AM
12-10-2004 06:36 AM
Re: Common user access to system info?
Or come up with your own..