Tuesday, October 26, 2010

How to get network interface info in AIX?

# netstat -ia
” Its the easy way to get all network cards’ MAC address On your AIX server”

for detailed decryption:

entstat -d en2 -> en2 is the interface name

Write list of files which contains some pharse

find .|xargs grep SAP >list

. -> current directory , sometimes you can use * for searching all files from the current location
xargs -> It is used to build and execute command lines from standard input, dont understand - just taking the find command output and passing to grep command

> -> he greater-thans (>) in commands like these redirect the program’s output somewhere