The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > AIX
.
grep unix.com with google



AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Reply
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 11-16-2009
Registered User
 

Join Date: Nov 2009
Posts: 4
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 (permalink)  
Old 11-16-2009
shockneck's Avatar
No RISC - No Fun
 

Join Date: Mar 2008
Location: Infractor's boudoir
Posts: 377
Quote:
Originally Posted by sekarsamy View Post
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 (permalink)  
Old 11-16-2009
Registered User
 

Join Date: Nov 2009
Posts: 4
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 .
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
i would like to know about tcpdump chamnanpol IP Networking 2 07-17-2008 12:26 PM
i would like to know about tcpdump chamnanpol Security 0 07-03-2008 06:17 AM
tcpdump on AIX nymus7 AIX 4 01-16-2008 08:51 PM
R-326: tcpdump Linux Bot Security Advisories (RSS) 0 01-08-2008 12:50 PM
tcpdump ant04 UNIX for Dummies Questions & Answers 2 09-07-2004 07:36 PM



All times are GMT -4. The time now is 01:23 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0