Google Search

Google

What is the most suitable distro to use as a server?

Visit Us!

Google Groups
Kuantan Linux User Group
Visit this group

Threat Resource Center | Trend Micro

Monday, October 19, 2009

Unix Tutorial For Dummies Like Me :-)

CPU / Memory

1. HPUX

2. AIX

3. Solaris

4. Linux

5. Tru64



HPUX

How to check CPU/Memory usage



# glance OR top OR vmstat OR iostat OR sar

## to check CPU/Memory utilisation



· Find large processes which currently filled up the CPU/Memory usage.




AIX

How to check CPU/Memory usage:



# sar OR vmstat OR iostat OR topas ## to check CPU/Memory utilisation



· Find large processes which currently filled up the CPU/Memory usage.




SOLARIS

How to check CPU/Memory usage:



# sar OR vmstat OR iostat ## to check CPU/Memory utilisation



· Find large processes which currently filled up the CPU/Memory usage.




LINUX

How to check CPU/Memory usage:



# sar OR vmstat OR iostat OR top ## to check CPU/Memory utilisation



· Find large processes which currently filled up the CPU/Memory usage.




TRU64



How to check CPU/Memory usage:



# vmstat OR iostat OR top ## to check CPU/Memory utilisation



· Find large processes which currently filled up the CPU/Memory usage.




HPUX

How to check disk space: (using /var as example)



# bdf /var ## to check disk utilisation for /var filesystem

# find /var -xdev -type f -size +5000000c -exec ls -l {} \; | sort -nk 5 ## to find larger files in /var




AIX, SOLARIS, LINUX, TRU64



How to check disk space:



# df -k /var ## to check disk utilisation for /var filesystem

# find /var -xdev -type f -size +5000000c -exec ls -l {} \; | sort -nk 5 ## to find larger files in /var






HPUX/AIX/SOLARIS/LINUX/TRU64

Pre-checking before reboot




Capture the system details

# bdf > /tmp/bdf.txt ## For HPUX

OR

# df –k > /tmp/df.txt ## For other OS

# netstat –in > /tmp/netstat.in.txt

# netstat –rn > /tmp/netstat.rn.txt

# lanscan > /tmp/lanscan.txt ## For HPUX

# ioscan –fn > /tmp/ioscan.txt ## For HPUX

# ps –ef | grep –i sap ## Double confirm no SAP running

# ps –ef | grep –I oracle ## Double confirm no Database running





How to reboot server

# shutdown [-option] [ +Time [ Message ] ] ## man shutdown to find more the option






Account Creation

# finger

OR

# grep –i <> /etc/passwd



HPUX/AIX/SOLARIS/LINUX/TRU64



# useradd –c -g -m –d -s id

## man useradd for more the option





AIX



# mkuser ## man mkuser for more the option





Account Mod

Do initial checking on the account



# finger

OR

# grep –i <> /etc/passwd



HPUX/SOLARIS/LINUX/TRU64




# usermod ## man usermod for more the option



AIX



# chuser ## man chuser for more the option





Account Deletion

Do initial checking on the account



# finger

OR

# grep –i <> /etc/passwd

HPUX/SOLARIS/LINUX/TRU64



# userdel –r ## man userdel for more the option



AIX



# rmuser ## man rmuser for more the option






Generic Process to add printer

1) Confirm details provided (such as printer queue name, IP address and model).

2) Perform initial checking:-



# ping ## Ping new printer IP address

# lpstat –o ## Verify if printer queue used up


Issue following command to create print queue.

# hppi or sam ## HP UX

# smitty ## IBM





Generic Process to modify printer:

1) Confirm details provided (such as printer queue name, IP address and model).

2) Perform initial checking:-



HPUX

# ping ## Ping new and old printer IP address

# lpstat –o ## Verify printer queue

# grep –i model /etc/lp/interface ## Check printer model

# grep –i periph /etc/lp/interface ## Check printer IP

# grep –i /etc/hosts ## Check printer IP

IBM

# Smitty


Issue following command to modify printer queue IP or model. Printer modify can be do anytime.



HPUX

# vi /etc/lp/interface ## Change network printer IP only



**To modify printer model, remove old print queue and recreate with new model.

**If print queue are remote printer, remove old print queue and recreate with new IP or model.



IBM

**Remove old print queue and recreate with new IP or model





Generic Process to delete printer:

1) Confirm details provided (such as printer queue name, IP address and model).

2) Perform initial checking:-



HPUX/IBM/SUN SOLARIS/Linus/Tru64

# ping ## Ping new and old printer IP address

# lpstat –o ## Verify printer queue



Issue following command to delete printer queue IP or model.



HPUX

# hppi or sam



IBM

# smitty

Linux News Of The Day!

Powered By
widgetmate.com
Sponsored By
Credit Card Forum