summarylogtreecommitdiffstats
path: root/lsi-msm.install
diff options
context:
space:
mode:
Diffstat (limited to 'lsi-msm.install')
-rw-r--r--lsi-msm.install32
1 files changed, 16 insertions, 16 deletions
diff --git a/lsi-msm.install b/lsi-msm.install
index 1c42c2f2e293..1ec30a32da46 100644
--- a/lsi-msm.install
+++ b/lsi-msm.install
@@ -6,30 +6,30 @@ green="${bold}$(tput setaf 2)"
_instructions_install() {
printf "${yellow}==>${all_off} ${bold}ATENTION:${all_off}
-${green}==>${all_off} First Steps needed for run '${bold}LSI MegaRAID SNMP Agent${all_off}':
- ${blue}->${all_off} Create or edit the file: '${bold}/etc/snmp/snmpd.conf${all_off}' and put in:
+${green}==>${all_off} ${bold}First Steps needed for run 'LSI MegaRAID SNMP Agent':${all_off}
+ ${blue}->${all_off} Create or edit the file: '${bold}/etc/snmp/snmpd.conf${all_off}' and put in this content:
'${bold}pass .1.3.6.1.4.1.3582 /usr/bin/lsi_mrdsnmpmain${all_off}' and save.
${blue}->${all_off} Edit the file '${bold}/etc/lsi_mrdsnmp/LSI_StorSNMP.ini${all_off}'
and comment out the option you want use.
${blue}->${all_off} For start '${bold}LSI MegaRAID Storage Manager Framework${all_off}' service, run:
- '# ${bold}systemctl start lsi_msm${all_off}'
+ '\x23 ${bold}systemctl start lsi_msm${all_off}'
${blue}->${all_off} For start '${bold}LSI MegaRAID SNMP Agent${all_off}' service, run:
- '# ${bold}systemctl start lsi_mrdsnmpd${all_off}'
- ${blue}->${all_off} For open '${bold}LSI MegaRAID Storage Manager${bold}' client:
+ '\x23 ${bold}systemctl start lsi_mrdsnmpd${all_off}'
+ ${blue}->${all_off} For open '${bold}LSI MegaRAID Storage Manager${all_off}' client:
'${bold}Menu${all_off}' -> '${bold}System${all_off}' -> '${bold}MegaRAID Storage Manager StartupUI${all_off}'
Or launch:
- # '${bold}/usr/share/MegaRAID_Storage_Manager/startupui.sh${all_off}'\n"
+ '\x23 ${bold}/usr/share/MegaRAID_Storage_Manager/startupui.sh${all_off}'\n"
}
_instructions_update() {
printf "${yellow}==>${all_off} ${bold}ATENTION:${all_off}\n"
if [ -f /etc/snmp/snmpd.conf ]; then
- printf "${green}==>${all_off} The file '${bold}/etc/snmp/snmpd.conf${all_off}' is found.
+ printf "${green}==>${all_off} ${bold}The file '/etc/snmp/snmpd.conf' is found${all_off}.
${blue}->${all_off} Please make sure if have this content:
'${bold}pass .1.3.6.1.4.1.3582 /usr/bin/lsi_mrdsnmpmain${all_off}'
before start/restart the '${bold}LSI MegaRAID SNMP Agent${all_off}' service.\n"
else
- printf "${green}==>${all_off} The file '${bold}/etc/snmp/snmpd.conf${all_off}' is not found.
+ printf "${green}==>${all_off} ${bold}The file '/etc/snmp/snmpd.conf' is not found.${all_off}
${blue}->${all_off} Please Create and put this content:
'${bold}pass .1.3.6.1.4.1.3582 /usr/bin/lsi_mrdsnmpmain${all_off}'
before start/restart the '${bold}LSI MegaRAID SNMP Agent${all_off}' service.\n"
@@ -39,7 +39,7 @@ _instructions_update() {
post_install() {
ldconfig &> /dev/null
cd "/usr/share/MegaRAID_Storage_Manager"
- jre/bin/java -classpath .:GUI.jar ExternalApp.ConfigRepositoryMain 71244 -set INSTALLER_VERSION "v${1%-*}" &> /dev/null
+ /usr/lib/jvm/`archlinux-java get`/jre/bin/java -classpath .:GUI.jar ExternalApp.ConfigRepositoryMain 71244 -set INSTALLER_VERSION "v${1%-*}" &> /dev/null
_instructions_install
}
@@ -49,9 +49,9 @@ post_upgrade() {
cd "/usr/share/MegaRAID_Storage_Manager"
rm -fr ActiveClientList.txt
- jre/bin/java -classpath .:Framework/Framework.jar VivaldiHeartbeat ActiveClientList.txt &> /dev/null
- jre/bin/java -classpath .:GUI.jar ExternalApp.ConfigRepositoryMain 71244 -clear &> /dev/null
- jre/bin/java -classpath .:GUI.jar ExternalApp.ConfigRepositoryMain 71244 -set INSTALLER_VERSION "v${1%-*}" &> /dev/null
+ /usr/lib/jvm/`archlinux-java get`/jre/bin/java -classpath .:Framework/Framework.jar VivaldiHeartbeat ActiveClientList.txt &> /dev/null
+ /usr/lib/jvm/`archlinux-java get`/jre/bin/java -classpath .:GUI.jar ExternalApp.ConfigRepositoryMain 71244 -clear &> /dev/null
+ /usr/lib/jvm/`archlinux-java get`/jre/bin/java -classpath .:GUI.jar ExternalApp.ConfigRepositoryMain 71244 -set INSTALLER_VERSION "v${1%-*}" &> /dev/null
_instructions_update
}
@@ -59,16 +59,16 @@ post_upgrade() {
pre_remove() {
cd "/usr/share/MegaRAID_Storage_Manager"
rm -fr ActiveClientList.txt
- jre/bin/java -classpath .:Framework/Framework.jar VivaldiHeartbeat ActiveClientList.txt &> /dev/null
- jre/bin/java -classpath .:GUI.jar ExternalApp.ConfigRepositoryMain 71244 -clear &> /dev/null
+ /usr/lib/jvm/`archlinux-java get`/jre/bin/java -classpath .:Framework/Framework.jar VivaldiHeartbeat ActiveClientList.txt &> /dev/null
+ /usr/lib/jvm/`archlinux-java get`/jre/bin/java -classpath .:GUI.jar ExternalApp.ConfigRepositoryMain 71244 -clear &> /dev/null
if [ "$(systemctl is-active lsi_msm)" = "active" ]; then
systemctl stop lsi_msm &> /dev/null
- printf "${yellow}==>${all_off} Stopping '${bold}lsi_msm${all_off}' Service\n"
+ printf "${green}==>${all_off} ${bold}Stopping 'lsi_msm' Service${all_off}.\n"
fi
if [ "$(systemctl is-enabled lsi_msm)" = "enable" ]; then
systemctl disable lsi_msm &> /dev/null
- printf "${yellow}==>${all_off} Disabling '${bold}lsi_msm${all_off}' Service\n"
+ printf "${green}==>${all_off} ${bold}Disabling 'lsi_msm' Service${all_off}.\n"
fi
}