Friday, 31 January 2014

Settings for EMC Netwoker agent on Linux

After you have installed EMC Networker agent on your Linux OS, it is time to adjust system settings.

FIREWALL:

To enable communication of Networker agent with Networker server ou have to open this range of ports:
TCP from 7937 to 9936.

If you iptables are down, you won't need to do anything and your. Your iptables look like this then:

# iptables -nL
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
 

In case that your iptables are up, you have to insert new rule. You can open these ports for IP addresses but it is wise to only allow it for you Networker server.

#iptables -I INPUT 10 -p tcp --dport 7937:9936 -s 192.168.0.2 -j ACCEPT

Above iptables rule will insert in line 10 of chain INPUT for protocol tcp and ports from7937 to 9936 from source address 192.168.0.2 with ACCEPT condition.

In your iptables you will have this entry:
 
# iptables -nL |grep 79
ACCEPT     tcp  --  192.168.0.2           0.0.0.0/0           tcp dpts:7937:9936
 

Don't forget to save your new iptables rules!

# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]


OS files

It is very wise to insert line for your Networker server in /etc/hosts file

192.168.0.2 networker_server.your_domain networker_server

This is important because Networker server and client do now work with IP addresses but with DNS names. In case that you cannot reach you DNS server this line is crucial.

TIP:
Feedback if your comuniccation is working will be gave to you by your backup admin and your network admin so good with them is crucial!


Installation of EMC Netwoker agent on Linux

Couple years ago we start to use EMC Networker solution for backup and restore of are servers. It works perfectly!!!
To backup and restore your OS or DB you have to install Networker clients(so called then agents).
you have to install then on your OS.

In this post, I will only write about installation of Networker agent for backup and restore of file system on Linux.
When you download agent it will came in tar.gz format. You can download it for 32bit or 64bit Linux OS.
This package look like this

# ls
nw81_linux_x86_64.tar.gz

Untar it!

# tar xzvf nw81_linux_x86_64.tar.gz
linux_x86_64/
linux_x86_64/lgtoclnt-8.1.0.4-1.x86_64.rpm
linux_x86_64/lgtofr-8.1.0.4-1.x86_64.rpm
linux_x86_64/lgtoja-8.1.0.4-1.x86_64.rpm
linux_x86_64/lgtoko-8.1.0.4-1.x86_64.rpm
linux_x86_64/lgtolicm-8.1.0.4-1.x86_64.rpm
linux_x86_64/lgtoman-8.1.0.4-1.x86_64.rpm
linux_x86_64/lgtonode-8.1.0.4-1.x86_64.rpm
linux_x86_64/lgtoserv-8.1.0.4-1.x86_64.rpm
linux_x86_64/lgtozh-8.1.0.4-1.x86_64.rpm
linux_x86_64/lgtoclnt_8.1.0.4_amd64.deb
linux_x86_64/lgtonmc-8.1-1.x86_64.rpm
linux_x86_64/LGTO_METAFILE.linuxx86_64
linux_x86_64/sd_products.res
linux_x86_64/NetWorkerAdaptor-1.1.0-28-linux-x64.run







# ls
linux_x86_64  nw81_linux_x86_64.tar.gz


Go in linux_x86_64 folder.

 # cd linux_x86_64/
# ls
lgtoclnt-8.1.0.4-1.x86_64.rpm  LGTO_METAFILE.linuxx86_64
lgtoclnt_8.1.0.4_amd64.deb     lgtonmc-8.1-1.x86_64.rpm
lgtofr-8.1.0.4-1.x86_64.rpm    lgtonode-8.1.0.4-1.x86_64.rpm
lgtoja-8.1.0.4-1.x86_64.rpm    lgtoserv-8.1.0.4-1.x86_64.rpm
lgtoko-8.1.0.4-1.x86_64.rpm    lgtozh-8.1.0.4-1.x86_64.rpm
lgtolicm-8.1.0.4-1.x86_64.rpm  NetWorkerAdaptor-1.1.0-28-linux-x64.run
lgtoman-8.1.0.4-1.x86_64.rpm   sd_products.res

To install client you have to install lgtoclnt-8.1.0.4-1.x64_64.rpm package.

To install this package you have to have installed following packages.Version of these packages have to be this one or above.

expat-1.95.7-4.s390.rpm
 libstdc++-3.4.6-11.s390.rpm
 freetype-2.1.9-8.el4.6.s390.rpm
 fontconfig-2.2.3-13.el4.s390.rpm
 xorg-x11-Mesa-libGL-6.8.2*.rpm
 xorg-x11-libs-6.8.2*.rpm

 openmotif

 Above list is from official documentation and in practise this is OLD list.

For example on SLES 11 you have to check for this packages:
expat
libstdc++46
freetype
fontconfig
Mesa
xorg-x11-libs
libcap1


openmotif

 After you installed these, you can install Networker agent!
# rpm -ivh --test lgtoclnt-8.1.0.4-1..x86_64.rpm
Preparing...                ########################################### [100%]

If there are some dependencies missing install them and retry above step.


# rpm -ivh lgtoclnt-8.1.0.4-1..x86_64.rpm
Preparing...                ########################################### [100%]


It is good idea to install man pages for client. So install lgtoman-8.1.0.4-1.x86_64.rpm, too.

After installation is complete, folder /nsr and service networker will be created.
To start Networker agent use this

#/etc/init.d/networker start

This will start necessary processes. To se if agents are running type this

# ps aux |grep nsr
root     12545  0.0  0.0 196440  9524 ?        Ssl  09:22   0:00 /usr/sbin/nsrexecd
root     20151  0.0  0.0  61180   740 pts/0    S+   13:31   0:00 grep nsr


or

# /etc/init.d/networker status
+--o nsrexecd (12545)


Mission complete, Networker agent installed!!!