- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Submit Very Basic System administration comman...
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
01-24-2002 10:08 PM
01-24-2002 10:08 PM
Re: Submit Very Basic System administration commands and win easily points
Finding the bytes in a directory (not including directories below).
For example
/dir1/dir2
/dir1/dir2/dirx
/dir1/dir2/diry
To find size of /dir/dir2 (including dirx,diry)
from /dir1/dir2
# du -ks .
BUT
To find size of /dir1/dir2 (excluding dirx,diry)
from /dir1/dir2
# ls -l | tr -s " " ""|cut -d" " -f5|xargs echo|sed "s/ / + /g"|bc
(Cut and paste above from browser)
Glenn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2002 12:24 AM
01-25-2002 12:24 AM
Re: Submit Very Basic System administration commands and win easily points
pwck
grpck
authck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2002 12:33 AM
01-25-2002 12:33 AM
Re: Submit Very Basic System administration commands and win easily points
swlist -l patch -a size -a description -a state -a superseeded by
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2002 12:51 AM
01-25-2002 12:51 AM
Re: Submit Very Basic System administration commands and win easily points
=================================
1.phenomena
* can't login the W/S
* the system is slow
* can't start some applications
* some commands run incorrectly
......
2.issues analysis
Most of the issues are due to the following reasons:
1. your local envioronment settings
2. the disk quota of your account
3. the CPU/memory usage
4. the network flood
......
3.actions
1. check your local '.*' envioronment files:
backup your cshrc & .login or .profile;
then copy .cshrc & .login or .profile from /etc/skel to your HOME directory;
then test again.
if the issue disappears, there must be something wrong with your above '.*' files, just correct them.
Note: some common environment variables
* csh:
setenv TERM xterm
setenv EDITOR vi
setenv PATH $PATH:/applications/bin (note: pls add such a line in .login, but not in .chsrc)
setenv LPDEST lj5si3 (note: set lj5si3 as the default printer)
setenv LANG C or setenv LANG zh_CN.hp15CN
* sh:
TERM=xterm
export export
EDITOR=vi
export EDITOR
PATH=$PATH:/applications/bin (note: pls add such a line in .login, but not in .chsrc)
export EDITOR
LPDEST=lj5si3 (note: set lj5si3 as the default printer)
export LPDEST
LANG=C or LANG=zh_CN.hp15CN
export LANG
2. decrease your disk space usage: (especially when you can login your W/S but soon return to the login screen automatically)
in your W/S, or use other machine to telnet to your W/S:
/usr/bin/quota -v your_account (more info pls refer to 'man quota')
if your usage beyonds the quota, pls delete enough unnecessary files to solve the issue.
3. 'EXIT'
save your work, then click 'EXIT' on the CDE windows manager to logout
4. kill -9 -1 (especially for some system or application issue)
save your work, then use kill -9 -1 to kill all YOUR processes running on your W/S
5. mv ~/.dt and login again (for CDE login issues)
6. shutdown (especially for some system or network issue)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2002 03:02 AM
01-25-2002 03:02 AM
Re: Submit Very Basic System administration commands and win easily points
Command to get rid of users who have done nothing for more than an hour.
who -u | egrep " [1-9]:" | grep -v root | awk '{print $7}' | xargs kill
Use grep -v
Change the 1-9 to 2-9 for two hours idle and 3-9 for three - etc.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2002 07:33 AM
01-25-2002 07:33 AM
Re: Submit Very Basic System administration commands and win easily points
#!/bin/ksh
# process is sed -n 'StartLineNumber,EndingLineNumber' source_file > target_file
# $1=source file, $2=starting line, $3=ending line, $4=target file
if [ $# -lt 4 ]; then
echo "usage: extract source starting_line ending_line target"
exit
fi
SOURCE=$1
START_PAGE=$2
END_PAGE=$3p
TARGET=$4
QUOTE="'"
CMD="-n $QUOTE$START_PAGE,$END_PAGE$QUOTE"
eval "sed $CMD $SOURCE >$TARGET"
exit $?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-25-2002 09:23 AM
01-25-2002 09:23 AM
Re: Submit Very Basic System administration commands and win easily points
Use setboot command to display/set the primary/alternate boot paths.
#setboot -p
#setboot -a
In mirrored root VG (vg00), I use this command to change boot path to test mirrors on next reboot.
Thanks.
Prashant Deshpande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2002 07:43 PM
01-26-2002 07:43 PM
Re: Submit Very Basic System administration commands and win easily points
For example, tar made with:
tar cvf /tmp/users.tar /home/users
Extract for an alternate location with pax:
pax -r -s,/home/users,/home/users2, -f /tmp/users.tar
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2002 08:07 PM
01-27-2002 08:07 PM
Re: Submit Very Basic System administration commands and win easily points
ps has a lot of options that are overlooked and grep is a very unstable way to look for processes or owners. grep does processes owned by root or it will find processes like chroot. Since the results always depend on what is actually running at that moment, the results are not dependable. For instance, looking for all sh programs will fail because grep finds sh, ksh, csh, bash, etc as well as users that are not running any sh processes but theirt user name happens to contain sh (like bashful or squish).
To find all processes owned by one user:
ps -u user_name
To find a specific process by name:
UNIX95= ps -C process_name
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 03:33 AM
02-04-2002 03:33 AM
Re: Submit Very Basic System administration commands and win easily points
sh: -C: not found.
?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 03:43 AM
02-04-2002 03:43 AM
Re: Submit Very Basic System administration commands and win easily points
# UNIX95= ps -C omni
...not...
# UNIX95=ps -C omni
Note the blank character after the equal sign and before the 'ps' command. No semicolon either! This sets the UNIX95 variable for the duration of the command line *only*.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 12:30 PM
02-04-2002 12:30 PM
Re: Submit Very Basic System administration commands and win easily points
find . -type f -exec grep -l '
Nice post!
Kel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 01:12 PM
02-04-2002 01:12 PM
Re: Submit Very Basic System administration commands and win easily points
To sort all the proceses by memory size:
# UNIX95= ps -eo vsz,ruser,args | sort -rn | more
If any of the processes are pushing more than 50 megs, run SAM & change maxdsiz to 512 MB or more. This requires a reboot If you have less than 2Gb of RAM, Oracle will have big problems with performance.
G'd luck
t++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 02:04 PM
02-04-2002 02:04 PM
Re: Submit Very Basic System administration commands and win easily points
PUSH method
-----------
# (find
PULL method
-----------
# remsh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2002 09:23 PM
02-04-2002 09:23 PM
Re: Submit Very Basic System administration commands and win easily points
#diff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 02:24 AM
02-05-2002 02:24 AM
Re: Submit Very Basic System administration commands and win easily points
========================================>
#diskinfo /dev/rdsk/c#t#d#
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 02:29 AM
02-05-2002 02:29 AM
Re: Submit Very Basic System administration commands and win easily points
====>
#grep -i physical /var/adm/syslog/syslog.log
-vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 02:36 AM
02-05-2002 02:36 AM
Re: Submit Very Basic System administration commands and win easily points
============================
Netscape Navigator for HPUX11.00 is availabe in the application CD 5/5 whose product number is B8342AA.
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2002 02:38 AM
02-05-2002 02:38 AM
Re: Submit Very Basic System administration commands and win easily points
man
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2002 09:46 AM
02-06-2002 09:46 AM
Re: Submit Very Basic System administration commands and win easily points
for checking shared memory process
#ipcs
#ipcs -m
this helps for huge oracle process shared by memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2002 09:53 AM
02-06-2002 09:53 AM
Re: Submit Very Basic System administration commands and win easily points
HA-MC/Service Guard-Cluster query commands
#cmquerycl
#cmcheckconf
#cmviewcl
#
Cluster run/halt commands
#cmruncl
#cmhaltcl
#cmrunnode
#cmhaltnode
#cmrunpkg
#cmhaltpkg
#cmhaltserv
#cmrunserv
Cluster package command
#cmmakepkg
#cmmodpkg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2002 09:56 AM
02-06-2002 09:56 AM
Re: Submit Very Basic System administration commands and win easily points
For handling the processors -HP
#icod
notifies the total processors utilized and avl on server which is on hold by HP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2002 10:57 AM
02-06-2002 10:57 AM
Re: Submit Very Basic System administration commands and win easily points
1. Power off the console
2. Hold down the 'D' key for 10 seconds while powering on the console.
3. Press the 'Enter' key
OR
Telnet to the system and kill the current console PID.
1. ps -ef|grep console
2. kill
Regards,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2002 01:08 PM
02-06-2002 01:08 PM
Re: Submit Very Basic System administration commands and win easily points
2) put
stty erase ^?
in a script and called it b.
comes in handy when the damn terminal backspace key doesn't work...just enter b, and i'm all set.
3)wc -l in a pipe to get counts.
Richard Darling
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2002 05:59 AM
02-07-2002 05:59 AM
Re: Submit Very Basic System administration commands and win easily points
#rm /etc/lvmtab
# vgscan
it might be a good idea to remove old vg directories in the /dev before doing the vgscan.
Kurt