UNC and RMA : 301

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Baptiste
Posts: 15
Joined: Thu Mar 13, 2008 7:44 am
Location: Le Havre, France

UNC and RMA : 301

Post by Baptiste »

Hello,
I use check UNC test and send e-mail alert when free space is less than 10%. It work well on several servers but on a server status's test is unknown and reply is "RMA : 301- A specified logon session does not exist. It may already have been terminated"

Regards.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Could you provide more information, please?
- What Windows do you use? Service Pack?
- What version of RMA do you use?
- Is RMA started as a service or as an application?
- What account do you use to start RMA?

Please ensure, the account, you have specified to start RMA, has the following privileges ("Local Policy" applet):

1. Act as part of operating system
2. Log on as batch
3. Log on as service
4. Increase quotas (Windows 2003 - adjust memory quotas)
5. Create a token object
6. Replace a process level token

Also, please verify the only one instance of HostMonitor is running on the system. How many hostmon.exe process do you see in "Task Managr" -> "Processes" tab?

"Connection Manager" window offers you the two connection methods in "Method" dropdown. Please, specify "Reconnect if necessary" item, if "Keep active connection" is already specified.
Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... htm#conmgr
=================================================
Method
This parameter defines HostMonitor's behavior in case when the connection with specified remote system is already established but with different (than specified) account. Choose one of the options:

* Keep active connection
* Reconnect if necessary

With the 1st option selected HostMonitor will not drop current connection and will not establish another one. This method is guaranteed to not interfere with other applications or users already using the same connection. But on the other hand if an account that is used for connection does not have all required permissions the test may fail.
With 2nd option selected, Connection Manager will drop current connection and establish new one using specified account.
=================================================

Regards,
Max
Baptiste
Posts: 15
Joined: Thu Mar 13, 2008 7:44 am
Location: Le Havre, France

Post by Baptiste »

We use :
-windows server 2000 SP4
-RMA 3.38started as service with local system account
-hostmonitor connect as admin server for UNC test
-hostmonitor 7.20

one instance of HostMonitor is running on the system
I specified "reconect if necessary" in "connection manager"

Sometimes, we have reply "RMA : 301-The networck BIOS session limit was exceeded"


Regards.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

How many UNC test methods are performed by this particular RMA?
I think, you should adjust TCP/IP settings on the machine, where RMA is running. You may start from the following settings:

Code: Select all

Increase the Maximum Simultaneous Connections

1. Start the Registry Editor (Regedt32.exe)

2. Access the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

3. Add a DWORD value to this registry key:
Name: MaxUserPort
Type: DWORD
Value: 65534 (decimal)

4. Exit the Registry Editor.

Reduce the Duration of the Reserved State

Reducing the value of the TIME_WAIT state results in TCP connections being reused faster, therefore allowing for an increased number of connections during the same length of time. Note that if the value is too low, the TCP connection may close before Monitor testing is complete.

To reduce the duration of the reserved state:

1. Start the Registry Editor (Regedt32.exe)

2. Access the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

3. Add a DWORD value to this registry key:
Name: TCPTimedWaitDelay
Type: REG_DWORD - Time in seconds
Value: 120 (decimal)

4. Exit the Registry Editor.
For additional information, you may read this post: http://www.ks-soft.net/cgi-bin/phpBB/vi ... php?t=4521
Baptiste wrote:Sometimes, we have reply "RMA : 301-The networck BIOS session limit was exceeded"
Hm. Do you use any mapped drive letters in UNC tests? We recommed to use UNC path instead of mapped drives, e.g.: \\Server\Somefolder instead of P:\SomeFolder

Regards,
Max
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

-RMA 3.38started as service with local system account
-hostmonitor 7.20
HostMonitor version 7.20 comes with RMA version 3.68. Please update agent

Regards
Alex
Baptiste
Posts: 15
Joined: Thu Mar 13, 2008 7:44 am
Location: Le Havre, France

Post by Baptiste »

KS-Soft Europe wrote:How many UNC test methods are performed by this particular RMA?
3 UNC tests
KS-Soft Europe wrote:Do you use any mapped drive letters in UNC tests? We recommed to use UNC path instead of mapped drives, e.g.: \\Server\Somefolder instead of P:\SomeFolder
we use \\Server\c$

We will update RMA 3.38 => 3.68 this afternoon and will try to adjust TCP/IP settings on the machine

Regards.
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: UNC and RMA : 301

Post by KS-Soft Europe »

Baptiste wrote:A specified logon session does not exist. It may already have been terminated"
This error may appear if you specify "Administrator" as username. Could you try another user for UNC tests?

Also, RMA service should be started under admins account, probably you have to specify Domain admin account for the RMA service to make it work properly on Windows 2000.

Beside that, as I wrote above, account you have specified for RMA service, should be granted with the following privileges:
1. Act as part of operating system
2. Log on as batch
3. Log on as service
Have you check that? Could you also assign these privileges to the account, you have specified for UNC tests?

Regards,
Max
Baptiste
Posts: 15
Joined: Thu Mar 13, 2008 7:44 am
Location: Le Havre, France

Re: UNC and RMA : 301

Post by Baptiste »

KS-Soft Europe wrote:Beside that, as I wrote above, account you have specified for RMA service, should be granted with the following privileges:
1. Act as part of operating system
2. Log on as batch
3. Log on as service
Have you check that? Could you also assign these privileges to the account, you have specified for UNC tests?
Yes.

I made several tests in order to find more informations.
It seems that is a RMA service problem.
We test UNC with registy keys added but it change nothing, after we deleted these keys.
When I running RMA as application UNC test work well. Then when I running RMA as service the test failed. We have checked RMA log and reply is connection established.



And finaly we modified the UNC path \\server\c$ to \\127.0.0.1\c$ with running RMA in service mode and it work now :lol:
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: UNC and RMA : 301

Post by KS-Soft Europe »

Baptiste wrote:When I running RMA as application UNC test work well. Then when I running RMA as service the test failed. We have checked RMA log and reply is connection established.
What account do you use to start RMA service? We recommend to use admins account.
Looks like it some Windows problems. As you may see, there were a lot of similar posts regarding Windows 2000 several years ago. Windows 2003 seems to work fine with that stuff.
Baptiste wrote:And finaly we modified the UNC path \\server\c$ to \\127.0.0.1\c$ with running RMA in service mode and it work now :lol:
Glad to heart that :-)

Regards,
Max
Post Reply