Register | Login

Published Articles » Operating System

In many unix flavour operating systems we have top command to monitor cpu utilizations.


In Solaris we have prstat to monitor cpu utilization.


use the below command to get the similar output of top in prstat,


prstat -s cpu -a -n 8


 


Solaris version of netstat does not have the sophistication of telling which process is using the port. This can be achieved using lsof command.


Consider a scenario that we need to identify the process id using port 8080,


lsof |grep 8080

This will list the process id that is using port 8080.


System Dumps generation in AIX

Posted by madeeswer 2483 days ago (Editorial)

System dumps are taken to get a clear picture of systems utilization at that exact moment.


Normally system dumps are taken along with the java heap dump and thread dump for getting a clear picture about the system.


 


following are the steps to generate system dumps,


 


1.  Login  as root user


2. generate gencore file



ksh shell keyboard short cuts

Posted by madeeswer 2470 days ago (Editorial)

KSH is one the shell available in many Unix flavors. Ksh is the default shell for Solaris.


below mentioned are few shortcuts available in ksh,


 


Auto complete ------> [ESC]-


Forward One Character —-> —-> [ESC]-l


Backward One Character —-> [ESC]-h


Delete One Character —-> [ESC]-x


Replace One Cha

Solaris lsof equivalent script command

Posted by madeeswer 2232 days ago (Editorial)

for PID in `/usr/bin/ps -e -o pid`;do


echo Checking PID $PID...


/usr/local/bin/sudo /usr/bin/pfiles $PID|grep port:


done


By default if you change the ownership or group name of a symbolic soft link then the orginal file will get affected. The orginal files user name and group name will be changed but the soft links owner name and group name will reamin the same.


 


In order to change the soft links owner name and group name we need to use '-h' option


 


chown -h test:test

Linux:


In order to recursively search a string or pattern in Linux we can use '-r' option.


grep -lre “Error” /opt/*


-r will recursively search all the files and folder under the specified location.


 


AIX or Solaris or Unix:


AIX or Solaris or Unix version of grep command does not have the sophisticated '-r' option.


B

AIX CRONTAB

Posted by venky (#103) 2513 days ago (Editorial)
00 19 * * *
#15 10 27 7
add the values to crontab
edit to cron =crontab -e and list crontab -l

00 19 * * * /script location dbname 2>&1


* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1
Sort News
Username:

Password:

Remember:
YourWiz.com, is a website that will allow everyone to share their knowledge, tip or information through community micro blogging.