diff options
Diffstat (limited to 'lsi-msm.install')
-rw-r--r-- | lsi-msm.install | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lsi-msm.install b/lsi-msm.install index 4069575673ae..322ba9c68a67 100644 --- a/lsi-msm.install +++ b/lsi-msm.install @@ -6,31 +6,32 @@ green="${bold}$(tput setaf 2)" _instructions_install() { printf "${yellow}==>${all_off} ${bold}ATENTION:${all_off} -${green}==>${all_off} ${bold}First Steps needed to run 'LSI MegaRAID SNMP Agent': - ${blue}->${all_off} Create or edit the file: «${bold}/etc/snmp/snmpd.conf${all_off}» and put in: '${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. -${green}==>${all_off} ${bold}To start 'LSI MegaRAID Storage Manager Framework' service, run: - ${blue}->${all_off} # ${bold}systemctl start lsi_msm${all_off} -${green}==>${all_off} ${bold}To start 'LSI MegaRAID SNMP Agent' service, run: - ${blue}->${all_off} # ${bold}systemctl start lsi_mrdsnmpd$all_off} -${green}==>${all_off} ${bold}To open 'LSI MegaRAID Storage Manager' client: +${green}==>${all_off} ${bold}First Steps needed for run 'LSI MegaRAID SNMP Agent': + ${blue}->${all_off} Create or edit the file: '${bold}/etc/snmp/snmpd.conf${all_off}' and put in: + '${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. +${green}==>${all_off} ${bold}For start 'LSI MegaRAID Storage Manager Framework' service, run: + ${blue}->${all_off} '# ${bold}systemctl start lsi_msm${all_off}' +${green}==>${all_off} ${bold}For start 'LSI MegaRAID SNMP Agent' service, run: + ${blue}->${all_off} '# ${bold}systemctl start lsi_mrdsnmpd${all_off}' +${green}==>${all_off} ${bold}For open 'LSI MegaRAID Storage Manager' client: ${blue}->${all_off} '${bold}Menu${all_off}' -> '${bold}System${all_off}' -> '${bold}MegaRAID Storage Manager StartupUI${all_off}' - ${blue}->${all_off} Or launch: # ${bold}/usr/share/MegaRAID_Storage_Manager/startupui.sh${all_off}\n" + ${blue}->${all_off} Or launch: # '${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 "${yellow}==>${all_off} ${bold}ATENTION:${all_off} -${green}==>${all_off} ${bold}The file «/etc/snmp/snmpd.conf» not found. +printf "${green}==>${all_off} ${bold}The file «/etc/snmp/snmpd.conf» not found. ${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" else - printf "${yellow}==>${all_off} ${bold}ATENTION:${all_off} -${green}==>${all_off} ${bold}The file «/etc/snmp/snmpd.conf» is found.${all_off} +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 'LSI MegaRAID SNMP Agent' service.\n" + before start/restart the '${bold}LSI MegaRAID SNMP Agent${all_off}' service.\n" fi } @@ -72,8 +73,8 @@ pre_remove() { post_remove() { ldconfig &> /dev/null - paths=(/usr/share/MegaRAID_Storage_Manager) + paths=(/usr/share/MegaRAID_Storage_Manager) first=true for path in ${paths[@]}; do if [ -d $path ]; then @@ -86,7 +87,6 @@ post_remove() { done files=(/etc/SlAsyncAddpCfg*.cfg) - first=true for file in ${files[@]}; do if [ -d $file ]; then @@ -94,7 +94,7 @@ post_remove() { first=false printf "${green}==>${all_off} ${bold}Leftover files:${all_off}\n" fi - printf "${blue} -> ${all_off} ${bold}$files${all_off}\n" + printf "${blue} -> ${all_off} ${bold}$file${all_off}\n" fi done } |