0 votes

Hello,

Can you tell me how I might be able to increase the timeout setting in the Adaxes Web Interface?

We have a couple Custom Commands that take a little while to execure due to the size of the environment and the Web Interface is timing out before the tasks can complete.

by (350 points)

1 Answer

0 votes
by (216k points)

Hello Michael,

All the actions that you can perform from Custom Commands have the option to be executed asynchronously. To resolve the issue, you can identify the actions that cause issues and enable the Execute asynchronously option for these actions.

However, you should keep in mind that when an action is executed asynchronously, the user initiating it will not be able to see the result of the operation. For example, if an error occurs and an operation fails, the user will not see the error and will not take appropriate action. To remedy this, error reporting needs to be performed a bit differently. If such actions to be executed asynchronously are PowerShell scripts, you can do this directly in the script.

To set up an action to be performed asynchronously:

  1. Launch Adaxes Administration Console.
  2. In the Console Tree, expand the service node that represents your service.
  3. Navigate to Configuration \ Custom Commands.
  4. Locate the Custom Command that causes the issue and select it.
  5. In the result pane (located on the right) you will see a set of actions and conditions of this Custom Command. Double-click an action that takes a long time to complete.
  6. In the dialog box that appears, check the Execute asynchronously option.
  7. Click OK.
  8. Click Save changes.
0

While this solution resolves the timeout issue, it does not display the results of the query from the Custom Command. We need to be able to view the results in the Web Interface.

This is the script I'm attempting to run. It worked well in our test environment, but the prod environment is larger and takes longer for the script to return results.

add-pssnapin Microsoft.Exchange.Management.PowerShell.E2010
(Get-MailboxDatabase) | ForEach-Object {
$message = $_.Name + ": " + (Get-Mailbox -Database $_.Name).Count
$Context.LogMessage($message, "Information")
}

0

Hello,

Try the script below. It uses Adaxes ADSI provider to get the information you need. It must work significantly faster.

$admNS = New-Object "Softerra.Adaxes.Adsi.AdmNamespace"
$admService = $admNS.GetServiceDirectly("localhost")

# Get information about all AD domains managed by Adaxes
$managedDomains =  $admService.GetManagedDomains()
foreach ($managedDomainInfo in $managedDomains)
{
    if (-not($managedDomainInfo.IsExchangeSupported))
    {
        continue # there are no Exchange servers in the domain
    }
    # Bind to the managed domain
    $managedDomainsPath = $admService.Backend.GetConfigurationContainerPath("ManagedDomains")
    $managedDomainsPathObj = New-Object "Softerra.Adaxes.Adsi.AdsPath" $managedDomainsPath
    $domainPath = $managedDomainsPathObj.CreateChildPath("DC=" + $managedDomainInfo.Name)
    $domain = $admService.OpenObject($domainPath, $NULL, $NULL, 0)

    # Get Exchange servers installed in the domain
    $exchangeServers = $domain.FindAvailableExchangeServers()
    foreach ($server in $exchangeServers)
    {
        $mailboxDatabases = $server.GetMailboxStorageDatabases()
        foreach ($mailboxDB in $mailboxDatabases)
        {
            $message = $mailboxDB.DatabaseName + ": " + $mailboxDB.CalcNumberOfMailboxes()
            $Context.LogMessage($message, "Information")
        }
    }
}
0

This did the trick! Thanks for helping out!

Related questions

0 votes
1 answer

What is the correct way to increase the timeout for web user interfaces?

asked Jan 20, 2014 by BradG (950 points)
0 votes
1 answer

Try to look into extending the timeout of the web interface on Adaxes

asked Jul 7, 2022 by Vish539 (460 points)
0 votes
1 answer

How to extend the timeout on the web portal pages, our users on our Hepldesk go call to call to troubleshoot issues, but each time they have to relogin to the portal page each time. Is there a way to extend this time and if so how. Thanks, Tony

asked May 29, 2014 by babbeaw (320 points)
0 votes
1 answer

I want to be able to create a custom action that allows, via the web interface, a user to increase the size of his/her own mailbox by say 10% or 20%. What would be the best way to go about this?

asked Jul 15 by dominik.stawny (280 points)
0 votes
1 answer

Hi, is it possible to increase mouseover popup limit from 5 to 6? We need to add one more attribute.

asked Apr 9, 2020 by KIT (960 points)
3,572 questions
3,261 answers
8,277 comments
547,996 users