none
UAG: How many active DirectAccess clients? RRS feed

  • Question

  • Hello!

    Does anybody know how to tell how many active DirectAccess clients are currently connected to UAG/DA Server? Web Monitor does not help, because it shows connection statistics only for UAG Portal, if there is any. It would be kind of useful to know the load on the Server etc.

    Is there any other way / tool / script / ... ? Thank you!

    UAG Version: 4.0.1152.100 used mainly as DirectAccess Server


    Lpd

    Monday, September 24, 2012 1:02 PM

Answers

  • Hi,

    You seem to be on UAG Update 1 if I matched your version number correctly.
    The simplest you can do is to upgrade to SP1 to get information of DirectAccess clients in WebMonitor
    (Info: http://technet.microsoft.com/en-us/library/gg295322.aspx )

    For alternative ways to get information based on (for example) active IPSec connections. Read the following threads:
    http://social.technet.microsoft.com/Forums/en-US/winserverNIS/thread/a37b79b9-8d1a-4812-92a2-417e75e57434/
    http://social.technet.microsoft.com/Forums/en/windowsserver2008r2networking/thread/3b622542-e83c-4fae-9b26-b7362bc5ebfc

    Best wishes,
    Jonas Blom


    Jonas Blom | Relevo AB | http://blog.nrpt.se

    Monday, September 24, 2012 1:22 PM
  • A co worker of mine wrote this to do it on our UAG Servers. You will need to replace DomainName with your domain. The get-datotalconnections will give you a count of all users. My favorite is the Get-DAConnectionSummary. It shows how many people you have connected and how they are connected. 

    Count Name
    ----- ----
    350 IP-HTTPS
    483 Teredo
    892 6to4
    2 Native

    Add-PSSnapin UAGDAUserMonitoring
    $DACmdlets = @"
    Get-DAConnectionSummary
    Get-DAUser
    Get-DAClient
    Get-DAConnectionPerServer
    Get-DATotalConnections
    "@

    Write-Host Run Get-DACmdlets to get a list of custom Direct Access commandlets and a brief description of what they do -foregroundcolor yellow
    Write-Host List of Cmdlets: -foregroundcolor yellow
    Write-Host $DACmdlets -foregroundcolor yellow

    Function Get-DACmdlets {
    Write-Host Get-DAConnectionSummary: Returns a summary of transition technologies -foregroundcolor yellow
    Write-Host Get-DAUser: Returns DA information for a specified user -foregroundcolor yellow
    Write-Host Get-DAClient: Returns DA information for a specified client -foregroundcolor yellow
    Write-Host Get-DAConnectionPerServer: Returns number of connections per server -foregroundcolor yellow
    Write-Host Get-DATotalConnections: Returns total number of DA connections -foregroundcolor yellow
    }

    Function Get-DAConnectionSummary {
    Get-DirectAccessUsers | Select TransitionTechnology | Group-Object -Property {$_.TransitionTechnology} | Select Count, Name
    }
    Function Get-DAUser{
    $username = Read-Host 'Enter Username (Example:User)'
    Get-DirectAccessUsers | Where-Object {$_.UserName -eq 'DomainName\'+$username}
    }
    Function Get-DAClient{
    $clientname = Read-Host 'Enter Client Name (Example:POC-2C5V2N1)'
    Get-DirectAccessUsers | Where-Object {$_.ClientName -eq 'DomainName\'+$clientname+'$'}
    }
    Function Get-DAConnectionsPerServer {
    Get-DirectAccessUsers | Group-Object -Property ArrayNode | Format-Table @{Label='Connections';Expression={$_.Count};align='left'},@{Label='Server';Expression={$_.Name};align='left'}
    }
    Function Get-DATotalConnections {
    Get-DirectAccessUsers | Measure-Object | Format-Table @{Label='Total Connections';Expression={$_.Count};align='left'}




    Monday, September 24, 2012 1:43 PM

All replies

  • Hi Damjan,

    U have the direct access active sessions tab in the web monitor, it should tell you how many active connections you have.

    TX

    Zarko

    Monday, September 24, 2012 1:15 PM
  • Hi,

    You seem to be on UAG Update 1 if I matched your version number correctly.
    The simplest you can do is to upgrade to SP1 to get information of DirectAccess clients in WebMonitor
    (Info: http://technet.microsoft.com/en-us/library/gg295322.aspx )

    For alternative ways to get information based on (for example) active IPSec connections. Read the following threads:
    http://social.technet.microsoft.com/Forums/en-US/winserverNIS/thread/a37b79b9-8d1a-4812-92a2-417e75e57434/
    http://social.technet.microsoft.com/Forums/en/windowsserver2008r2networking/thread/3b622542-e83c-4fae-9b26-b7362bc5ebfc

    Best wishes,
    Jonas Blom


    Jonas Blom | Relevo AB | http://blog.nrpt.se

    Monday, September 24, 2012 1:22 PM
  • A co worker of mine wrote this to do it on our UAG Servers. You will need to replace DomainName with your domain. The get-datotalconnections will give you a count of all users. My favorite is the Get-DAConnectionSummary. It shows how many people you have connected and how they are connected. 

    Count Name
    ----- ----
    350 IP-HTTPS
    483 Teredo
    892 6to4
    2 Native

    Add-PSSnapin UAGDAUserMonitoring
    $DACmdlets = @"
    Get-DAConnectionSummary
    Get-DAUser
    Get-DAClient
    Get-DAConnectionPerServer
    Get-DATotalConnections
    "@

    Write-Host Run Get-DACmdlets to get a list of custom Direct Access commandlets and a brief description of what they do -foregroundcolor yellow
    Write-Host List of Cmdlets: -foregroundcolor yellow
    Write-Host $DACmdlets -foregroundcolor yellow

    Function Get-DACmdlets {
    Write-Host Get-DAConnectionSummary: Returns a summary of transition technologies -foregroundcolor yellow
    Write-Host Get-DAUser: Returns DA information for a specified user -foregroundcolor yellow
    Write-Host Get-DAClient: Returns DA information for a specified client -foregroundcolor yellow
    Write-Host Get-DAConnectionPerServer: Returns number of connections per server -foregroundcolor yellow
    Write-Host Get-DATotalConnections: Returns total number of DA connections -foregroundcolor yellow
    }

    Function Get-DAConnectionSummary {
    Get-DirectAccessUsers | Select TransitionTechnology | Group-Object -Property {$_.TransitionTechnology} | Select Count, Name
    }
    Function Get-DAUser{
    $username = Read-Host 'Enter Username (Example:User)'
    Get-DirectAccessUsers | Where-Object {$_.UserName -eq 'DomainName\'+$username}
    }
    Function Get-DAClient{
    $clientname = Read-Host 'Enter Client Name (Example:POC-2C5V2N1)'
    Get-DirectAccessUsers | Where-Object {$_.ClientName -eq 'DomainName\'+$clientname+'$'}
    }
    Function Get-DAConnectionsPerServer {
    Get-DirectAccessUsers | Group-Object -Property ArrayNode | Format-Table @{Label='Connections';Expression={$_.Count};align='left'},@{Label='Server';Expression={$_.Name};align='left'}
    }
    Function Get-DATotalConnections {
    Get-DirectAccessUsers | Measure-Object | Format-Table @{Label='Total Connections';Expression={$_.Count};align='left'}




    Monday, September 24, 2012 1:43 PM
  • Thank you guys! ZarkoC, your answer is true, but like Jonas Blom said, you need at least SP1 for Web Monitor to have DirecAccess Monitor included, which is the reason not having one in my case. I'll try TroydSanchez's script as well, when time will let me.

    Lpd



    Monday, September 24, 2012 3:00 PM