To enable this functionality, you can configure either of the following parameter settings in the
runcmd_env.sh file:
-
SM_AUDIT_CLIENT_ACTIONS=1: Setting this parameter to 1 will enable audit logging for the Smarts Console Gui only. All actions initiated from the Smarts Console will be tracked in the <Domain-NAME>_audit.log file in the <SmartsInstallDir>/local/logs/ directory.
-
SM_AUDIT_ALL_CONNECTIONS=1: Setting this parameter to 1 will enable audit logging for all Smarts clients (Console, dmctl, asl, java..etc). All actions initiated from the Smarts Console will be tracked in the <Domain-NAME>_audit.log file in then<SmartsInstallDir>/local/logs/ directory.
ProcedureTo add the the required setting, do the following:
-
open the runcmd_env.sh configuration file using sm_edit:
./sm_edit conf/runcmd_env.sh
-
Add either of the following lines to the runcmd_env.sh file, depending on your requirements:
SM_AUDIT_CLIENT_ACTIONS=1
SM_AUDIT_ALL_CONNECTIONS=1
-
Restart the Smarts domain to reload the runcmd_env.sh file.
-
Once the domain restarts you will see the following file created:
<Domain-NAME>_audit.log
Audit logging syntax
<Time/Date> <User> <ClientType> <Version> <Client_PID> <Client_IP> <UsernameOnClientMachine> <MachineName> <Operation_Initiated>
Audit logging examples (Smarts console)Get Port instances:
<TimeDate> admin IC Console - V9.2.0.0 6364 1.1.1.1 <UsernameOnClientMachine> My_PC invoke object=DXA_TopologySourceFactory::DXA-TopologySourceFactory oper=getClassSchemaForRelationships args={ Port }
Set Port to Managed state:
<TimeDate> admin IC Console - V9.2.0.0 6364 1.1.1.1 <UsernameOnClientMachine> My_PC invoke object=Port::PORT-1.2.2.2/1.4 oper=manage args={ }
Set Port to Unmanaged state:
<TimeDate> admin IC Console - V9.2.0.0 6364 1.1.1.1 <UsernameOnClientMachine> My_PC invoke object=Port::PORT-1.2.2.2/1.4 oper=unmanage args={ }
Audit logging examples (ASL)
<TimeDate> admin INCHARGE-SA ASL 23567 1.3.3.3 root <MyMachine> invoke object=DXA_TopologySourceFactory::DXA-TopologySourceFactory oper=getTopologyData "args={ VSSChassis, Virtualizes , FALSE }"