-
Notifications
You must be signed in to change notification settings - Fork 52
Get HPOVAuditLog
Get appliance audit log entries.
Get-HPOVAuditLog [-ApplianceConnection] <Object> [<CommonParameters>]
Get-HPOVAuditLog[ [-Count] <Int>][ [-TimeSpan] <Timespan>][ [-Start] <DateTime>][ [-End] <Object>] [<CommonParameters>]
Using this CMDLET will retrive the appliance Audit Log enteries and display them to the console.
-ApplianceConnection <Object>
Aliases [-Appliance]
Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).
Default Value: ${Global:ConnectedSessions} | ? Default
Aliases | Appliance |
Required? | true |
Position? | named |
Default value | (${Global:ConnectedSessions} | ? Default) |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Count <Int>
Specify the number of audit log entries to return.
Aliases | None |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-End <Object>
Specify the End datetime object to begin the serach. Should be combined with Start parameter.
Aliases | None |
Required? | false |
Position? | named |
Default value | [DateTime]::Now |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Start <DateTime>
Specify the Start datetime object to begin the serach. Can be combined with End parameter.
Aliases | None |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-TimeSpan <Timespan>
Specify the time span of to filter results on. Cannot be combined with Start or End.
Aliases | None |
Required? | false |
Position? | named |
Default value | |
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 (http://go.microsoft.com/fwlink/?LinkID=113216)
None. You cannot pipe objects to this cmdlet.
HPOneView.Appliance.AuditLogEntry [System.Management.Automation.PSCustomObject]
Single Appliance Audit Log Entry
System.Collections.ArrayList
Multiple Appliance Audit Log Entries
-------------------------- EXAMPLE 1 --------------------------Get-HPOVAuditLog Appliance : hpov.mydomain.com Date : 2015-10-05 18:14:17.679 UTC Source : AUTHENTICATION Action : LOGIN Result : SUCCESS Severity : INFO Details : Login Message Acknowledgment is "false". Source IP : 172.20.253.1 Appliance : hpov.mydomain.com Date : 2015-10-05 18:14:17.761 UTC Source : AUTHENTICATION Action : LOGIN Result : SUCCESS Severity : INFO Details : Authentication SUCCESS. User "Administrator" logged in successfully from client "172.20.253.1" and directory "LOCAL" on server "". [logID:LTY4ODgyMTcyMTMz] Source IP : 172.20.253.1 Appliance : hpov.mydomain.com Date : 2015-10-05 20:51:45.754 UTC Source : firmware-drivers Action : ADD Result : SUCCESS Severity : INFO Details : Add firmware bundle /rest/firmware-drivers/CP026527
Return the audit logs from the appliance.
-------------------------- EXAMPLE 2 --------------------------Get-HPOVAuditLog -Start ([DateTime]::Now).AddDays("-5")
Return the audit logs from the appliance from 5 days ago from today.
Get appliance audit log entries.
Get-HPOVAuditLog [-ApplianceConnection] <Object> [<CommonParameters>]
Get-HPOVAuditLog[ [-Count] <Int>][ [-TimeSpan] <Timespan>][ [-Start] <DateTime>][ [-End] <Object>] [<CommonParameters>]
Using this CMDLET will retrive the appliance Audit Log enteries and display them to the console.
-ApplianceConnection <Object>
Aliases [-Appliance]
Specify one or more HPOneView.Appliance.Connection object(s) or Name property value(s).
Default Value: ${Global:ConnectedSessions} | ? Default
Aliases | Appliance |
Required? | true |
Position? | named |
Default value | (${Global:ConnectedSessions} | ? Default) |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Count <Int>
Specify the number of audit log entries to return.
Aliases | None |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-End <Object>
Specify the End datetime object to begin the serach. Should be combined with Start parameter.
Aliases | None |
Required? | false |
Position? | named |
Default value | [DateTime]::Now |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-Start <DateTime>
Specify the Start datetime object to begin the serach. Can be combined with End parameter.
Aliases | None |
Required? | false |
Position? | named |
Default value | |
Accept pipeline input? | false |
Accept wildcard characters? | False |
-TimeSpan <Timespan>
Specify the time span of to filter results on. Cannot be combined with Start or End.
Aliases | None |
Required? | false |
Position? | named |
Default value | |
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 (http://go.microsoft.com/fwlink/?LinkID=113216)
None. You cannot pipe objects to this cmdlet.
HPOneView.Appliance.AuditLogEntry [System.Management.Automation.PSCustomObject]
Single Appliance Audit Log Entry
System.Collections.ArrayList
Multiple Appliance Audit Log Entries
-------------------------- EXAMPLE 1 --------------------------Get-HPOVAuditLog Appliance : hpov.mydomain.com Date : 2015-10-05 18:14:17.679 UTC Source : AUTHENTICATION Action : LOGIN Result : SUCCESS Severity : INFO Details : Login Message Acknowledgment is "false". Source IP : 172.20.253.1 Appliance : hpov.mydomain.com Date : 2015-10-05 18:14:17.761 UTC Source : AUTHENTICATION Action : LOGIN Result : SUCCESS Severity : INFO Details : Authentication SUCCESS. User "Administrator" logged in successfully from client "172.20.253.1" and directory "LOCAL" on server "". [logID:LTY4ODgyMTcyMTMz] Source IP : 172.20.253.1 Appliance : hpov.mydomain.com Date : 2015-10-05 20:51:45.754 UTC Source : firmware-drivers Action : ADD Result : SUCCESS Severity : INFO Details : Add firmware bundle /rest/firmware-drivers/CP026527
Return the audit logs from the appliance.
-------------------------- EXAMPLE 2 --------------------------Get-HPOVAuditLog -Start ([DateTime]::Now).AddDays("-5")
Return the audit logs from the appliance from 5 days ago from today.