How to get reason for ping failure using perls Net::Ping->new("icmp");?
Hi
I am using perl to ping a list of nodes - with script below :
This works fine however I want the script to tell me the reason why ping fails for the hosts that are not pingable.
Is there any way to print reason why $host is unreacheable using Net::Ping ?
If not is there a better way to ping list of hosts using Perl ?
ok im on chap19 (cgi programming) of learning perl 2nd edition.
I am just not understanding how the referances to a class work.
i understand the following example:
@array1=qw( 1 2 3 4);
$aref = \@array1;
@array2=qw(5 6 7 8);
$aref=\@array2;
$# of $aref is now 1
print $aref; #... (2 Replies)
Hi... Iam new members at this forum. and I have a little problem with "command ping"
what the "command to ping at limited time", for example
at linux
$ping -c5 10.0.0.62 and the responed as below:
64 bytes from 10.0.0.62: icmp_seq=1 ttl=128 time=0.843 ms
64 bytes from 10.0.0.62: icmp_seq=2... (3 Replies)
Hi All,
How to disable ICMP time stamp request and time stamp reply of a machine?
How to test this feature from remote machine?
Please reply back
Vasanth (2 Replies)
keep getting an error when I try to revert to a snapshot:
"VMDB Failure" followed by "Unable to open snapshot file"
Im using vmware server 1.0.4, host OS is windows xp and guest OS is SLES.
Is there anything I can do to recover the snapshot or am I in trouble!?!?! (0 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Ssh connections using shared public keys issue “authentication failure” messages, then succeed with “session opened”.
I have found a few other threads with similar issue, but no solutions offered. :wall:
How can I eliminate the failure messages?
Environment:
$ uname -a Linux... (0 Replies)
Hi,
Am trying to ping between AIX and FreeBSD7.4/i386 by IPv6 address..
It is unable, I configured all files like /etc/rc.conf at freebsd and /etc/hosts and etc/netsvc.conf and restarted the IPv6 network at AIX..
Please help me where I have missed the procedure.. (1 Reply)
Hi all,
Can anyone guess why this is happening? I am new to Perl, so please help me to fix this error:
- I have a static html file which calls the cgi-perl script.
HTML Code:
<html>
<head>
<title> Hey Dude! </title>
</head>
<body>
<form method="POST"... (3 Replies)
Hi everybody,
I am new at Unix/Bourne shell scripting and with my youngest experiences, I will not become very old with it :o
My code:
#!/bin/sh
set -e
set -u
export IFS=
optl="Optl"
LOCSTORCLI="/opt/lsi/storcli/storcli"
($LOCSTORCLI /c0 /vall show | grep RAID | cut -d " "... (5 Replies)
Discussion started by: Subsonic66
5 Replies
LEARN ABOUT SUNOS
asadmin-jms-ping
asadmin-jms-ping(1AS) User Commands asadmin-jms-ping(1AS)NAME
jms-ping - checks to see if the JMS provider is up and running
SYNOPSIS
jms-ping --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--passwordfile filename] [--secure|-s]
[--terse=false] [--echo=false] [--interactive=false]
Checks to see if the JMS provider is up and running. This command is supported in remote mode only.
OPTIONS --user authorized domain application server administrative username.
--password password to administer the domain application server.
--host machine name where the domain application server is running.
--port port number of the domain application server listening for administration requests.
--passwordfile file containing the domain application server password.
--secure if true, uses SSL/TLS to communicate with the domain application server.
--terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-
formatted data for consumption by a script. Default is false.
--echo setting to true will echo the command line statement on the standard output. Default is false.
--interactive if set to true (default), only the required password options are prompted.
Example 1: Using jms-ping
asadmin> jms-ping --user admin --password adminadmin --host bluestar --port 4848 server1
JMS Ping Status=RUNNING
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-create-jmsdest(1AS), asadmin-delete-jmsdest(1AS), asadmin-list-jmsdest(1AS)J2EE 1.4 SDK March 2004 asadmin-jms-ping(1AS)