.
http://msdn2.microsoft.com/en-us/library/96ayss4b(VS.80).aspxhttp://msdn2.microsoft.com/en-us/library/96ayss4b%28VS.80%29.aspx
I wrote a filter plugin that executes ping via popen and returns the
output, but it provides no more functionality or simplicity than
running ping from a set fields
(errno));
ret = pclose(fp);
log_fine (pclose errno: %i: %s, errno, strerror(errno));
outValues-valueList[0].u.intVal = ret;
log_fine (return value: %i, ret);
Log output:
+CALL ARFilterApiCall -- filter API ARSWIKI.ARF.PING
ARSWIKI.ARF.PING FINE ping command: /usr/sbin/ping cipher
On Sun, 3 Feb 2008 21:55:18 -0500, Axton wrote:
Some more digging revealed the following:
http://www.opengroup.org/onlinepubs/009695399/functions/popen.html
The *popen*() function should not be used by programs that have set user (or
group) ID privileges. The
Either way, there was no getting around it. It's a de facto standard that
a child process inherits the same level of permissions - and the profile -
of whatever the parent process is. Without that behavior on the platform,
we would really have issues.
Axton made an excellent catch and I am
popen looks to be available on all platforms (posix compliant and
windows). Windows defines the function as _popen though.
http://msdn2.microsoft.com/en-us/library/96ayss4b(VS.80).aspx
I wrote a filter plugin that executes ping via popen and returns the
output, but it provides no more
unforeseen manipulation of the
environment of the user that could cause execution of commands not
anticipated by the calling program.
Axton Grams
On Feb 1, 2008 1:56 AM, William H. Will Du Chene [EMAIL PROTECTED]
wrote:
Why not circumvent the entire issue, and use popen and the existing ping
binary
The only trick with this approach is knowing how to parse the output
from all the supported platforms/versions to return the up/down
indicator. If we simply want to return the output from ping, this is
a rather simple way to meet that goal. What does the OP want to see
the plugin return?
Axton
that contains the ip address, or host name of the
machine that you want to ping.
2.) Develop a view form with a table field that queries the host form.
3.) Develop a simple Perl script and place it on your server to be run
via
an escalation every X minutes.
The Perl script would then use
of the
machine that you want to ping.
2.) Develop a view form with a table field that queries the host
form.
3.) Develop a simple Perl script and place it on your server to be
run
via
an escalation every X minutes.
The Perl script would then use the ARSPerl module to open up
name of
the
machine that you want to ping.
2.) Develop a view form with a table field that queries the host
form.
3.) Develop a simple Perl script and place it on your server to be
run
via
an escalation every X minutes.
The Perl script would then use the ARSPerl
Yep, I started writing something in c, but seeing these things would
make it useless in most environments (gov, edu, mil, financial, etc.).
Wrapping the existing suid ping program in a shell script would
suffice, but a plugin would be easier to use/port/maintain.
Loving the impossible odds too
Why not circumvent the entire issue, and use popen and the existing ping
binary? It's in stdio.h.
That would eliminate the need for a shell script wrapper, allow for the
development of a plugin within C, and make use of the existing ping binary
which has already been designed to do the job
Has anyone seen or developed a way to ping an ip in a form and populate
a Up/Down field ?
//SIGNED//
Robert R. Gornto, GS-12,37 CS/SCBB
Chief, Network Administration
DSN 945-0483
Comm 210 925-0483
___
UNSUBSCRIBE
What do you mean by populate a Up/Down field?
-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Gornto Robert R YC-02 37
CS/SCBM
Sent: Wednesday, January 30, 2008 12:03 PM
To: arslist@ARSLIST.ORG
Subject: Ping
Has anyone seen
Like a selection filed.. Up if the ping succeeds or Down if it
doesn't
//SIGNED//
Robert R. Gornto, GS-12,37 CS/SCBB
Chief, Network Administration
DSN 945-0483
Comm 210 925-0483
-Original Message-
From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf
OK...what about this:
Create a field and hide it.
Put a button on the form that kicks off the ping workflow.
The ping workflow does a set fields action against the hidden field. Do
a RUN PROCESS in the set fields action. By doing a RUN PROCESS in the
set fields, the output of the ping (or any
For portability reasons, you may want to count on the ping command
returning a 0 for success and 1 for failure. On Windows and every *nix
platform I've seen, that is the case with the ping command.
Michael Durrant
-Original Message-
From: Action Request System discussion list(ARSList
Why not...
1.) Develop a form that contains the ip address, or host name of the
machine that you want to ping.
2.) Develop a view form with a table field that queries the host form.
3.) Develop a simple Perl script and place it on your server to be run via
an escalation every X minutes.
The Perl
a form that contains the ip address, or host name of the
machine that you want to ping.
2.) Develop a view form with a table field that queries the host form.
3.) Develop a simple Perl script and place it on your server to be run via
an escalation every X minutes.
The Perl script would then use
that contains the ip address, or host name of the
machine that you want to ping.
2.) Develop a view form with a table field that queries the host form.
3.) Develop a simple Perl script and place it on your server to be run
via
an escalation every X minutes.
The Perl script would then use
Only 3 messages today? Is something broken?
The information contained in this email may be privileged, confidential or
otherwise protected from disclosure. All persons are advised that they may
face penalties under state and federal law for sharing this information with
unauthorized
21 matches
Mail list logo