Pages: [1]   Go Down
Author Topic: pandora agent configuration  (Read 138 times)
0 Members and 1 Guest are viewing this topic.
kram
Full Member
***

Karma: 0
Offline Offline

Posts: 45


View Profile
« on: February 03, 2009, 09:32:20 PM »

I am trying to check connection to a StarTeam server using the Pandora Agent(1.2 version). All I am trying to do is, to run a StarTeam command that connects to the server and after that echoing the %errorlevel% to check if its a non-zero value(connection failed if it is nono-zero). Is there an easy way to do this?

As of now, I have modified the Pandora_Agent.conf file to include a module,

Code:
stcmd connection check
module_begin
module_name stcmd_connect
module_type generic_data
module_exec c:\Program Files\Pandora_Agent\stcmd_check.bat
module_description Checking connection with StarTeam
module_end


Also, the stcmd_check.bat looks like this:
Code:

stcmd.exe list -p "xyz@12.180.11.226:55201/StarFlow Extensions" -pwdfile "c:\Documents and Settings\xyz\stcmd_pwd.txt" -x -fp "D:\projects\StarFlow Extensions"
echo %errorlevel%


I am unable to capture the variable %errorlevel% into the pandora module.

Any help is appreciated!
Logged

Pages: [1]   Go Up
Print
 
Jump to:  


SourceForge.net Logo  This site is monitored by Pandora FMS   ArticaST