This release note and the software that accompanies it are (c)Copyright 2024
Broadcom Inc or its suppliers, and may only be installed and used in accordance
with the license that accompanies the software. All rights reserved.

This Software is furnished under license and may only be used or copied in accordance with
the terms of that license. No license, express or implied, by estoppel or otherwise,
to any intellectual property rights is granted by this document. The Software is subject
to change without notice, and should not be construed as a commitment by Broadcom Inc
or its suppliers to market, license, sell or support any product or technology.
Unless otherwise provided for in the license under which this Software is provided,
the Software is provided AS IS, with no warranties of any kind, express or implied.
Except as expressly permitted by the Software license, none of its suppliers assumes any
responsibility or liability for any errors or inaccuracies that may appear herein.
Except as expressly permitted by the Software license, no part of the Software may be
reproduced, stored in a retrieval system, transmitted in any form, or distributed by any
means without the express written consent of Broadcom Inc.

=====================
Supported Controllers
=====================
Broadcom 3916 SAS3/PCIe4 Tri-mode RAID on Chip, SAS 3516 Ventura based MegaRAID and iMR, SAS 3108 (Invader) based MegaRAID and iMR, SAS 3008 (Fury) based HBAs,
Wellsburg & Lewisburg SATA chipset based Software RAID, SAS3816 based IOC, SAS3808 based IOC, SAS3008 based HBAs, Initiator-Target 3 (IT3) controller
9660 Family RAID Adapters, 9670 Family RAID Adapters, 9600 Family eHBA Adapters, 9620 Family eHBA Adapters

====================
Package Information
====================
LWM version = 008.012.007.000
Language(s) supported = English
OS supported = Windows Server 2019 RS5 (LTSC), Windows Server 2022, Windows Server 2025, Windows 10 Client(RS5), Windows 10 22 H2 Client, Windows 11 23H2 Client, Windows 11 24H2 Client.
This package can be installed on x64 system (or) Platform.

=======================
Contents of the package
=======================
This package includes setup file for Windows along with the SetupPrerequisites.

===================
Pre-Requisites
===================
1.   LWM supports SMTP authorization using Auth Login. In this case user should configure LightWeightMonitor with SMTP credentials in config-current.json file
2.   LSA would install the following pre-requisites if not already installed.
       Microsoft Visual C++ 2010  x64 Redistributable  10.0.40219.1
       Microsoft Visual C++ 2015 Redistributable (x64) - 14.0.24212

=========================
Known Restrictions/Issues
=========================
1. LWM is limited to log the history of persistent events only for IR/IT Controller. 
2. "Modify" or "Repair" option for the existing "setup.exe" will not work. So user(s) has to un-install and install the build instead of using the "Modify" or "Repair" option.
3. Intermittent behavior with syslog - the description of AENs/events contain additional text such as "The description for Event ID xxx from source LSA_MONITOR cannot be found". User can ignore the additional caution.

=========================
Installation Instructions
=========================
See Detailed installation instructions below:

1.Log in to the system as an administrator or as a user with administrative privileges.
  Depending on the operating system and security settings, it may be necessary to 
  Install LWM using administrative rights. This may require that, log in as administrator and run the installer,
  or open a command prompt as administrator and run the installer via the command line,
  or right click on the Setup.exe and select "Run As Administrator".

2. Extract the contents of the ZIP file and run Setup.exe from the Disk1 folder.
   
3. When LWM is Installed, user cannot perform installation of LSA. Needs to do complete un-installation of LWM and then Install LSA.
   When LSA is Installed, user cannot perform installation of LWM. Needs to do complete un-installation of LSA and then Install LWM.
   
=================================
Silent Installation Instructions
=================================
To install LSA product in a non-interactive or silent mode, the user should use the following commands.

1. If VC Redist 2010 is not installed in the Server, please follow the Step#2 for installing the same.
   If already installed please follow the step#3.
2. Install the VC Redist Package from command line "vcredist_x86.exe /Q",
   vcredist_x86.exe is available in <Package_Dir>\ISSetupPrerequisites\{270b0954-35ca-4324-bbc6-ba5db9072dad}\VC Redist 2010 Installation.
3. Here is the steps that user needs to perform the mode of installation of his choice, with the default directory provided by LSA

	1)setup.exe /s /v"/qn ADDLOCAL=LightWeightMonitor INSTALLATIONCHOICES=129 EVENTNOTIFICATIONCHOICES=3"
	
	EVENTNOTIFICATIONCHOICES options:
	0=Since Last Shutdown
	1=Since Last Clear
	2=Since Last Reboot
	3=Since Newest
	
	If user wants to change from the default directory structure, needs to provide the below input also with each and every mode of installation	

	For Ex: Setup.exe /s /v"/qn ADDLOCAL=LightWeightMonitor INSTALLATIONCHOICES=129 INSTALLDIR=CustomDirecotryLocation"
5. When LWM is Installed, user cannot perform installation of LSA. Needs to do complete un-installation of LWM and then Install LSA.

Remarks:
1. If user tries to install the same version of the build again when the build is already installed, the behavior can be erratic. Recommendation would be to un-install and install the build to make any changes to the existing installer.
==============================
Upgrade/Downgrade Instructions
===============================
1. User can upgrade/downgrade to the same mode of installation to which he performed with earlier build.
2. During the upgrade/downgrade user can move from one mode of installation to another mode of installation.
3. When LWM is Installed, user cannot perform upgrade/downgrade from LWM to LSA. Needs to do complete un-installation of LWM and then Install LSA

Note: If user has placed/copied any file(s) manually in the <LSA_HOME> directory, those files needs to be manually removed before the un-installation.
	  If the file(s) has not been removed, LWM Upgrade will not be clean.
   
===========================
Silent Upgrade Instructions
===========================
1. User(s) needs to follow the below instructions for the Silent Upgrade of LWM, if the installation is performed with the default directory provided by LSA

	1)setup.exe /s /v"/qn ADDLOCAL=LightWeightMonitor INSTALLATIONCHOICES=129 EVENTNOTIFICATIONCHOICES=3"
	
	EVENTNOTIFICATIONCHOICES options:
	0=Since Last Shutdown
	1=Since Last Clear
	2=Since Last Reboot
	3=Since Newest  

	If LWM has been installed in custom directory instead of the default directory structure,needs to provide the below input also with each and every mode of installation	

	For Ex: setup.exe /s /v"/qn ADDLOCAL=LightWeightMonitor INSTALLATIONCHOICES=129 INSTALLDIR=CustomDirectoryLocation"
	
2. When LWM is Installed, user cannot perform upgrade from LWM to LSA. Needs to do complete un-installation of LWM and then Install LSA

Remarks:
1. If user tries to install the same version of the build again when the build is already installed, the behavior can be erratic. Recommendation would be to un-install and install the build to make any changes to the existing installer.

===========================
Un-installation Instructions
===========================
1. LWM can be removed/un-install from Add/Remove Program menu.

Note: If user has placed/copied any file(s) manually in the <LSA_HOME> directory, those files needs to be manually removed before the un-installation.
	  If the file(s) has not been removed, LWM Un-installation will not be clean.

===================================
Silent Un-installation Instructions
===================================
Please perform the below steps for the Silent Un-Installation of LWM

msiexec.exe /x productcode /qn

productcode value is nothing but the value present in the <LSA_HOME_PATH/productcode.txt> file.

For ex: msiexec.exe /x {20660CCB-7C70-4D61-8D18-FB7FA3C476C9} /qn

Note: If user has placed/copied any file(s) manually in the <LSA_HOME> directory, those files needs to be manually removed before the un-installation.
	  If the file(s) has not been removed, LWM un-installation will not be clean.

=========================
Supported Functionalities
=========================
1. SystemLog (OS Level Log - Location: EventViewer)
  By default all the severity events will log in the SystemLog. You can change this default option and 
  can configure to log / don't log only particular severity's events or particular event.
  Refer "How to configure LightWeightMonitor Agent" for more details
  
2. E-mail notification (Notification using SMTP server)
  By default Fatal events will notify via e-mail. You can change this default option and can configure 
  to log / don't log only particular severity's events or particular event.
  Refer "How to configure LightWeightMonitor Agent" for more details
  
3. Single / Multiple recipients
  By default LightWeightMonitor sends the e-mail notification to the configured recipients. The recipients informations
  based on your SMTP configuration. Refer "How to configure LightWeightMonitor Agent" for how to add one or more 
  recipient addresses on LightWeightMonitor
  
4. Auth Login (authorization protocols)
  LightWeightMonitor supports one of the SMTP authorization protocols called Auth Login. If your SMTP server configured with
  Auth Login support then need to enable the LightWeightMonitor with login speific informations.
  Refer "How to configure LightWeightMonitor Agent" for more details
  
5. System and Controller specific information
  In addition to the e-mail notification support, LightWeightMonitor sends System and Controller specific information as
  part of e-mail body. These informations are helpful to identify the server and it's controller's details.
  In addition to the event's description the below informations are available in e-mail body:
    i) IP Address
    ii) Driver Name 
    iii) Driver Version 
    iv) OS Name 
    v) OS Version
    vi) Firmware Version
    vii) BIOS Version
    viii) Firmware Package Version
    
6. Time Synch
  There is a chance of mismatch between Controller time and OS time during DST or known lower layer limitations. 
  In this case timestamp will be different on IO. LightWeightMonitor resolve this limitation by synch the OS time and Controller
  time on every one hour

=============
How to Rekey
=============
LSA mainatains the sensitive data in encrypted format. To encrypt, LSA uses AES algorithm with key pair.
If user wants to periodically change the key pair, follow the below steps.

3. Stop the LSA service
  i) Launch Command Prompt in Windows
  ii) Stop LSA service by executing the command -> sc stop LSAService
   
2. Execute rekey command in the Command Prompt (Make sure user having the admin privilege - for non admin user, result may unexpected)
   >$LSA_HOME/LSA.exe -rekey
   
3. LSA automatically delete the old keys and encrypt the sensitive data with new key pair

4. Start the LSA service
  i) Launch Command Prompt in Windows
  ii) Start LSA service by executing the command -> sc start LSAService
  
==========================================
How to configure LightWeightMonitor Agent
==========================================
Except config-current.JSON none of the file shouldn't be edit by user from LightWeightMonitor package.
The configuration for LightWeightMonitor can be done on config-current.JSON, which is packaged with write permission.

Basic understanding about config file:
--------------------------------------
1. Different alert actions:
  i) email
  ii) systemlog

2. Different severity level
  i) INFO - Informational message where no user action is necessary
  ii) WARNING - when a component is close to failure point
  iii) CRITICAL - when a component fails
  iv) FATAL - when a component fails and data loss occurs
  v) FAULT / DEAD - The controller faulted due to a catastrophic error

3. Global rule (default alert actions for different severity of an event1)
  i) INFO event - systemlog
  ii) WARNING - systemlog
  iii) CRITICAL - systemlog
  iv) FATAL / FAULT / DEAD - systemlog and email

4. global (apply global rule for that particular severity event)


Start Configuration:
--------------------
1. After installing the LightWeightMonitor in Windows platform, this will be installed in below mentioned path.
  [ProgramFilesFolder]\LSI\LSIStorageAuthority

2. Go to the path to monitor under [ProgramFilesFolder]\LSI\LSIStorageAuthority\conf
  [ProgramFilesFolder]\LSI\LSIStorageAuthority\conf\monitor
  
3. Stop the LightWeightMonitor service
  i) Launch Command Prompt in Windows
  ii) Stop LightWeightMonitor service by executing the command -> sc stop LSAService

4.Make the required changes in below file under monitor
  Open config-current.JSON file in any editor

5. Changes to be made in "config-current.JSON" file:

  I) E-mail Configuration:

    default:
	  "email": {
                    "isActive": true,
                    "type": "EMAIL",
                    "sender": "lsa-monitor@server.com",
                    "server": "127.0.0.1",
                    "to": [
                        "root@localhost"
                    ],
                    "authentication": {
                        "type": "NONE"
                    }
                }

	updated:
	  "email": {
                    "isActive": true,
                    "type": "EMAIL",
                    "sender": "lsa-monitor@server.com",
                    "server": "135.24.227.243",
                    "to": [
                        "root@localhost"
                    ],
                    "authentication": {
                        "type": "NONE"
                    }
                }


  II) Change alert actions for specific Severity
    default:
      {
        "warning": [
          "systemmessage"
        ]
      },
    example change to:
      {
        "warning": [
          "systemmessage",
          "email"
        ]
      },

  III) Change alert actions and severity for specific Event
    default:
      "events": [
		"gen7": [],
		"gen8": []
	  ]
    example change to:
      "events": {
        "gen7": [
          {
            "typeId": 4,
            "severity": "DEAD",
            "actions": [
              "systemmessage"
            ]
          }
        ],
        "gen8": [
          {
            "typeId": 4,
            "severity": "CRITICAL",
            "actions": [
              "systemmessage"
            ]
          }
        ]
      }

   IV) Auth Login Support
    default:
	  "email": {
                    "isActive": true,
                    "type": "EMAIL",
                    "sender": "lsa-monitor@server.com",
                    "server": "127.0.0.1",
                    "to": [
                        "root@localhost"
                    ],
                    "authentication": {
                        "type": "NONE"
                    }
                }
	Execute below command:
	>$LSA_HOME/LSA.exe -console
	It will prompt the user interface to configure e-mail configuration related changes
	Note: This particular step not require any service restart. User can chage the e-mail configuration on fly.
	example change to:
      "email": {
                    "isActive": true,
                    "type": "EMAIL",
                    "sender": "lsa-monitor@server.com",
                    "server": "127.0.0.1",
                    "to": [
                        "root@localhost"
                    ],
					// if your SMTP server supports authlogin authorization protocol then add authentication information
					"username": "lsi",  // where lsi is SMTP server's Username
                    "password": "", // The entered password could be encrypted and persisted in LSA
                    "authentication": {
                        "type": "AUTH-LOGIN"
                    }
                }

6.Start the LightWeightMonitor service
  i) Launch Command Prompt in Windows
  ii) Start LightWeightMonitor service by executing the command -> sc start LSAService

