bracie's useful commands

Download Bracie's Useful Commands

If you can't read please download the document

Upload: suffee

Post on 15-Nov-2015

216 views

Category:

Documents


0 download

TRANSCRIPT

218 ls -ltr219 sudo cp port_chk /rhome/bhall3/220 cd221 ls -ltr222 sudo chown bhall3:bhall3 port_chk223 ls -ltr224 ./port_chk225 ps -ef | grep cmilistener226 netstat -rn | grep 5988227 netstat -an | grep 5988228 netstat -an | grep peoplesoft229 sudo lsof -i tcp:5988230 sudo lsof -i :5988231 lsof -i :7180232 sudo lsof -i :7180233 historysunshine.ucdmc.ucdavis.edu:/rhome/bhall3$Clearing errpt entries in AIXerrclear 0 clears everything.[root@aix-install1 /root]# errclear 0[root@aix-install1 /root]# errpt -a[root@aix-install1 /root]#Procedure for removing a VG1. unmount all fs related to that vg.umount /fsname2. Check the fs are unmounted for that vg ( all lv state should be closed)lsvg -l vgname3. lsit which are the pv's on that vglsvg -p vgname4. do reduce vg with all the disks. Note if u are removing last disk from avg then the vg also deleted . you can see the same message on the screenalsoreducevg -df vgname hdiskX hdiskY [AIX] How to restart network service in AIX environment? When network service like telnet connection hangs, then it is possible the inetd subsystem is not working properly.# refresh -s inetd#ps -ef | grep inetd# mv /etc/inetd.conf /etc/inetd.conf.backupThe original template is in /usr/lpp/bos.net/inst_root/etc/. You can copy it by typing:# cp /usr/lpp/bos.net/inst_root/etc/inetd.conf /etc/inetd.confRun startsrc -s inetd and you should now be able to telnet into the machine