- 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-16-2002 06:52 AM
01-16-2002 06:52 AM
Re: Submit Very Basic System administration commands and win easily points
Using the HP search link to search the forum for simular questions.
http://europe-support2.external.hp.com/emse/bin/doc.pl/forward/screen=emseHome/sid=936fa94804ab89aa3f?
or
http://docs.hp.com
is a good place for documetation requests.
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 07:09 AM
01-16-2002 07:09 AM
Re: Submit Very Basic System administration commands and win easily points
# ipcs -moba
If you find anything under NATTACH coloumn with 0 (zero) and than you can saftly remove it by
# ipcrm -m id (The Id number from ipcs -moba output) This will release blocked shared memeory.
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 08:01 AM
01-16-2002 08:01 AM
Re: Submit Very Basic System administration commands and win easily points
Don't forget:
top (for look for procees running)
sar (CPU utilization)
vmstat (Memory utilization)
swapinfo -t (Swap utilization)
glance (If you have it)
sam (System Administration too)
Regards,
Justo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 08:23 AM
01-16-2002 08:23 AM
Re: Submit Very Basic System administration commands and win easily points
server1> file memfile
memfile: awk program text
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 08:26 AM
01-16-2002 08:26 AM
Re: Submit Very Basic System administration commands and win easily points
# find / -name core -type f -exec rm {} \;
Printer system status:
# lpstat -t
Disable\Enable print que:
# disable -r "reason" quename
# enable quename
Network connectivity:
ping
linkloop
netstat -rn
arp -a
ifconfig
lanadmin
lanscan
nettl
nslookup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 08:38 AM
01-16-2002 08:38 AM
Re: Submit Very Basic System administration commands and win easily points
swapinfo -mat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 04:18 PM
01-16-2002 04:18 PM
Re: Submit Very Basic System administration commands and win easily points
UNIX95= ps -efH|head -1; UNIX95= ps -efH|egrep "inetd|rpc|mount|nfs"|grep -v grep; rpcinfo -p|egrep "service|nfs"; showmount -e;
mount -p
now you have a benchmark for what your nfs config should be if you ever have a problem with nfc or rcp.
--
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2002 06:29 PM
01-16-2002 06:29 PM
Re: Submit Very Basic System administration commands and win easily points
- shutdown (with no params or shutdown 0) is no longer a dependable way to reboot into single user mode. It was pretty good at versions 8 and 9 and even early 10.xx, but recently it has been unreliable, leaving mounted directories like /opt and /var and multi-user processes running. An interrupted boot process is the only reliable way today.
- make_recovery has been replaced with make_tape_recovery (which is based on make_net_recovery) and should be replaced with the latest version on all your systems. NOTE: the options have changed, so the recommended command should be:
# make_tape_recovery -AIv -a /dev/rmt/some_tape
- ioscan has a wide variety of reallty useful options. The most important is -k (the warp speed option--try it). Here are some really useful examples:
# ioscan -knf
# ioscan -knfC disk
# ioscan -kfC tape
# ioscan -kC processor
# ioscan -kfnH 8/10/5
# ioscan -knfH 12
- lpstat -t works well except when there are a lot of remote printers that must be polled. If any of the servers are down, there is a LONG delay to timout. To see just the current list of printers, use lpstat -v
- grep (-E -F or egrep and fgrep) egrep handles extended regular expressions but is quite slow. Since most uses of egrep (or grep -E) use the multiple search option, try this as an alternative...these two produce equivalent results but grep -F is much faster:
# grep -Ei "err|warn|panic|crit" syslog.log
# grep -Fi -e err -e warn -e panic -e crit syslog.log
So here's my favorite to prevent core dumps: in /etc/profile, put this line:
ulimit -Sc 0
It allows a knowledgeable user to change the value but if left alone, no core files will be produced.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 12:43 AM
01-17-2002 12:43 AM
Re: Submit Very Basic System administration commands and win easily points
Remove files but not dirs.
rm `ls -l | grep -v '^d' | awk '{ print $9 }'`
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 12:59 AM
01-17-2002 12:59 AM
Re: Submit Very Basic System administration commands and win easily points
a quick check for the installed memory:
/usr/sam/lbin/getmem (shows memory im MB)
Show the devicefiles for the installed tape:
ioscan -fnuC tape
Regards Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 01:48 AM
01-17-2002 01:48 AM
Re: Submit Very Basic System administration commands and win easily points
by #cleanup -n -c
ex
cleanup -n -c 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 11:07 AM
01-17-2002 11:07 AM
Re: Submit Very Basic System administration commands and win easily points
swapinfo -tam
Enabling swap
swapon
To recycle inetd
inetd -c
to recycle swagentd
swagentd -r
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 12:19 PM
01-17-2002 12:19 PM
Re: Submit Very Basic System administration commands and win easily points
Committing an individual patch. (to recover space form /var/adm)
#swmodify -x patch_commit=true
The cleanup command helps listing and committing multiple patches based on no. of superseeded.
#cleanup -p -c 3 -> to list superseeded thrice.
#cleanup -c 3 -> to commit superseeded thrice.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 02:57 PM
01-17-2002 02:57 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
01-17-2002 03:14 PM
01-17-2002 03:14 PM
Re: Submit Very Basic System administration commands and win easily points
infocmp vt100 > vt100.new (writes vt100's current definition to textfile vt100.new)
vi vt100.new (to change or make a new definition)
tic vt100.new (compile the new entry into the terminfo database)
How long has the system been up?
uptime or who -b
What hardware am I running on?
model or uname -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-17-2002 03:19 PM
01-17-2002 03:19 PM
Re: Submit Very Basic System administration commands and win easily points
# find / -type l -print | xargs ll >/tmp/link.out
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 06:16 PM
01-18-2002 06:16 PM
Re: Submit Very Basic System administration commands and win easily points
find . | xargs ll -d | sort -nrk5 | head
Or
find . | xargs ll -d | sort -nrk5 | grep "Jan ??" | head
Where Jan ?? is the Month and day of today - ie growing file will be dated today.
Glenn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-18-2002 06:22 PM
01-18-2002 06:22 PM
Re: Submit Very Basic System administration commands and win easily points
1. # file core
Should say core with offending executable
This doesn't always work if not try.
2. # strings core | head -n5 | tail -n1
The same cause should be shown on this line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 11:18 AM
01-21-2002 11:18 AM
Re: Submit Very Basic System administration commands and win easily points
To check the fiber card status.
#fcmsutil
(Driver State should be online.)
#fcmsutil
Look for "Bad Rx Char" count for errors.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 12:05 PM
01-21-2002 12:05 PM
Re: Submit Very Basic System administration commands and win easily points
e.g.
vgdisplay -v r5vg05|grep dsk
PV Name /dev/dsk/c6t0d3
PV Name /dev/dsk/c7t0d3 Alternate Link
> vgreduce r5vg05 /dev/dsk/c6t0d3
Device file path "/dev/dsk/c6t0d3" is an primary link.
Removing primary link and switching to an alternate link.
Volume group "r5vg05" has been successfully reduced.
Volume Group configuration for /dev/r5vg05 has been saved in /etc/lvmconf/r5vg05.conf
> vgextend r5vg05 /dev/dsk/c6t0d3
Volume group "r5vg05" has been successfully extended.
Volume Group configuration for /dev/r5vg05 has been saved in /etc/lvmconf/r5vg05.conf
vgdisplay -v r5vg05??grep dsk
PV Name /dev/dsk/c7t0d3
PV Name /dev/dsk/c6t0d3 Alternate Link
There is also pvchange cmd especially pvchange -s
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 04:21 PM
01-21-2002 04:21 PM
Re: Submit Very Basic System administration commands and win easily points
#vgscan -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 04:28 PM
01-21-2002 04:28 PM
Re: Submit Very Basic System administration commands and win easily points
Create an account at ITRC and check for latest patch releases and updates...
http://itrc.hp.com
;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 09:32 PM
01-21-2002 09:32 PM
Re: Submit Very Basic System administration commands and win easily points
Create a file /etc/securetty
which contains a line
console
in it. Give 644 permissions.
This would enable direct root
login only at the console
terminal and no where else.
Thanks
TVS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2002 10:57 PM
01-21-2002 10:57 PM
Re: Submit Very Basic System administration commands and win easily points
Sonething to kill all processes of some user :
#!/bin/sh
# this should kill off those goners who shut of their PC's
# in an not-so-ok fashion......
#
ps -ef|grep ${1}|grep -v grep|sort|awk '{print "kill -9 "$2}'> /usr/tmp/kill_em
chmod 700 /usr/tmp/kill_em
/usr/tmp/kill_em
ps -ef|grep ${1}
rm /usr/tmp/kill_em
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2002 01:40 AM
01-22-2002 01:40 AM
Re: Submit Very Basic System administration commands and win easily points
Here another one.
If you have zipped a file and the zipped file is larger than 2 GB, usually you cannot unzip it.
Here a workaround :
cat file | gunzip > new_file
We use this, when we have zipped ORACLE exports on the flight and want to import these data.
Rgds
Alexander M. Ermes