Versions Compared

Key

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

...

  • yum update
  • yum install perl
  • yum install perl-core
  • yum install rrdtool
  • yum install rrdtool-perl
  • yum install libpng12
  • yum install rsync
  • yum install ntp

You can run the two commands below to accomplish this.

Code Block
languagebash
firstline1
titleUpdate | Install
yum update
yum install -y perl perl-core rrdtool rrdtool-perl libpng12 rsync ntp

Install NMIS and OMK Applications

Install the correct NMIS and OMK application versions on the new CentOS 7 server.  If you no longer have the installer packages for the correct versions contact support@opmantek.com and someone will provide them.

  • Create /installs directory
  • Create a omk8_list.txt file with download links such as below:
Code Block
languagetext
titleomk8_list.txt
collapsetrue
#Opmantek NMIS 9 downloads
#Comment out what you do not need
https://dl-nmis.opmantek.com/nmis8.7.2-1.run
https://dl-omk.opmantek.com/opCharts-Linux-x86_64-3.5.2.run
https://dl-omk.opmantek.com/opReports-Linux-x86_64-3.4.2.run
https://dl-omk.opmantek.com/opConfig-Linux-x86_64-3.5.3.run
https://dl-omk.opmantek.com/opEvents-Linux-x86_64-2.6.5.run
https://dl-omk.opmantek.com/opFlow-Linux-x86_64-3.1.3.run
  • Create a omk8_downloader.sh file in the /installs directory, code below:
Code Block
languagebash
titleomk8_downloader.sh
linenumberstrue
collapsetrue
#!/bin/bash

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 "##########"


Install SSH Keys

In order for the export script to work a valid ssh key must be installed in the /root/.ssh/authorized_keys file.

  • 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

Shutdown Related Services

...