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
Blt_TreeGetNode(3)					      BLT Library Procedures						Blt_TreeGetNode(3)

__________________________________________________________________________________________________________________________________________________

NAME
Blt_TreeGetNode - Finds the node from the ID. SYNOPSIS
#include <bltTree.h> Blt_TreeNode Blt_TreeGetNode(tree, number) ARGUMENTS
Blt_Tree tree (in) Tree containing the requested node. unsigned int number (in) Serial number of the requested node. _________________________________________________________________ DESCRIPTION
This procedure returns a node in a tree object based upon a give serial number. The node is searched using the serial number. The arguments are as follows: tree The tree containing the requested node. number The serial number of the requested node. RETURNS
The node represented by the given serial number is returned. If no node with that ID exists in tree then NULL is returned. EXAMPLE
The following example gets the node from a serial number. unsigned int number; Blt_TreeNode node; Blt_TreeToken token; node = Blt_TreeGetNode(token, number); if (node == NULL) { printf("no node with ID %d exists ", number); } else { printf("node found: label is %s ", Blt_TreeNodeLabel(node)); } KEYWORDS
Tcl_TreeCreateNode, Tcl_TreeDeleteNode BLT
2.4 Blt_TreeGetNode(3)
All times are GMT -4. The time now is 06:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy