Smarts Adapter: How to use ASL (Adapter Scripting Language) to write data to a separate file
search cancel

Smarts Adapter: How to use ASL (Adapter Scripting Language) to write data to a separate file

book

Article ID: 304036

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Request to write data to a separate log file using an asl script.

Environment

VMware Smart Assurance - SMARTS

Resolution

How to use Smarts ASL (Adapter Scripting Language) to write data to a separate file
How do I create a separate log file for an adapter using Smarts ASL?

How do I create a separate log file for a Smarts adapter when I do not want to write data in the server log file even though the adapter is running as a process within the server?




To get ASL to write a Smarts adapter log to a file that you designate, create an "object handle" and direct print statements to the object using the ASL writeln method. The following is an example of how this is done:

logfile = create("ACT_File", "ACT-IPDown-File") ? STOP;

logfile->fileName = "test.log";

logfile->writeln("This is a test.") ? LOG;


Please note:  VMware does not support creating or customizing ASL scripts.  Please contact your VMware Account Manager engage Professional Services engagement.