09-15-2011
How to detect the network cable status with c programming on AIX
Hello,
Is there any API or any other approach to detect whether the network cable is connected to the network adapter, say, en0, en1 or en2?
The OS is AIX6.1.
Thank you.
Last edited by zephyrbj; 09-15-2011 at 09:52 PM..
Reason: provide more info
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
My system ( Solaris 2.6, Entrerprise 250 ) shows lot of connections in TIME_WAIT status against service
localhost.8007 and
localhost.45221
What are these services and where can I get the cross references.
I have checked up in /etc/services and there is no such entry.
Infact... (5 Replies)
Discussion started by: shibz
5 Replies
2. Solaris
Hi All,
I recently installed Solaris 9 on my Compaq Presario V2000 Series (V2069CL) laptop. Everything is working fine except that Solaris is not able to detect the Network Interface after boot.
While the system is booting, it shows that it has detected "Xircom Pocket Ethernet parallel port... (3 Replies)
Discussion started by: com2com
3 Replies
3. AIX
Hello ... I am newbie and will be very grateful for any help. I need a serial console cable for my AIX boxes (seems we have lost the one we had!). However I am confused about the one one to order - UK based if possible. I wonder if anyone can point me at a specific one or the exact spec i need to... (0 Replies)
Discussion started by: tim441
0 Replies
4. IP Networking
Hi, I am trying to implement a server-client socket communication. My server and clients are in different PCs. During communications if the ethernet cable is removed from the server side it shows broken pipe due to unable to write on the socket. I want to know how to check whether the ethernet... (0 Replies)
Discussion started by: JagadishB
0 Replies
5. Shell Programming and Scripting
I write a script which will stop an application, then restart it.
Sometimes it is succesful, sometimes not.
The problem is, when stop the application, some ports are still listenning (or not released). When start the application, it reports that ports are used, and can't continues.
I use... (1 Reply)
Discussion started by: rdcwayx
1 Replies
6. Shell Programming and Scripting
Hi there,
I'm driven crazy by a new problem.
It seems very complex to me and I see no way to come around.
In my script, I receive the path to a tgz file and I want to output the md5 sum of the file inside the tgz. I want a way to detect if tar fails.
I'm using the following command
tar... (7 Replies)
Discussion started by: chebarbudo
7 Replies
7. Programming
Hi,
I want to code TCP/IP client/server in linux application capable to fastly detect ethernet cable disconnection in any condition.
So I have activate SO_KEEPALIVE options and set TCP_KEEPCNT, TCP_KEEPIDLE and TCP_KEEPINTVL to 1.
When I disconnect ethernet cable I have the following... (5 Replies)
Discussion started by: jeje_clb
5 Replies
8. AIX
Hi.
I have 2 libraries (overland + data domain).
My AIX 7.1 detect all "rmt" of the overland but none of the data domain.
I have the Atape driver 12.3.9.
During cfgmgr, I have this message :
cfgmgr: 0514-621 WARNING: The following device packages are required for
device support... (2 Replies)
Discussion started by: stephnane
2 Replies
9. Solaris
I've one Netra 240
After changing main board and system configuration card reader, Network is not accessible any more, Network interfaces are always UP and Running even when there is no cable connected to Network interfaces.
I tried to restart and plumb/unplumb with no luck.
ifconfig -a... (7 Replies)
Discussion started by: samer.odeh
7 Replies
10. Post Here to Contact Site Administrators and Moderators
ssssssssssss (0 Replies)
Discussion started by: sampathenjoy
0 Replies
DE(4) Kernel Interfaces Manual DE(4)
NAME
de - DEC DEUNA 10 Mb/s Ethernet interface
SYNOPSIS
/sys/conf/SYSTEM:
NDE de_controllers # DEUNA
DESCRIPTION
The de interface provides access to a 10 Mb/s Ethernet network through a Digital Equipment UNIBUS Network Adapter (DEUNA).
Each of the host's network addresses is specified at boot time with an SIOCSIFADDR ioctl. The de interface employs the address resolution
protocol described in arp(4P) to dynamically map between Internet and Ethernet addresses on the local network.
The interface normally tries to use a ``trailer'' encapsulation to minimize copying data on input and output. The use of trailers is nego-
tiated with ARP. This negotiation may be disabled, on a per-interface basis, by setting the IFF_NOTRAILERS flag with an SIOCSIFFLAGS
ioctl.
DIAGNOSTICS
de%d: hardware address %s. This is a normal autoconfiguration message noting the 6 byte physical ethernet address of the adapter.
de%d: oerror, flags=%b tdrerr=%b (len=%d). The hardware indicated an error in transmitting a packet to the cable. The status and error
flags are reported.
de%d: ierror, flags=%b lenerr=%b (len=%d). The hardware indicated an error in reading a packet from the cable. The status and error flags
are reported.
de%d: can't handle af%d. The interface was handed a message with addresses formatted in an unsuitable address family; the packet was
dropped.
de%d: buffer unavailable. The interface received more packets than it had buffers allocated to receive them.
de%d: address change failed, csr0=%b csr1=%b. The interface was unable to reprogram its physical ethernet address. This may happen with
very early models of the interface. This facility is used only when the controller is not the first network interface configured for XNS.
The following messages indicate a probable hardware error performing the indicated operation during autoconfiguration or initialization.
The two control and status registers should indicate the nature of the failure. See the hardware manual for details.
de%d: reset failed, csr0=%b csr1=%b.
de%d: ppcb failed, csr0=%b csr1=%b.
de%d: read addr failed, csr0=%b csr1=%b.
de%d: wtring failed, csr0=%b csr1=%b.
de%d: wtmode failed, csr0=%b csr1=%b.
SEE ALSO
intro(4N), inet(4F), arp(4P)
3rd Berkeley Distribution August 20, 1987 DE(4)