Sponsored Content
Full Discussion: How to know if I am Pinged?
Top Forums Shell Programming and Scripting How to know if I am Pinged? Post 302795117 by Junaid Subhani on Wednesday 17th of April 2013 10:06:07 AM
Old 04-17-2013
Wrench How to know if I am Pinged?

Dear All,

I need to build a mechanism by which I can log if any node in my DC is pinging my server or not ?

The purpose is al follows:

Incase any node in my Data Center turns off , I need to have a mechanism by which I am notified that a certain node is no longer responding.

On my Solaris system , can I know if I am being pinged ?

Regards
 

We Also Found This Discussion For You

1. UNIX for Advanced & Expert Users

Condition to test if a host can be pinged

I have a much larger script that takes an input file of hosts and determines if we support them and checks to ensure the FQDN coincides with our DNS. For instance, the hostname may return a different FQDN when passed to the "host" command, so I keep the value of the output of the "host" command... (4 Replies)
Discussion started by: MaindotC
4 Replies
NG_HUB(4)						   BSD Kernel Interfaces Manual 						 NG_HUB(4)

NAME
ng_hub -- packet distribution netgraph node type SYNOPSIS
#include <netgraph/ng_hub.h> DESCRIPTION
The hub node type provides a simple mechanism for distributing packets over several links. Packets received on any of the hooks are for- warded out the other hooks. Packets are not altered in any way. HOOKS
A hub node accepts any request to connect, regardless of the hook name, as long as the name is unique. CONTROL MESSAGES
This node type supports the generic control messages, plus the following: NGM_HUB_SET_PERSISTENT This command sets the persistent flag on the node, and takes no arguments. SHUTDOWN
This node shuts down upon receipt of a NGM_SHUTDOWN control message, or when all hooks have been disconnected. Setting the persistent flag via a NGM_HUB_SET_PERSISTENT control message disables automatic node shutdown when the last hook gets disconnected. SEE ALSO
netgraph(4), ng_bridge(4), ng_ether(4), ng_one2many(4), ngctl(8), nghook(8) HISTORY
The ng_hub node type appeared in FreeBSD 5.3. AUTHORS
Ruslan Ermilov <ru@FreeBSD.org> BSD
May 5, 2010 BSD
All times are GMT -4. The time now is 09:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy