< Back

Clear-PrtgCache

Sun Jan 19, 2020 5:40 pm

NAME Clear-PrtgCache



SYNOPSIS

Clears cached data used by a PRTG Network Monitor server.





SYNTAX

Clear-PrtgCache [-Type] {General | GraphData} [-Force <SwitchParameter>] [<CommonParameters>]





DESCRIPTION

The Clear-PrtgCache cmdlet clears Geo Map, Active Directory authentication and Graph Data details from a PRTG

server. Geo Map and Active Directory authentication caches are grouped together under the General cache type.

Graph Data is cleared separately, under the GraphData cache type.



When Graph Data is cleared, the PRTG Core Service will automatically restart. To prevent this happening

accidentally, Clear-PrtgCache will prompt you to confirm you are sure you wish to proceed. This can be overridden

by specifying the -Force parameter.





PARAMETERS

-Type <SystemCacheType>

The type of cache to clear.



Possible values: General, GraphData



Required? true

Position? 0

Default value General

Accept pipeline input? false

Accept wildcard characters? false



-Force <SwitchParameter>

Forces PRTG to clear caches that may cause a reboot of the PRTG Server without displaying a confirmation

prompt.



Required? false

Position? named

Default value False

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



OUTPUTS



---------- EXAMPLE 1 ----------



C:\\> Clear-PrtgCache General



Clear Geo Map and Active Directory authentication caches.



---------- EXAMPLE 2 ----------



C:\\> Clear-PrtgCache GraphData -Force



Clear PRTG's graph data cache without displaying a confirmation prompt that this will restart the PRTG Core

Service.



RELATED LINKS

Online version: https://github.com/lordmilko/PrtgAPI/wi ... m-caches-1