- 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
05-22-2002 06:11 AM
05-22-2002 06:11 AM
Re: Submit Very Basic System administration commands and win easily points
/usr/lbin/tsconvert -c
To convert trusted back to non-trusted
/usr/lbin/tsconvert -r
To preserve PWs after conversion to trusted - obtain a list of user names using any method you desire & write it to a file - say userlist - Then
for NAME in userlist
do
/usr/lbin/modprpw -V $NAME
done
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 06:14 AM
05-22-2002 06:14 AM
Re: Submit Very Basic System administration commands and win easily points
to checkout the error log file without using an editor use command "dmesg" next time use command "dmesg -" and it will tell you only about errors which have happened since last time "dmesg -" was executed.
John.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 06:42 AM
05-22-2002 06:42 AM
Re: Submit Very Basic System administration commands and win easily points
$ cd /1a
$ find . -depth -print|cpio -padlmuxv /2a
#!/bin/sh
#Mangle user
USER=john
I=1
while [ "$I" -lt "2" ] ; do
/bin/kill -9 `ps -ef | grep $USER | grep -v grep | awk '{print $2}'`
sleep 300
done
I actually have a network version of mangle user which runs through a host list and kills user processes every 5 minutes.
The strange things sysadmin do to get even with users! hehe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2002 07:18 AM
05-22-2002 07:18 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-22-2002 07:23 AM
05-22-2002 07:23 AM
Re: Submit Very Basic System administration commands and win easily points
Use
swverify '*'
to check ownership, permissions, checksum and so on for all software and patches installed with swinstall.
Use
swverify product_name
to check an individual product, eg perl.
Use
swverify -F product_name
to fix any file attributes found to be out of order for an individual product.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2005 03:42 AM
07-27-2005 03:42 AM
Re: Submit Very Basic System administration commands and win easily points
lvextend -L filesystem size in mb /dev/vgxx/lvolxx
fsadm -F vxfs -b filesystem size in mb x 1024 /mount point
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2005 06:16 AM
07-27-2005 06:16 AM
Re: Submit Very Basic System administration commands and win easily points
# echo "selall;info;wait;infolog;view;done" | cstm | mailx -s "CSTM Info"
Swap devices and current virtual memory usage:
# swapinfo -tm
Quick look at system load averages:
# uptime
Number of processors in use:
# echo "runningprocs/D" | adb /stand/vmunix /dev/mem
Processor speed:
# echo itick_per_usec/D | adb /stand/vmunix /dev/mem
Defragmenting a filesystem (OnlineJFS only):
# fsadm -F vxfs -d -D -e -E
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2005 06:21 AM
07-27-2005 06:21 AM
Re: Submit Very Basic System administration commands and win easily points
How about sendmail version:
echo \$Z | /usr/sbin/sendmail -bt -d |grep Version
And bind version:
dig @yourserver version.bind chaos txt
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2005 06:18 PM
07-27-2005 06:18 PM
Re: Submit Very Basic System administration commands and win easily points
Few contributions from my side to your excellent way of building COOK BOOK:
1. To know whether kernel is 32 bits or 64 bits
#getconf KERNEL_BITS
2. To know my login name
#who am i
3. To check status of Fiber Channel HBA
#fcmsutil /dev/
4. To check no of CPUs installed, system processes and memory used by them
#top
5. To shrink size of a log file to zero
# cat /dev/null >
Regards
Mahesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2005 01:46 AM
07-28-2005 01:46 AM
Re: Submit Very Basic System administration commands and win easily points
============================================
[1] Find the process which uses the most CPU during the last scheduling interval:
UNIX95= /bin/ps -eo pcpu,pid,comm | \
sort -n | tail -1
============================================
[2] Use the "pstre" (http://hpux.connect.org.uk/hppd/hpux/Users/pstre-2.11/) command for graphical list of processes of a "process branch." For example:
pstre -p 21476
============================================
[3] Use shell features to split a line into fields:
grep root /etc/passwd | IFS=: read user x1 \
uid gid x2 home shell
print $uid $home
============================================
[4] Use "mt offl" to unload a tape from /dev/rmt/0m. There is no reverse command for this!
============================================
[5] Use [] in grep to find the process and not include the grep command itself when you pipe "ps -ef" output to grep:
ps -ef | grep inet[d]
instead of
ps -ef | grep inetd
============================================
[6] Use the following function to find the "age" of a file:
function file_age {
/usr/contrib/bin/perl -e '
$mtime = (stat('"'"$1"'"'))[9];
$age = ($mtime) ? time - $mtime : -1;
print $age;'
} # file_age
For example:
file_age /etc/passwd
will return the number of seconds passed since /etc/passwd was updated.
Note: The characters after stat read as follows: single quote, double quote, single quote, double quote, dollar, one, double quote, single quote, double quote, single quote, closing parenthesis, etc.
============================================
[6] Use the "lsof" command (http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.74/) to List files, sockets, etc opened by processes. Very handy!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2005 01:54 AM
07-28-2005 01:54 AM
Re: Submit Very Basic System administration commands and win easily points
stop the system ==> stop the problem :-)
shutdown -h 0
DM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2005 02:58 AM
07-28-2005 02:58 AM
Re: Submit Very Basic System administration commands and win easily points
find / -name (file you are looking for)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2005 09:49 AM
07-28-2005 09:49 AM
Re: Submit Very Basic System administration commands and win easily points
Find and delete files older than 7 days:
find /
Find all files over 2MB:
find /
Find all files containing a certain string:
find /
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2005 09:50 AM
07-28-2005 09:50 AM
Re: Submit Very Basic System administration commands and win easily points
(even shorter)
# :>
- « Previous
- Next »