MegaRAID Storage Manager(MSM) Installation
==========================================

The kit contains both mode of installation.
To, install the product the user should execute the command "./install.sh" from the installation disk.

While installation the user has to provide the "y" option wherever the installation scripts prompts for the same.


MSM Uninstallation
==================
The product can be uninstalled by executing the "Uninstaller.sh" file located in /opt/MegaRaidStorageManager directory.

While uninstallaion the user has to provide the "y" option wherever the uninstallation scripts prompts for the same.

Notes:
	1. To shutdown MSM Framework service, run "svcadm disable -t MSMFramework". It is advisable to stop Monitor service before stopping MSM Framework service. To stop Monitor service run "svcadm disable -t MSMMonitor".

	2. To startup the framework service run "svcadm enable MSMFramework". To start the monitor service run "svcadm enable MSMMonitor".

	3. To check for the status of MSM services execute the command "svcs -a | grep -i msm".


Prerequisites to run MSM remote admin
======================================

	1. Configure the system with valid IP address. Make sure there is no IP address conflict with in the sub network.

	2. Ports such as 3071 and 5571 are open and available for MSM framework communication.

	3. Disable all security manager and firewall.

	4. Configure the multicasting, make sure class D multicast IP addresses are registered (at least 229.111.112.12 should be register for MSM to work), if not create static route using the following command:
"Route add 229.111.112.12 dev eth1"

	Note that this command will not modify the routing table to be persistent across reboots. 
  	Please follow the guidelines per operating system to add the above mentioned IP address 
  	as a static entry into the routing table to be persistent across reboots.

  	You may wish to add the entire range of IP addressess (224.0.0.0 through 239.255.255.255) 
  	into the routing table. Please note that this requires procedures that varies between 
  	different flavours and versions of operating system and may have security implications.

	5. Install MSM, if already installed then restart MSM framework.


1.LSI SAS SNMP MIB:
-------------------

After installing LSI SAS SNMP Agent package, the MIB file "LSI-AdapterSAS.mib" is installed under /etc/lsi_mrdsnmp/sas directory. The MIB file for SAS IR "LSI-AdapterSASIR.mib" is installed under /etc/lsi_mrdsnmp/sasir directory.

2. Starting/Stopping/Status of LSI SAS SNMP Agent:
--------------------------------------------------

1. Following commands are used to start/stop the Solaris System Managment Agent(net snmpd) daemon
	Start	: # svcadm enable svc:/application/management/sma:default
	Stop	: # svcadm disable svc:/application/management/sma:default
	restart	: # svcadm restart svc:/application/management/sma:default
	Status	: # svcs svc:/application/management/sma:default
NOTE: online indicates the SMA is started.
      disabled indicates the SMA is stopped.	
 
2. Following commands are used to start/stop SAS SNMP Agent daemon
	Start	: #/etc/init.d/lsi_mrdsnmpd start
	Stop	: #/etc/init.d/lsi_mrdsnmpd stop
	restart	: #/etc/init.d/lsi_mrdsnmpd restart
	Status	: #/etc/init.d/lsi_mrdsnmpd status

3.Configuring snmpd.conf:
-------------------------

By default, snmp queries (walk,get) can be executed from any remote machine without any snmpd.conf file changes. To quickly add a new community and client access , please follow the following steps

1. stop the SMA service,by executing the following command
	# svcadm disable svc:/application/management/sma:default

2. Adding readonly and readwrite community names,

To add readonly community name and client/hostname/ipaddress Under "SECTION: Access Control Setup" in 
/etc/sma/snmp/snmpd.conf file is shown below.

Following is an excerpt from the /etc/sma/snmp/snmpd.conf file

###########################################################################
#
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rwcommunity snmpclient 172.28.157.149
###########################################################################

Similarly, To add readwrite community name and client/hostname/ipaddress Under "SECTION: Access Control Setup" in  /etc/sma/snmp/snmpd.conf file is shown below.

Following is an excerpt from the /etc/sma/snmp/snmpd.conf file

###########################################################################
#
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rwcommunity snmpclient 172.28.157.149
###########################################################################

3. start the SMA service, by executing the following command
	# svcadm enable svc:/application/management/sma:default

NOTE: Refer "man snmpd.conf" command for more information on configuring snmpd.conf file.

5.Configuring SNMP Traps:
-------------------------
To receive SNMP traps, the following steps needs to be followed,

1. stop LSI SAS SNMP Agent by executing the following command,
	#/etc/init.d/lsi_mrdsnmpd stop

2. Edit /etc/lsi_mrdsnmp/sas/sas_TrapDestination.conf file & add ipaddress as shown below
#################################################
# Agent Service needs the IP addresses to sent trap
# The trap destination may be specified in this file or
# using snmpd.conf file. Following indicators can be set
# on "TrapDestInd" to instruct the agent to pick the IPs
# as the destination.
# 1 - IPs only from snmpd.conf
# 2 - IPs from this file only
# 3 - IPs from both the files
#################################################
TrapDestInd 2
#############Trap Destination IP##################
127.0.0.1   public
172.28.157.149 public
#################################################

3. start LSI SAS SNMP Agent by executing the following command,
	#/etc/init.d/lsi_mrdsnmpd start

6.Configuring SNMP Traps:
-------------------------

To receive SNMP traps, the following steps need to be followed

1.) stop LSI SAS IR SNMP Agent by executing the following command,
	#/etc/init.d/lsi_mrdsnmpd stop

2. Edit /etc/lsi_mrdsnmp/sasir/sas_ir_TrapDestination.conf file & add ipaddress as shown below
#################################################
# Agent Service needs the IP addresses to sent trap
# The trap destination may be specified in this file or
# using snmpd.conf file. Following indicators can be set
# on "TrapDestInd" to instruct the agent to pick the IPs
# as the destination.
# 1 - IPs only from snmpd.conf
# 2 - IPs from this file only
# 3 - IPs from both the files
#################################################
TrapDestInd 2
#############Trap Destination IP##################
127.0.0.1   public
172.28.157.149 public
#################################################

3. start LSI SAS SNMP Agent by executing the following command,
	#/etc/init.d/lsi_mrdsnmpd start


7. MSM Performance improvement
-------------------------------

For better performance of MSM, when subjected to any heap-intensive (say heavy IOs) or computational tasks, 
improve the heap by including the following command "-Xms1024m -Xmx1024m",where 
1024m           Size of the heap allocated. The specified size is dependent on the machine's Hardware configuration.
-Xms1024m	Sets the initial size of the Java heap to 1024 Mbytes
-Xmx1024m	Sets the maximum heap size to 1024 Mbytes

1. Goto product home folder (/opt/MegaRaidStorageManager).
2. Open startupui.sh file in editable mode.
3. Include the command -Xms1024m -Xmx1024m after "./jre/bin/java",
   effectively:
   LD_LIBRARY_PATH=$MSM_HOME/lib ./jre/bin/java -Xms1024m -Xmx1024m -DVENUS=true....



8.References:
-------------

Please visit http://docs.sun.com/app/docs/doc/817-3000/introduction-1?a=view for more information on Solaris System Management Agent.

