wping

Hi,

Trying to use wping.pl to monitor WebIntelligence (6.1b on W2K) but getting this error:

‘C:\Program’ is not recognized as an internal or external command, operable program or batch file.

Any ideas?

Thanks,
Chris


cjweis (BOB member since 2003-10-02)

I am guessing the *.PL extension is the problem.
You might either have to rename the extension to *.exe or *.bat or unpack/decompress/unzip the file.


Andreas :de: (BOB member since 2002-06-20)

Andreas,

Thanks for the reply and help. Unless I’m misunderstanding, I don’t believe there’s anything that needs to be unpacked… I’m trying to run a Perl script that BO provided (wping.pl) using the perl.exe executable they also provided…

BO has a KB article (#16456 titled “How do you use the wping utility?”) that attempts to explain how to use it… I’m following their instructions, but keep getting this error.

What do you think?

FYI…
Perl.exe path:
C:\Program Files\Business Objects\BusinessObjects Enterprise 6\perl\bin

wping.pl path:
C:\Program Files\Business Objects\BusinessObjects Enterprise 6\bin\scripts

Thanks!
Chris


cjweis (BOB member since 2003-10-02)

I’m guessing that you’re trying to run perl with the full pathname, like:

C:\Program Files\Business Objects\BusinessObjects Enterprise 6\perl\bin\perl

In this case, DOS is seeing c:\Program as the executable. You need to put the whole pathname in quotes. Try:

"C:\Program Files\Business Objects\BusinessObjects Enterprise 6\perl\bin\perl" "C:\Program Files\Business Objects\BusinessObjects Enterprise 6\bin\scripts\wping"

Joe


joepeters :us: (BOB member since 2002-08-29)

Joe,

Thanks. I followed your recommendation, but it fails because the extensions are missing (.pl and .exe). The result is:


C:\>"C:\Program Files\Business Objects\BusinessObjects Enterprise 6\perl\bin\perl" "C:\Program Files\Business Objects\BusinessObjects Enterprise 6\bin\scripts\wping"

Can't open perl script "C:\Program Files\Business Objects\BusinessObjects Enterprise 6\bin\scripts\wping": No such file or directory

If I add the extensions, the result is:


C:\>"C:\Program Files\Business Objects\BusinessObjects Enterprise 6\perl\bin\perl.exe" "C:\Program Files\Business Objects\BusinessObjects Enterprise 6\bin\scripts\wping.pl"

Can't open C:\/nodes/vmw2k/clusterlist.dat file at C:\Program Files\Business Objects\BusinessObjects Enterprise 6\bin\scripts\wping.pl line 22.

If I add the extensions and run from the “bin\scripts” directory the result is:


C:\Program Files\Business Objects\BusinessObjects Enterprise 6\bin\scripts>"C:\Program Files\Business Objects\BusinessObjects Enterprise 6\perl\bin\perl.exe" "C:\Program Files\Business Objects\BusinessObjects Enterprise 6\bin\scripts\wping.
pl"

'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

This problem is definitely related to the spaces in the path, but I don’t think it’s the path I’m entering at the command prompt. After looking deeper, there seems to be a problem with both the wping.pl file and underlying system code. By changing one line, we were able get it partially working:

FROM:


$cmdline ="$ENV{'JAVA_HOME'}/bin/java com.bo.widiag.WPing @ARGV";

TO:


$cmdline ="\"$ENV{'JAVA_HOME'}/bin/java\" com.bo.widiag.WPing @ARGV";

We changed this line because the execution of the java was failing due to spaces. During execution, the variable $cmdline was being set to…


C:\Program Files\Business Objects\ThirdParties\jdk_1.3.1/bin/java com.bo.widiag.WPing -c monitoring -u bo_monitor -p bo_monitor

…but after the change it became:


"C:\Program Files\Business Objects\ThirdParties\jdk_1.3.1/bin/java" com.bo.widiag.WPing -c monitoring -u bo_monitor -p bo_monitor

So, by making that change, the command output of wping.pl becomes:


C:\PROGRA~1\BUSINE~1\BUSINE~1\bin\scripts>"C:\PROGRA~1\BUSINE~1\BUSINE~1\perl\bi
n\perl.exe" wping2.pl -c monitoring -u bo_monitor -p bo_monitor
Starting WPing ...
Connecting to serverException in thread "main" java.lang.NoClassDefFoundError: j
avax/servlet/ServletRequest
        at com.bo.widiag.WPing.main(WPing.java:86)

Timeout has been reached. WPing is now exiting.

C:\PROGRA~1\BUSINE~1\BUSINE~1\bin\scripts>

This is frustrating - especially when we followed BO’s installation instructions so carefully… :reallymad:

Thanks for your help!,
Chris


cjweis (BOB member since 2003-10-02)


haupto :de: (BOB member since 2004-04-16)

Olli,

I took a look at how the CLASSPATH is being set by wping.pl. I added a debug line to print the $classpath variable, and the whole command prompt output looks like this:


C:\Program Files\Business Objects\BusinessObjects Enterprise 6\bin\scripts>
"c:\Program Files\Business Objects\BusinessObjects Enterprise 6\perl\bin\perl.exe"
wping2.pl -c monitoring -u bo_monitor -p bo_monitor
-- START CLASSPATH --
C:\Program Files\Business Objects\BusinessObjects Enterprise 6/bin/scripts/.wping/;
C:\Program Files\Business Objects\BusinessObjects Enterprise 6\classes\widiag.jar;
C:\Program Files\Business Objects\BusinessObjects Enterprise 6\classes\webi.jar;
C:\Program Files\Business Objects\BusinessObjects Enterprise 6\classes\asf_java.jar;
C:\Program Files\Business Objects\BusinessObjects Enterprise 6\classes\witools.jar;
C:\Program Files\Business Objects\BusinessObjects Enterprise 6\classes\servlet.jar;
C:\Program Files\Business Objects\BusinessObjects Enterprise 6\bin\orb\asp\5.1\lib\orbix2000.jar;
C:\Program Files\Business Objects\BusinessObjects Enterprise 6\bin\orb\asp\5.1\lib\j2ee-product.jar;
C:\Program Files\Business Objects\BusinessObjects Enterprise 6\nodes\vmw2k\mycluster;
C:\Program Files\Business Objects\BusinessObjects Enterprise 6\nodes\vmw2k\mycluster\config\domains\
-- END CLASSPATH --
Starting WPing ...
Connecting to serverException in thread "main" java.lang.NoClassDefFoundError: j
avax/servlet/ServletRequest
        at com.bo.widiag.WPing.main(WPing.java:86)

I then checked each path to validate the file was there. Sure enough, as you said, servlet.jar was missing! I did as you recommended, copied servlet.jar from the Tomcat directory… and now IT WORKS!!!

MANY THANKS!!! You’re AWESOME!!

Now I just need to find a way to monitor this “OK” output and alert via email if it ever fails… :wink:

Regards,
Chris


cjweis (BOB member since 2003-10-02)