Vous êtes sur la page 1sur 5

1.

To check CPU utilization for processes using ps command ps aux |head -3

2. To sort the top 25 process utilizes more cpu excluding HEADER

ps aux |grep -v "%CPU"|sort +2nr|head -25

3.To check which process utilizes more swap space

# svmon -P|head -20

4. TO free memory space free

5.Highly useful command to troubleshooting and monitoring network activity

tcpdump

6. Its an curses iptraf

7. To check tomcat apache server is running in AIX or LINUX or not... ps -ef |egrep "http|tomcat" 8. HTML server logs path in aix /var/log/pconsole/logs

9. To look which file system is using more space and what files need to delete i t For eg : /var du -ks * | sort -nr | more du -g * | sort -nr | more ------ to see in KB ------- to see in GB

10.

Linux - Commands - to list the how manty files in that path #ls -lrt /d02/oracle/Backup/Prod|tail -1|awk '{print $9}'

11. ls -laR | grep Sep | pg ---> this command will list all the files modified i n the month of September.

12. # prtconf -k --- To list kernel Type 13. lsdev -Cc if --- To list attached devices and charecteristics. 14. # entstat -d en0 | grep "Media Speed" ---> To list Ethernet speed statistic s

15. restore -xqvf /dev/rmt0 /<restore mount point> ----> to restore the Mksysb backup from tape to server.

16.# savevg -f /dev/rmt0 <volume group name> -------> to take data volume group directly into server.

17.# restvg -f /dev/rmt0 <destination disk name> --------> To restore the SAVEV G ( DATA VOLUME GROUP ). It wont affect any l ogical volume sizes and mount names.

18. publib16.boulder.ibm.com/pseries/en_US/infocenter/base/eisearch.htm ----> To check clear and query about errors

19. # restore -qvxf /dev/rmt0/ -------------> To restore all files or dire ctories completely from Tape to server.

20. To check what are the controllers are available or defined status in AIX se rver lsdev -C |grep I/O

21. To Dispaly the devices that are connected to scsi or fcp ( fibre channel pr otocol ) lsdev -C -s scsi -----> For scsi contoller

lsdev -C -s fcp

--------> For fibre channel protocol contorller

22. To display the attributes of Tape drive in AIX

lsattr -l rmt0 -EH

23. To find when the user creation date and time in linux server..?

passwd -S username

24. To find when the user was created in AIX...?

ls -ltcr itsupp

25. To watch your queue on hdisk in real time

iostat -D hdiskx 1 | awk '/queue/{print; getline;print $0}'

26. To watch Tape drive performance

iostat -p

27. To see the relationship between Virtual CPU s and Logical CPU s and how the CPU is scheduling workload do:

mpstat

s 1

28. To find what files are using more space --- To clear logs on /var file sys tem find /var -xdev -size +2048 -ls| sort -r +6

29. To check HBA (FIBRE CHANNEL PORT) status SAN OVER AIX SERVER, put the below command...

# fcstat fcs0 , fcs1 OR # fcstat fcs2 , fcs3 30. To check HBA arributes of FC port # lsattr -El fcs0

31. To find HBA STATUS IN AIX # # fcstat -D fcs0 |grep Attention Attention Type: Link Up

32. TO Find multipath to your storage ( from AIX to STORAGE ) ? # lspath

33. To find unmounted filesystems in a server, helpful command especially after installs/upgrade lsvg -o |lsvg -il |grep -i closed 34. svmon -O summary=basic,unit=auto ---------- To check Physical memory avail able in GB

Vous aimerez peut-être aussi