SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Remote Agent as NT service

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Remote Agent as NT service
Author Message
Malcolm Wise



Joined: 26 Jan 2000
Posts: 22

Post Remote Agent as NT service Reply with quote

I have configured a remote agent to run as an NT service, using the service tab in the Preferences/Options dialog. I am using LocalSystem as the service account and have set the service to start automatically. I have also set the service mode to be remote agent. The service starts successfully, but I get connection errors (requested server not active) when testing the connection from the master scheduler. If I start the agent normally (i.e from the Start/Programs menu) I can connect successfully. I had no problems connecting to this agent before I configured it as a service. The master scheduler is not running as a service. If I start 24x7 in normal mode on the same server as the agent is running I get a messagebox saying that the 'The 24x7 service is already running. Click OK to disable the timer and continue or Cancel to exit'. Any ideas?

Fri Jan 28, 2000 5:05 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6499

Post Re: Remote Agent as NT service Reply with quote

This is because of the network access. Using LocalSystem NT starts the agent before logging to the network. So tha agent listener cannot initilize to accept calls. You may use LocalSystem to setup master scheduler to run as a service, but I would not recommend doing so because of many NT limitation that has for various security reasons. The only advantage of the LocalSystem is that the 24x7 service can start without a user logged on.

To make this work you should use a diffrent logon. To do so, logon locally as a LocalSystem, use ControlPanel Services applet to stop and remove the 24x7 service then you can setup it again under a different account.

: I have configured a remote agent to run as an NT service, using the service
: tab in the Preferences/Options dialog. I am using LocalSystem as the
: service account and have set the service to start automatically. I have
: also set the service mode to be remote agent. The service starts
: successfully, but I get connection errors (requested server not active)
: when testing the connection from the master scheduler. If I start the
: agent normally (i.e from the Start/Programs menu) I can connect
: successfully. I had no problems connecting to this agent before I
: configured it as a service. The master scheduler is not running as a
: service. If I start 24x7 in normal mode on the same server as the agent is
: running I get a messagebox saying that the 'The 24x7 service is already
: running. Click OK to disable the timer and continue or Cancel to exit'.
: Any ideas?

Fri Jan 28, 2000 11:55 am View user's profile Send private message
Malcolm Wise



Joined: 26 Jan 2000
Posts: 22

Post Re: Remote Agent as NT service Reply with quote

There is no 'remove service' option in control panel/services. Why do I need to remove it? Shouldn't I be able to use the service startup options to change logon credentials? I have tried to re-configure it using the Options/Services tab in 24x7 (unchecking the 'run 24x7 as an NT service' option, but on saving I get an 'error deleting service - access denied' message. If I stop and restart the service manually (having changed the startup parameters to use the network domain administrator account) should it not then be able initialize the listener, as the machine is logged on to the network already. I am logged onto the NT server running the agent as domain administrator.

: This is because of the network access. Using LocalSystem NT starts the agent
: before logging to the network. So tha agent listener cannot initilize to
: accept calls. You may use LocalSystem to setup master scheduler to run as
: a service, but I would not recommend doing so because of many NT
: limitation that has for various security reasons. The only advantage of
: the LocalSystem is that the 24x7 service can start without a user logged
: on.

: To make this work you should use a diffrent logon. To do so, logon locally as
: a LocalSystem, use ControlPanel Services applet to stop and remove the
: 24x7 service then you can setup it again under a different account.

Mon Jan 31, 2000 5:47 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6499

Post Re: Remote Agent as NT service Reply with quote

Because, NT let's you easily setup new service using LocalSystem but does not let you remove or change it unless you are loggged in as a LocalSystem (not domain admin, but "LocalSystem"). To bypass this limitation and remove the service after you stop it, you can simply remove all service references from the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\24x7 key.

For other accounts you should be able to use the service startup options to
change logon credentials.

: There is no 'remove service' option in control panel/services. Why do I need
: to remove it? Shouldn't I be able to use the service startup options to
: change logon credentials? I have tried to re-configure it using the
: Options/Services tab in 24x7 (unchecking the 'run 24x7 as an NT service'
: option, but on saving I get an 'error deleting service - access denied'
: message. If I stop and restart the service manually (having changed the
: startup parameters to use the network domain administrator account) should
: it not then be able initialize the listener, as the machine is logged on
: to the network already. I am logged onto the NT server running the agent
: as domain administrator.

Mon Jan 31, 2000 9:28 am View user's profile Send private message
Malcolm Wise



Joined: 26 Jan 2000
Posts: 22

Post Re: Remote Agent as NT service Reply with quote

OK, I've managed to remove the service and re-define it to logon as domain administrator (logon is \Administrator). The service starts OK on re-booting the server, but I still can't get a connection from the Master Scheduler (requested server not active message). I've tried stopping and restarting the service but I still cannot get a connection.

: Because, NT let's you easily setup new service using LocalSystem but does not
: let you remove or change it unless you are loggged in as a LocalSystem
: (not domain admin, but "LocalSystem"). To bypass this limitation
: and remove the service after you stop it, you can simply remove all
: service references from the
: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\24x7 key.

: For other accounts you should be able to use the service startup options to
: change logon credentials.

Tue Feb 01, 2000 5:48 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6499

Post Re: Remote Agent as NT service Reply with quote

Try setting Agent Profile Connect Options to "MaxRetry=n". If it does not help, please email trace files (both MASTER.LOG and AGENT.LOG from both master and agent computers) to support@softtreetech.com so we can find out when and where it fails.

: OK, I've managed to remove the service and re-define it to logon as domain
: administrator (logon is \Administrator). The service starts OK on
: re-booting the server, but I still can't get a connection from the Master
: Scheduler (requested server not active message). I've tried stopping and
: restarting the service but I still cannot get a connection.

Tue Feb 01, 2000 1:00 pm View user's profile Send private message
Tom Smit



Joined: 26 Jan 2000
Posts: 21

Post Re: Remote Agent as NT service Reply with quote

I've found that 24x7 just plain WON'T run in agent mode as a service. It just doesn't work. I've set it up correctly (according to the limited documentation that was shipped with the product) but it's not running the Agent. 24x7 IS running, it's it native mode though. Is there a work around for this?

Sat Feb 19, 2000 4:50 pm View user's profile Send private message
Derek Yung



Joined: 18 Apr 2000
Posts: 15

Post Re: Remote Agent as NT service Reply with quote


Did anyone figure how to fix this problem afterall??? I'm having the exact same symptoms as described by the chain of postings. Basically, I can start the agent from the DOS prompt or start menu and everything works. However, when I change the settings to have it installed as a service, it doesn't work. I am using my login, not the LocalSystem. Also, I've found that the password set for the service is not correct and I need to manually change it to the correct one. Moreoever, the service is always setup as "Automatic" regardless what option is chosen in Scheduler.

One more clue: When I look at the different processes running, I notice that when it's run as a service, there's a "24x7srv.exe" running in addition to the "24x7.exe". I don't see the "24x7srv.exe" when running normally.

Any help would be good. Thanks.

Derek

: Try setting Agent Profile Connect Options to "MaxRetry=n". If it
: does not help, please email trace files (both MASTER.LOG and AGENT.LOG
: from both master and agent computers) to support@softtreetech.com so we
: can find out when and where it fails.

Thu Apr 20, 2000 5:48 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6499

Post Re: Remote Agent as NT service Reply with quote

The 24x7.exe has the job engine and knows how to do many other things.
The 24x7srv.exe is the service entrace module that interfaces and comunicates with the operation system and also makes calls to 24x7.exe.

If you run second instance of the 24x7 (standalone version) while 24x7 agent is running as a service, can you submit jobs to that local agent? If yes, then you should be able to submit them from anywhere, from any computer on the same network.

: Did anyone figure how to fix this problem afterall??? I'm having the exact
: same symptoms as described by the chain of postings. Basically, I can
: start the agent from the DOS prompt or start menu and everything works.
: However, when I change the settings to have it installed as a service, it
: doesn't work. I am using my login, not the LocalSystem. Also, I've found
: that the password set for the service is not correct and I need to
: manually change it to the correct one. Moreoever, the service is always
: setup as "Automatic" regardless what option is chosen in
: Scheduler.

: One more clue: When I look at the different processes running, I notice that
: when it's run as a service, there's a "24x7srv.exe" running in
: addition to the "24x7.exe". I don't see the
: "24x7srv.exe" when running normally.

: Any help would be good. Thanks.

: Derek

Thu Apr 20, 2000 8:20 am View user's profile Send private message
Derek Yung



Joined: 18 Apr 2000
Posts: 15

Post Re: Remote Agent as NT service Reply with quote


OK. I think I'm starting to put everything together now but it still doesn't work. This is a big deal for us. We want to go with this product (site license) but this is a show-stopper if we can get it to work.

Here's the deal. When the service is installed, it's installed with the correct AppParameters (seen by registry key) of "/AGENT /SERVICE". However, the service seems to be ignoring the parameters! I know that because when I tried to startup the scheduler, I get the "24x7 service is already running. Press OK to disable timer..." message. Moreover, I can start the agent on the DOS prompt and have it work along side with the scheduler running as a service.

I tried just putting the parameters in the ImagePath along side the executable in the registry, but same result.

I noticed this in the bug log:

Symptom: 24x7 Remote Agent does not start in the "agent" mode when setup to run as a Windows NT service.
Status: Fix pending in v2.0.1
Workaround: Place shortcut to the 24x7 Remote Agent icon to the Windows NT StartUp folder .

And I noticed this in the 2.0.1's whatsnew.txt:

24x7 Scheduler v2.0.1 - Maintenance release
===================================================================
1. Fixed problems with starting 24x7 Scheduler service in

the 24x7 Remote Agent mode on Windows NT/2000

So, is this the problem that should have been fixed in 2.0.1??? I'm running NT 4.0 with SP4.

Any help would be useful. Thanks.

Derek

: The 24x7.exe has the job engine and knows how to do many other things.
: The 24x7srv.exe is the service entrace module that interfaces and comunicates
: with the operation system and also makes calls to 24x7.exe.

: If you run second instance of the 24x7 (standalone version) while 24x7 agent
: is running as a service, can you submit jobs to that local agent? If yes,
: then you should be able to submit them from anywhere, from any computer on
: the same network.

Thu Apr 20, 2000 11:06 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6499

Post Re: Remote Agent as NT service Reply with quote

v2.0.1 is available for awhile and since Monday there is already v2.1.1.
You can download it from http://www.SoftTreeTech.com/24x7/

: OK. I think I'm starting to put everything together now but it still doesn't
: work. This is a big deal for us. We want to go with this product (site
: license) but this is a show-stopper if we can get it to work.

: Here's the deal. When the service is installed, it's installed with the
: correct AppParameters (seen by registry key) of "/AGENT
: /SERVICE". However, the service seems to be ignoring the parameters!
: I know that because when I tried to startup the scheduler, I get the
: "24x7 service is already running. Press OK to disable timer..."
: message. Moreover, I can start the agent on the DOS prompt and have it
: work along side with the scheduler running as a service.

: I tried just putting the parameters in the ImagePath along side the
: executable in the registry, but same result.

: I noticed this in the bug log: Symptom: 24x7 Remote Agent does not start in
: the "agent" mode when setup to run as a Windows NT service.
: Status: Fix pending in v2.0.1
: Workaround: Place shortcut to the 24x7 Remote Agent icon to the Windows NT
: StartUp folder .

: And I noticed this in the 2.0.1's whatsnew.txt: 24x7 Scheduler v2.0.1 -
: Maintenance release
: ===================================================================
: 1. Fixed problems with starting 24x7 Scheduler service in

: the 24x7 Remote Agent mode on Windows NT/2000

: So, is this the problem that should have been fixed in 2.0.1??? I'm running
: NT 4.0 with SP4.

: Any help would be useful. Thanks.

: Derek

Thu Apr 20, 2000 11:45 pm View user's profile Send private message
Derek Yung



Joined: 18 Apr 2000
Posts: 15

Post Re: Remote Agent as NT service Reply with quote


I installed v2.1.1 and had the same problem.

Any other ideas?

Derek

: v2.0.1 is available for awhile and since Monday there is already v2.1.1.
: You can download it from http://www.SoftTreeTech.com/24x7 /

Fri Apr 21, 2000 1:54 am View user's profile Send private message
Derek Yung



Joined: 18 Apr 2000
Posts: 15

Post Re: Remote Agent as NT service Reply with quote

FYI on the resolution on this... A very supportive tech rep was able to provide a patch for "24x7srv.exe" with this explanation:

"...The attached version of the 24x7 service control module reads settings directly from the registry and thus for the service startup parameters it does not rely on the NT Service Control Manager..."

It's not clear why I needed this patch and he didn't since we had the same machine configuration. Regardless, it was very, very nice to get 1-on-1 support and a complete resolution with a patch! I've worked with numerous vendors (many multi-million $ companies) and they don't offer support like this!

: I installed v2.1.1 and had the same problem.

: Any other ideas?

: Derek

Thu Apr 27, 2000 11:59 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.