Sponsored Content
Operating Systems AIX How to detect the network cable status with c programming on AIX Post 302556027 by alister on Friday 16th of September 2011 11:06:12 AM
Old 09-16-2011
Disclaimer: I have absolutely no experience with AIX.

Most systems provide this type of information via ioctl on a socket fd.

Regards,
Alister
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Network Status

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

Solaris 9 on x86- Can't detect network interface

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

need AIX console cable

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

How to handle unplugging ethernet cable in socket programming

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

how to detect port open status?

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

set a variable and detect error status...

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

How detect TCP/IP socket shutdown when ethernet cable is disconnected

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

AIX 7.1 don't detect my DataDomain Library

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

No network cable But Network interface is UP and Running

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

AIX server do not detect LUN from HP storage

ssssssssssss (0 Replies)
Discussion started by: sampathenjoy
0 Replies
SOCKATMARK(3)						   BSD Library Functions Manual 					     SOCKATMARK(3)

NAME
sockatmark -- determine whether a socket is at the out-of-band mark LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <sys/socket.h> int sockatmark(int s); DESCRIPTION
The sockatmark function determines whether the socket referenced by the file descriptor s is at the out-of-band mark. RETURN VALUES
If successful, the sockatmark function returns 1 to indicate that the socket is at an out-of-band mark; 0 is returned if there is no out-of- band mark or the mark is preceded by in-band data. Otherwise, -1 is returned and errno is set to indicate the error. ERRORS
The sockatmark function will fail if: [EBADF] The argument s is not a valid file descriptor. [ENOTTY] The file descriptor s does not refer to a socket. SEE ALSO
ioctl(2), recv(2), socket(2) Stuart Sechrest, An Introductory 4.4BSD Interprocess Communication Tutorial. (see /usr/share/doc/psd/20.ipctut) Samuel J. Leffler, Robert S. Fabry, William N. Joy, Phil Lapsley, Steve Miller, and Chris Torek, Advanced 4.4BSD IPC Tutorial. (see /usr/share/doc/psd/21.ipc) STANDARDS
The sockatmark function conforms to IEEE Std 1003.1-2001 (``POSIX.1''). HISTORY
The sockatmark function appeared in IEEE Std 1003.1g-2000 (``POSIX.1'') as a replacement for the SIOCATMARK ioctl(2) interface. BSD
May 15, 2003 BSD
All times are GMT -4. The time now is 04:51 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy