Thursday, 25 April 2013

Force shutdown of a Linux server

This could be useful when you really need to shutdown... some kind of a "Vulcan Key" to the kernel :)

#echo 1 > /proc/sys/kernel/sysrq
#echo o > /proc/sysrq-trigger

Monday, 4 February 2013

Who's using my port? (AIX)

Sometimes is very useful know what process is using a specific port. In AIX, the netstat command show you this info using the following parameters:

netstat -Aan

So, you must use grep to filter the port you are looking for.

The first column shows a hexadecimal number. Using the rmsock command with the following parameters to see the PID:

rmsock (hexnumber) tcpcb

or udpcb

:)

Wednesday, 30 January 2013

Red Hat remote install through VNC

boot: linux vnc vncpassword=qwerty ip=xxx.xxx.xxx.xxx netmask=xxx.xxx.xxx.xxx gateway=xxx.xxx.xxx.xxx dns=xxx.xxx.xxx.xxx ksdevice=ethx

Wednesday, 11 January 2012

AIX: Assign pvid to hdisk

chdev -l HDISK -a pv=yes

Redirect from httpd.conf

Redirect 301 / http://www.example.com:8087/

Another simple but great directive. (Apache)

Thursday, 5 January 2012

What to do when crontab jobs execute later in AIX

A very handy article!

http://www.wmduszyk.com/?p=1306&langswitch_lang=en

Thanks Waldemar!

Uninstall McAfee EPolicy agent

(From McAfee Forums)


Uninstall ePolicy Orchestor agent
All actions logged in as local administrator or user with admin rights.

1) Find the install location of CMA/EPO agent, usually one of:
c:\epoagent
c:\program files\mcafee\common framework
c:\program files\network associates\common framework

2) start/run browse to install folder
3) select frminst.exe and return to run box
4) add following switch to end of frminst.exe " /forceuninstall"
This gives "%install location%\frminst.exe" /forceuninstall
5) this should now uninstall the CMA/EPO agent