Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
titleomk8_list.txt
# Opmantek NMIS 8 downloads
# Update with newest links
# And Comment out what modules you do not need
https://dl-nmis.opmantek.com/nmis8.7.2-1.run
https://dl-omk.opmantek.com/opCharts-Linux-x86_64-3.56.20.run
https://dl-omk.opmantek.com/opReports-Linux-x86_64-3.45.20.run
https://dl-omk.opmantek.com/opConfig-Linux-x86_64-3.56.30.run
https://dl-omk.opmantek.com/opEvents-Linux-x86_64-2.67.50.run
https://dl-omk.opmantek.com/opFlow-Linux-x86_64-3.1.3.2.0.run
https://dl-omk.opmantek.com/opHA-Linux-x86_64-2.3.0.run
  • Create a omk8_downloader.sh file in the /installs directory, code below:
Code Block
languagebash
titleomk8_downloader.sh
linenumberstrue
#!/bin/bash

# Stop services
service opeventsd stop


upgrade_list=$(</installs/omk8_list.txt)

echo "starting downloads based on upgrade_list"
sleep 2
while read LINE; do `wget ${LINE}`; done < /installs/omk8_list.txt
echo "Downloads complete"
sleep 2
echo "##########"
echo "#"
echo "#		Starting installs"
echo "#"
echo "##########"

while IFS=/ read -r var1 var2 var3 var4 var5; do
	#echo $var1
	#echo $var2
	#echo $var3
	echo "Running install on $var4"
	`sh ./$var4 -- -y`
	sleep 2
	#echo $var5
done < /installs/omk8_list.txt

echo "##########"
echo "#"
echo "#		Installs Complete"
echo "#"
echo "##########"

...

  • Does Current server have valid key? cat ~/.ssh/id_rsa.pub
    • If yes copy "ssh-copy-id -i ~/.ssh/authorized_keys user@host
    • If no create ssh key then run ssh-copy-id command from above

...

  • This should performed on both servers before running the script.


6) Run Export Script

Note
titledf-h

Before running this script below, ensure there is enough space on the target machine to transfer all of the data. Running df -h in the terminal will show you the free disc space.


Run the following script on the old CentOS 6 server.  The following six variables at the top of the script will need to be modified to suit your environment.

...

9) Correct NMIS Hostname on the New CentOS 7 Server

In Config.nmis located at /usr/local/nmis8/conf put the correct hostname for 'server_name' attribute.

...