coolcommands.com - the search engine for unix sysadmins :: unix commands and scripts
Saturday July 23, 2016


 Home
 Search
 Advanced Search
 Category Search
 Affiliates
 Acknowledgements
 Cool Links

Username

Password

Remember me
Forgot your password?

Who's Online
We have 17 guests online

Hit Counter
18151321 Visitors

cool Statistics
coolcommands:1346
Categories:83
Total queries:659915
Members:22813





Search coolcommands.com
Search Keyword:


coolcommand

iptrace, ipreport - capture TCP/IP information in IBM AIX
Description

Here is a command to capture TCP/IP packet information between your server and another in IBM AIX:

Become root user

Find a temporary directory to capture the data (/tmp in this example)

Run the iptrace command:

# iptrace -a -d host_destination -b /tmp/ip.out

iptrace will run in the background and results will be in /tmp/ip.out

To see the results of the trace:

# ipreport /tmp/ip.out | more

Don't foregt to kill iptrace when you're done:

# ps -ef | grep iptrace | grep -v grep | awk '{system("kill " $2)}'

Some other cool options of iptrace:

-d : specify destination IP address
-s : specify origin IP address
-b : show 2-way traffic (as in "-s xxx -b" or "-d xxx -b")
-a : no ARP requests (less pollution in the trace)

To see all packets going in and out of server, unixserv, without ARP requests:

# iptrace -a -d unixserv -b /tmp/ip.out

iptrace and ipreport are in IBM AIX LPP "bos.net.tcp.server"
Example

iptrace -a -d hostname -b /tmp/ip.out

Return to search results

Random coolcommands

coolcommand: oslevel - how to show the list of known maintenance level in IBM AIX
Example: oslevel -rq
[show me the details]
coolcommand: one-liner to do a search and replace in a file
Example: find . -name "*.pl" -exec perl -i -p -e "s/old_string/new_string/g" {} \;
[show me the details]
coolcommand: endmqm - how to end (stop) a specified local queue manager in Websphere MQ
Example: endmqm MQBOBOQ1
[show me the details]
coolcommand: how to dump the transaction logs in Sybase
Example: dump transaction database to "/mnt/backup/dbtrandump2003_08_27_T23_32.bkp"
[show me the details]

coolcommands.com - the search engine for UNIX sysadmins :: unix commands and scripts


Top 5 Submitters

lvo1167
audet37
kah00na32
Mariom24
lebjf00015

Top 5 Searches

Category General UNIX59975
Category AIX54446
Category Solaris54238
solaris23973
aix23444




Terms of Use
Privacy
Contact


 
coolcommands.com © 2016. All Right Reserved.
Programming by PRATTICO Consulting . Hosting by Apricusum