< Back
Get-LinaAgentStats
Post
NAME Get-LinaAgentStats
SYNOPSIS
Retrieves the agents statistics and advanced information on a Lina server.
SYNTAX
Get-LinaAgentStats [-lina_agent <PSObject>] [-Name <String>] [<CommonParameters>]
Get-LinaAgentStats [-lina_agent <PSObject>] [-ID <Int32>] [<CommonParameters>]
DESCRIPTION
Retrieves the agents statistics and advanced information on a Lina server. Statistics are only available for agent
that have been online at least one time.
PARAMETERS
-lina_agent <PSObject>
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Name <String>
Name of the agent(s) to retrieve. Wilcards are allowed. For example : *DESKTOP*
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ID <Int32>
ID of the agent to retrieve. For example : 134.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
Array of LinaAgentStats Objects
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-LinaAgentStats
Retrieve all agent stats
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-LinaAgentStats | where {$_.LastLogon -like "*mike*"}
Retrieve agent info on agents where mike is logged in.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-LinaAgentStats | where {$_.LastCompletedSession -le (Get-Date).AddDays(-7)}
Retrieve agent info on agents with no completed backups in last 7 days
RELATED LINKS
SYNOPSIS
Retrieves the agents statistics and advanced information on a Lina server.
SYNTAX
Get-LinaAgentStats [-lina_agent <PSObject>] [-Name <String>] [<CommonParameters>]
Get-LinaAgentStats [-lina_agent <PSObject>] [-ID <Int32>] [<CommonParameters>]
DESCRIPTION
Retrieves the agents statistics and advanced information on a Lina server. Statistics are only available for agent
that have been online at least one time.
PARAMETERS
-lina_agent <PSObject>
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false
-Name <String>
Name of the agent(s) to retrieve. Wilcards are allowed. For example : *DESKTOP*
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-ID <Int32>
ID of the agent to retrieve. For example : 134.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
Array of LinaAgentStats Objects
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-LinaAgentStats
Retrieve all agent stats
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Get-LinaAgentStats | where {$_.LastLogon -like "*mike*"}
Retrieve agent info on agents where mike is logged in.
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Get-LinaAgentStats | where {$_.LastCompletedSession -le (Get-Date).AddDays(-7)}
Retrieve agent info on agents with no completed backups in last 7 days
RELATED LINKS