Published on :
Administration INTERNAL_CREATION

CAS Disk Cache Monitoring

This code is also available in: Deutsch Español Français
Awaiting validation
Attention : This code requires administrator privileges.
This script connects to a specific CAS server, elevates the session privileges to 'superuser' to access system information, and retrieves disk cache usage statistics via the 'getCacheInfo' action.
Data Analysis

Type : INTERNAL_CREATION


The data comes from the CAS server's system information (builtins.getCacheInfo) and does not depend on external data sources.

1 Code Block
CAS STATEMENT
Explanation :
Connects to a CAS session named 'MonitorCDC' on a specific host and port.
Copied!
1cas MonitorCDC cashost="intcas01.race.sas.com" casport=5570;
2 
2 Code Block
PROC CAS Data
Explanation :
CASL block: Assumes administrator role, executes the 'getCacheInfo' action to retrieve cache status, and displays the results (diskCacheInfo table).
Copied!
1PROC CAS;
2 SESSION MonitorCDC;
3 ACCESSCONTROL.assumeRole / adminRole="superuser";
4 BUILTINS.getCacheInfo RESULT=results;
5 describe results;
6RUN;
7 
8PRINT results.diskCacheInfo;
9RUN;
10 
11QUIT;
3 Code Block
CAS STATEMENT
Explanation :
Terminates the CAS session.
Copied!
1cas MonitorCDC terminate;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.