- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Submit Very Basic System administration commands a...
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
02-07-2002 06:15 AM
02-07-2002 06:15 AM
Re: Submit Very Basic System administration commands and win easily points
My favorite thing is to fix the .profile of 'challenging' users.
vi /home/user/.profile
As the last two lines I add
/dir/
exit
So when these 'challenging' users login the only app they need automatically runs...and when they exit the job...they are automatically logged out of system....Ahhhh!! Yup, 2 little lines I have come to love.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 05:46 AM
02-12-2002 05:46 AM
Re: Submit Very Basic System administration commands and win easily points
#
# bg (pushes program to background)
Now the shell can be utilised again
cheers
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 06:07 AM
02-12-2002 06:07 AM
Re: Submit Very Basic System administration commands and win easily points
#hpnpf -n -x
-vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 06:32 AM
02-12-2002 06:32 AM
Re: Submit Very Basic System administration commands and win easily points
*helpful when one of our fddi lan cards suddenly dissapeared.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 07:38 AM
02-12-2002 07:38 AM
Re: Submit Very Basic System administration commands and win easily points
#ioscan -fnC disk -> to know physical disk h/w pth and status(claimed or not)
#strings /var/adm/wtmp -> to read wtmp bin file
#fuser -ku /dev/vgxx/filesystems -> to kill all user using that filesystem
To build a new kernel after modification done by SAM UX 11.0:
1-#cd /stand
2-#cp /stand/system /stand/system.prev
3-#cp /stand/build/system.sam /stand/system
4-#kmupdate /stand/build/vmunix_test
5-#shutdown -rn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 07:48 AM
02-12-2002 07:48 AM
Re: Submit Very Basic System administration commands and win easily points
# cleanup -cx ( where x is the run level, eg: 2,3,4 ..)
# /usr/sbin/syslogd start ( If syslog daemon is not running )
# To change the hernel configurations..
# Edit the system file
# mk_kernel -s /stand/system -o /stand/vmunix.new
# kmupdate /stand/vmunix.new
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2002 07:50 AM
02-12-2002 07:50 AM
Re: Submit Very Basic System administration commands and win easily points
-w
Causes only the /usr/share/lib/whatis database to be created. No manual reformatting is done.
man -k keyword
All man pages with keyword in title
text manpages
man $*|sed -e 's/_^H//g' -e 's/^H.//g'|pg
Steve Steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2002 08:32 AM
02-21-2002 08:32 AM
Re: Submit Very Basic System administration commands and win easily points
du -x /
i needed this when i found that i had root at 98% full and was trying to find out why.
worked really well. i found a rather lagre file in dev that was 69% of the used space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2002 09:00 AM
02-21-2002 09:00 AM
Re: Submit Very Basic System administration commands and win easily points
nohup - run a command immune to hangups
SYNOPSIS
nohup command [arguments]
DESCRIPTION
nohup executes command with hangups and quits ignored.
It's very usefull if you use it with & (background jobs).
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 06:00 AM
02-25-2002 06:00 AM
Re: Submit Very Basic System administration commands and win easily points
#graphinfo
to display the graphics configuration details including the extensions loaded and support informations.
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 06:46 AM
02-25-2002 06:46 AM
Re: Submit Very Basic System administration commands and win easily points
Copying a filesystem's structure and files to another filesystem before the disk it resides in dies completely:
cd
find . -depth -print | cpio -pd
After disk HW replacement:
vgcfgrestore -n vgxx /dev/rdsk/c?t?d?
vgchange -a y vgxx (-a e if in cluster environment)
newfs -F
mount
cd
find . -depth -print |cpio -pd
That's it
Regards,
Xavier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 07:25 AM
02-25-2002 07:25 AM
Re: Submit Very Basic System administration commands and win easily points
1: (transfer a directory)
cd /
tar -cf - |
2: (back up a directory)
tar -cf
3: (disk slice image)
dump 0f - /old | (cd /new restore -rf -)
/old is the (absolute path of the) directory being transfered (in this case temporarily backed up)
/new is where you're moving it to (absolute path)
if i feel that the information is critical to the computer running i use the second method there so that i can keep the tar file until the transfer has been proven successful. this allows restoring to be faster since i don't have togo to the site's tape backup, which could have beome impossible depending on the directory moved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2002 07:58 PM
02-25-2002 07:58 PM
Re: Submit Very Basic System administration commands and win easily points
ps -el |more
To change the relative priority:
nice -
To change the real-time priority:
rtprio
Regards,
Kenny.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2002 07:37 AM
02-26-2002 07:37 AM
Re: Submit Very Basic System administration commands and win easily points
----------------------------------------------
> opcagt -status
or
> /opt/OV/bin/OpC/opcagt exist?
check which templates are enabled / disabled:
---------------------------------------------
> opctemplate -l
find the Managementserver:
--------------------------
> more /opt/OV/bin/OpC/opcinfo
in this file you can also enable the trace option.
;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 09:13 AM
05-21-2002 09:13 AM
Re: Submit Very Basic System administration commands and win easily points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 10:18 AM
05-21-2002 10:18 AM
Re: Submit Very Basic System administration commands and win easily points
lvextend /dev/vgXX/lvolX
fsadm -F vxfs -b XXXXXXX
b=1024 x filesystem size in MB.
-pap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 10:34 AM
05-21-2002 10:34 AM
Re: Submit Very Basic System administration commands and win easily points
1. pvcreate -b /dev/rdsk/c1t2d0 ( root mirror )
2. vgextend /dev/vg00 /dev/rdsk/c1t2d0
3. mkboot /dev/rdsk/c1t2d0
4. mkboot -a "hpux -l q (;0)/vmunix" /dev/rdsk/c1t2d0
5.lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t2d0
lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c1t2d0
lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c1t2d0
6. lvlnboot -b /dev/vg00/lvol1
lvlnboot -v -r /dev/vg00/lvol3
lvlnboot -s /dev/vg00/lvol2
7. lvlnboot -R
8. lvlnboot -v
Thats it..
Your root mirror is created.
Piyush
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 12:10 PM
05-21-2002 12:10 PM
Re: Submit Very Basic System administration commands and win easily points
Perl example
For bdf usage ( filesystems above 80% )
bdf -l | perl -ne '/(\d+)%/&&$1>80&&print'
Finding deadlinks
find
If you can't readily tell which directory has the growing file, try this:
find / -type d -xdev | xargs du -sk >file1
sort -k2,2 file1 >sorted1
Wait awhile (30 minutes?)
find / -type d -xdev | xargs du -sk >file2
sort -k2,2 file2 >sorted2
join -j 2 sorted1 sorted2 >file3
file3 will be formatted as:
directory firstsize secondsize
Simply look for large discreprencies between the first and second sizes to narrow down to a directory. Then you can hopefully identify the file.
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 12:42 PM
05-21-2002 12:42 PM
Re: Submit Very Basic System administration commands and win easily points
usr/lbin/getprdef
You'll either get message 'system is not trusted'
or a return code 2 if it is.
Cheers
George
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 07:25 PM
05-21-2002 07:25 PM
Re: Submit Very Basic System administration commands and win easily points
How to give name to terminal
echo "^[]0;babu^G"
How to find out file system is supported large file system
fsadm -F vxfs /mountarea
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2002 11:51 PM
05-21-2002 11:51 PM
Re: Submit Very Basic System administration commands and win easily points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 12:50 AM
05-22-2002 12:50 AM
Re: Submit Very Basic System administration commands and win easily points
stop internet services deamon
inetd -k
this will stop hosts connecting through ftp, rcp , remsh , rlogin and telnet.
start it up again with inetd -c
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 01:04 AM
05-22-2002 01:04 AM
Re: Submit Very Basic System administration commands and win easily points
ps -ef | grep "name of process" | awk ' { printf "Process id = %s Parent Process id = %s\n", $2, $3 }'
ps -ef | grep -v grep | grep
ps -ef aux |head -10
Example :
We will look here at the syslog daemon :
ps -ef | grep "syslogd" | awk ' { printf "Process id = %s Parent Process id = %s\n", $2, $3 }'
Process id = 303 Parent Process id = 1
Process id = 2105 Parent Process id = 2074
Note :
The higher number is the child and the lower the parent pid number.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 01:37 AM
05-22-2002 01:37 AM
Re: Submit Very Basic System administration commands and win easily points
changing file ownerships
chown username filename
changing group ownership
chgrp groupname filename
changing group and username in one go
chown groupname:username filename
John.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 04:30 AM
05-22-2002 04:30 AM
Re: Submit Very Basic System administration commands and win easily points
add to $HOME/.profile:
export PS1=$(whoami)@$(hostname)$(echo "\033[7m")['${PWD##*/}']$(echo "\033[0m ")
More about what sh can do for you in
man sh-posix
To leave a footprint in /var/adm/syslog/syslog.log
logger "the message goes here"
To monitor in syslog what values vhand sees
vhandinfo on
(see script attached)
Document your systems while they are running eg with cfg2html
http://groups.yahoo.com/group/cfg2html/