tcpdump fails at AIX 5.2


 
Thread Tools Search this Thread
Operating Systems AIX tcpdump fails at AIX 5.2
# 1  
Old 11-16-2009
tcpdump fails at AIX 5.2

While executing tcpdump , i am getting following error.

tcpdump: BIOCSETIF: en0: Do not specify an existing file.

I checked with truss , and i able to see kioctl system is failed with "EEXIST"

==============================================

Message from truss output
--------------------------
open("/dev/bpf0", O_RDONLY) = 3
kioctl(3, -2145369492, 0x2FF22A18, 0x00000000) Err#17 EEXIST

================================================

I searched on this forum itself and i couldn't find anything.

Note : My customer wants to use tcpdump and not interested in iptrace .
# 2  
Old 11-16-2009
Quote:
Originally Posted by sekarsamy
While executing tcpdump , i am getting following error.

tcpdump: BIOCSETIF: en0: Do not specify an existing file.

[...]

Message from truss output
--------------------------
open("/dev/bpf0", O_RDONLY) = 3
kioctl(3, -2145369492, 0x2FF22A18, 0x00000000) Err#17 EEXIST

[...]
There seems to be a hook or lock left in the Kernel. Use ipcrm to clear shared memory related to that former ((killed ?) tcpdump?) process. If that fails you might need a reboot.
# 3  
Old 11-16-2009
Thanks for the quick reply .

I checked the current shared memory status and I can see only the following process which is started by root .

>ipcs -am | grep root
m 5 0xffffffff --rw-rw---- root system root system 1 4096 33028 33028 16:03:15 16:03:15 13:49:55
m 6 0xffffffff --rw-rw---- root system root system 1 4096 33028 33028 16:03:15 16:03:15 13:49:55
m 7 0xffffffff --rw-rw---- root system root system 1 4096 33028 33028 16:03:15 16:03:15 13:49:57
>ps -p 33028 -f
UID PID PPID C STIME TTY TIME CMD
root 33028 20264 0 Aug 28 - 4:16 /usr/sbin/rsct/bin/rmcd -a IBM.LPCommands -r
>

And i suspect the following semaphore

>ipcs -ps | grep root
s 1 0x62001b38 --ra-r--r-- root system
s 131077 0x01001965 --ra------- root system

As i couldn't able to see the process information , i couldn't able to take the decision to remove this semphore .

Any sugesstion to get the process id which accessed the above mentioned semaphore ?

Note : I am trying to avoid the reboot .

---------- Post updated at 09:50 PM ---------- Previous update was at 08:05 AM ----------

The issue was solved after the reboot .
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Java 32 bit installation fails on an AIX platform

Hello. It is my first to deal with Java installation on an AIX platform. I am now trying to install Java 32bit using installp command. However, it throws back the message that the installation media cannot be found. I need to install Java 32bit to proceed with an installation of Oracle JD... (0 Replies)
Discussion started by: EJ2019
0 Replies

2. Emergency UNIX and Linux Support

AIX upgrade fails

Hello Team, Am trying to upgrade the AIX 6.1 TL 7 to TL 8. My rootvg is mirrored so i have unmirrored and taken out the secondary disk and trying to install the update via smitty alt_clone. The filesets has been installed and finally when making the updated disk as bootable bosboot... (6 Replies)
Discussion started by: gowthamakanthan
6 Replies

3. UNIX for Dummies Questions & Answers

Oracle client install for AIX - WinSCP fails

I am trying to install the oracle client for AIX. I downloaded the client to my Windows machine from Oracle Database 10g Release 2 for AIX5L "Oracle Database 10g Client Release 2 (10.2.0.1.0)". 1. Is this right? (I need 9 or 10 client) It was .gz file that I am now trying to move from... (2 Replies)
Discussion started by: shoefiend
2 Replies

4. Shell Programming and Scripting

Python 2.5 / 2.2 import "errno" fails on AIX Server

I am trying to import the "xmlrpclib" Module from Activepython 2.5 in einer older Python 2.2. Already achived this on a SUSE Linux server, but I am now required to do it on a AIX server. Resolved the first few error messages by copying files from Activepython to Python but I can't get the... (0 Replies)
Discussion started by: frieling
0 Replies

5. AIX

"fuser -c -k /XXX/XXXXXXX" Fails and stuck on AIX 6100-05-01-1016

Hi I was wondering if anybody has come across in a failure of fuser command. We have a backup script that is: fuser -c -k /XXX/XXXXXXX sync;sync umount /XXX/XXXXXXX/ backup -0 -f /dev/rmt0.1 -u /dev/XXXXXXXlv mount /XXX/XXXXXXX/ sync;sync The script is called from crontab via an... (2 Replies)
Discussion started by: ggovotsis
2 Replies

6. UNIX for Dummies Questions & Answers

scp from aix to windows (cygwin) fails

Hi... my problem is that I want to copy one html-file to my windows-box webserver using scp. so far no problem but the destination is in /cygdrive/c/program files/dest and as we all know unix doesnt like spaces in paths. scp html.file user@windowsbox:/cygdrive/c/program... (5 Replies)
Discussion started by: cypher82
5 Replies

7. IP Networking

i would like to know about tcpdump

i would like to know about tcpdump i would like to use tcpdump to get information about these - Date - time - source hostname - source mac address - source ip address - destination ip address - see outbound only then i use command like this tcpdump -i le0 -n -q -tttt -e src net... (2 Replies)
Discussion started by: chamnanpol
2 Replies

8. AIX

AIX: chpath command fails

Hi Guys, i'm having trouble changing the path-priority. Now both priorities are 1 as you can see in the lspath-output. Any ideas why the chpath command fails? # chpath -l hdisk3 -p fscsi1 -a priority=10 Method error (/etc/methods/chgdisk): 0514-080 Invalid routine argument... (4 Replies)
Discussion started by: raba
4 Replies

9. AIX

POLL function fails under AIX v5.3

I am having a strange problem with the poll() routine. I compiled a module under AIX 5.2 using the poll routine, it worked fine. When the OS was upgraded to AIX 5.3 the poll routine return an error code. Here is a summary of the code: #define MAX_EVENTS 300 long eventCount;... (0 Replies)
Discussion started by: TahirNazir
0 Replies

10. UNIX for Dummies Questions & Answers

tcpdump

does anybody know what the -d -dd and -ddd options are used for ? thanks (2 Replies)
Discussion started by: ant04
2 Replies
Login or Register to Ask a Question