<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.tetrain.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Abhinav</id>
	<title>TetraWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tetrain.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Abhinav"/>
	<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Special:Contributions/Abhinav"/>
	<updated>2026-07-25T08:09:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Punjab_samba_architectural_change&amp;diff=1571</id>
		<title>Punjab samba architectural change</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Punjab_samba_architectural_change&amp;diff=1571"/>
		<updated>2014-02-19T10:45:11Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[[category:Punjab&#039;s IFMS-IWDMS Project]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== Samba Cluster for Punjab&#039;s IFMS-IWDMS project ==&lt;br /&gt;
&lt;br /&gt;
 Abhinav Sharma&lt;br /&gt;
 Tetra Information Services&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 The client wanted a Domain Controller, with a centralized authentication mechanism. To ensure this,&lt;br /&gt;
 Samba 3.5 was installed with 389-Directory server at the backend.&lt;br /&gt;
&lt;br /&gt;
 This document has been divided into two parts, one detailing the installation of the Samba ;&lt;br /&gt;
 and the other showing the steps taken to integrate it with the ldap server,&lt;br /&gt;
 389-DS and configuring it as a Primary Domain Controller (PDC).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Prerequisites:==&lt;br /&gt;
&lt;br /&gt;
 1) Installation of RHEL 6.3&lt;br /&gt;
 2) yum must be configured to ensure Samba and other dependencies can be downloaded&lt;br /&gt;
 3) 389-DS must already be setup prior to this installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Servers==&lt;br /&gt;
 Two servers have been set up as follows:&lt;br /&gt;
 pbifmsntp1.pbifmsiwdms.pjb - 192.168.10.81&lt;br /&gt;
 pbifmsntp2.pbifmsiwdms.pjb - 192.168.10.82&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Active node: pbifmsntp1.pbifmsiwdms.pjb  &lt;br /&gt;
 Standby node: pbifmsntp2.pbifmsiwdms.pjb&lt;br /&gt;
 Mounted HDD: /dev/mapper/csmb_vg-csmb_lv ;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Required Packages== &lt;br /&gt;
&lt;br /&gt;
 • samba &lt;br /&gt;
 • samba-common &lt;br /&gt;
 • samba-winbind-clients&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configuration Of LAM:==&lt;br /&gt;
&lt;br /&gt;
 vim /var/lib/ldap-account-manager/config/admin.conf&lt;br /&gt;
&lt;br /&gt;
 # LDAP Account Manager configuration&lt;br /&gt;
 #&lt;br /&gt;
 # Please do not modify this file manually. The configuration can be done completely by the LAM GUI.&lt;br /&gt;
 #&lt;br /&gt;
 ###################################################################################################&lt;br /&gt;
&lt;br /&gt;
 # server address (e.g. ldap://localhost:389 or ldaps://localhost:636)&lt;br /&gt;
 ServerURL: ldap://192.168.10.98:389&lt;br /&gt;
&lt;br /&gt;
 # list of users who are allowed to use LDAP Account Manager&lt;br /&gt;
 # names have to be seperated by semicolons&lt;br /&gt;
 # e.g. admins: cn=admin,dc=yourdomain,dc=org;cn=root,dc=yourdomain,dc=org&lt;br /&gt;
 Admins: cn=Directory manager&lt;br /&gt;
&lt;br /&gt;
 # password to change these preferences via webfrontend (default: lam)&lt;br /&gt;
 Passwd: {SSHA}cjKUoXZejBFB1BWzv7htxcVfKeg= P/mJQQ==&lt;br /&gt;
&lt;br /&gt;
 # suffix of tree view&lt;br /&gt;
 # e.g. dc=yourdomain,dc=org&lt;br /&gt;
 treesuffix: dc=pbifmsiwdms,dc=pjb&lt;br /&gt;
&lt;br /&gt;
 # default language (a line from config/language)&lt;br /&gt;
 defaultLanguage: en_GB.utf8:UTF-8:English (Great Britain)&lt;br /&gt;
&lt;br /&gt;
 # Path to external Script&lt;br /&gt;
 scriptPath:&lt;br /&gt;
&lt;br /&gt;
 # Server of external Script&lt;br /&gt;
 scriptServer:&lt;br /&gt;
&lt;br /&gt;
 # Access rights for home directories&lt;br /&gt;
 scriptRights: 750&lt;br /&gt;
&lt;br /&gt;
 # Number of minutes LAM caches LDAP searches.&lt;br /&gt;
 cachetimeout: 5&lt;br /&gt;
&lt;br /&gt;
 # LDAP search limit.&lt;br /&gt;
 searchLimit: 0&lt;br /&gt;
&lt;br /&gt;
 # Module settings&lt;br /&gt;
&lt;br /&gt;
 modules: posixAccount_minUID: 10000&lt;br /&gt;
 modules: posixAccount_maxUID: 30000&lt;br /&gt;
 modules: posixAccount_minMachine: 50000&lt;br /&gt;
 modules: posixAccount_maxMachine: 60000&lt;br /&gt;
 modules: posixGroup_minGID: 10000&lt;br /&gt;
 modules: posixGroup_maxGID: 20000&lt;br /&gt;
 modules: posixGroup_pwdHash: SSHA&lt;br /&gt;
 modules: posixAccount_pwdHash: SSHA &lt;br /&gt;
&lt;br /&gt;
 # List of active account types.&lt;br /&gt;
 activeTypes: user,group,host,smbDomain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 types: suffix_user: ou=People,dc=pbifmsiwdms,dc=pjb&lt;br /&gt;
 types: attr_user: #uid;#givenName;#sn;#uidNumber;#gidNumber&lt;br /&gt;
 types: modules_user: inetOrgPerson,posixAccount,shadowAccount,sambaSamAccount&lt;br /&gt;
&lt;br /&gt;
 types: suffix_group: ou=Groups,dc=pbifmsiwdms,dc=pjb&lt;br /&gt;
 types: attr_group: #cn;#gidNumber;#memberUID;#description&lt;br /&gt;
 types: modules_group: posixGroup,sambaGroupMapping&lt;br /&gt;
&lt;br /&gt;
 types: suffix_host: ou=computers,dc=pbifmsiwdms,dc=pjb&lt;br /&gt;
 types: attr_host: #cn;#description;#uidNumber;#gidNumber&lt;br /&gt;
 types: modules_host: account,posixAccount,sambaSamAccount&lt;br /&gt;
&lt;br /&gt;
 types: suffix_smbDomain: dc=pbifmsiwdms,dc=pjb&lt;br /&gt;
 types: attr_smbDomain: sambaDomainName:Domain name;sambaSID:Domain SID&lt;br /&gt;
 types: modules_smbDomain: sambaDomain&lt;br /&gt;
&lt;br /&gt;
 # Password mail subject&lt;br /&gt;
 lamProMailSubject: Your password was reset&lt;br /&gt;
&lt;br /&gt;
 # Password mail text&lt;br /&gt;
 lamProMailText: Dear @@givenName@@ @@sn@@,+::++::+your password was reset to:&lt;br /&gt;
 @@newPassword@@+::++::++::+Best regards+::++::+deskside  support+::+&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # enable TLS encryption&lt;br /&gt;
 useTLS: no&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # Access level for this profile.&lt;br /&gt;
 accessLevel: 100&lt;br /&gt;
&lt;br /&gt;
 # Login method.&lt;br /&gt;
 loginMethod: list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # Search suffix for LAM login.&lt;br /&gt;
 loginSearchSuffix: dc=yourdomain,dc=org&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # Search filter for LAM login.&lt;br /&gt;
 loginSearchFilter: uid=%USER%&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # Bind DN for login search.&lt;br /&gt;
 loginSearchDN:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # Bind password for login search.&lt;br /&gt;
 loginSearchPassword: asd1234f&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # HTTP authentication for LAM login.&lt;br /&gt;
 httpAuthentication: false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # Password mail from&lt;br /&gt;
 lamProMailFrom:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # Password mail reply-to&lt;br /&gt;
 lamProMailReplyTo:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Password mail is HTML&lt;br /&gt;
lamProMailIsHTML: false&lt;br /&gt;
modules: sambaSamAccount_timeZone: 0&lt;br /&gt;
modules: sambaSamAccount_lmHash: yes&lt;br /&gt;
modules: sambaSamAccount_hideHomeDrive: false&lt;br /&gt;
modules: sambaSamAccount_hideHomePath: false&lt;br /&gt;
modules: sambaSamAccount_hideProfilePath: false&lt;br /&gt;
modules: sambaSamAccount_hideLogonScript: false&lt;br /&gt;
modules: sambaSamAccount_hideWorkstations: false&lt;br /&gt;
modules: sambaSamAccount_hideLogonHours: false&lt;br /&gt;
modules: sambaSamAccount_hideTerminalServer: false&lt;br /&gt;
modules: posixAccount_primaryGroupAsSecondary: false&lt;br /&gt;
modules: inetOrgPerson_hideDescription: false&lt;br /&gt;
modules: inetOrgPerson_hideStreet: false&lt;br /&gt;
modules: inetOrgPerson_hidePostOfficeBox: false&lt;br /&gt;
modules: inetOrgPerson_hidePostalCode: false&lt;br /&gt;
modules: inetOrgPerson_hideLocation: false&lt;br /&gt;
modules: inetOrgPerson_hideState: false&lt;br /&gt;
modules: inetOrgPerson_hidePostalAddress: false&lt;br /&gt;
modules: inetOrgPerson_hideRegisteredAddress: false&lt;br /&gt;
modules: inetOrgPerson_hideOfficeName: false&lt;br /&gt;
modules: inetOrgPerson_hideRoomNumber: false&lt;br /&gt;
modules: inetOrgPerson_hideTelephoneNumber: false&lt;br /&gt;
modules: inetOrgPerson_hideHomeTelephoneNumber: false&lt;br /&gt;
modules: inetOrgPerson_hideMobileNumber: false&lt;br /&gt;
modules: inetOrgPerson_hideFaxNumber: false&lt;br /&gt;
modules: inetOrgPerson_hideEMailAddress: false&lt;br /&gt;
modules: inetOrgPerson_hideJobTitle: false&lt;br /&gt;
modules: inetOrgPerson_hideCarLicense: false&lt;br /&gt;
modules: inetOrgPerson_hideEmployeeType: false&lt;br /&gt;
modules: inetOrgPerson_hideBusinessCategory: false&lt;br /&gt;
modules: inetOrgPerson_hideDepartments: false&lt;br /&gt;
modules: inetOrgPerson_hideManager: false&lt;br /&gt;
modules: inetOrgPerson_hideO: false&lt;br /&gt;
modules: inetOrgPerson_hideEmployeeNumber: false&lt;br /&gt;
modules: inetOrgPerson_hideInitials: false&lt;br /&gt;
modules: inetOrgPerson_hideLabeledURI: false&lt;br /&gt;
tools: tool_hide_toolPDFEditor: false&lt;br /&gt;
tools: tool_hide_toolProfileEditor: false&lt;br /&gt;
tools: tool_hide_toolFileUpload: false&lt;br /&gt;
tools: tool_hide_toolSchemaBrowser: false&lt;br /&gt;
tools: tool_hide_toolServerInformation: false&lt;br /&gt;
tools: tool_hide_toolOUEditor: false&lt;br /&gt;
tools: tool_hide_toolTests: false                                                                                                                                                                                                   &lt;br /&gt;
==PAM Configuration== &lt;br /&gt;
&lt;br /&gt;
 Chack if nss_ldap is installed with: &lt;br /&gt;
&lt;br /&gt;
 # rpm -qa|grep -i nss-ldap &lt;br /&gt;
&lt;br /&gt;
 otherwise: &lt;br /&gt;
&lt;br /&gt;
 # yum install nss-pam-ldapd&lt;br /&gt;
&lt;br /&gt;
 On both the samba nodes, run this:&lt;br /&gt;
&lt;br /&gt;
 authconfig --enableldap --enableldapauth --disablenis \&lt;br /&gt;
 --enablecache –ldapserver=ldap1.pbifmsiwdms.pjb\&lt;br /&gt;
 --ldapbasedn=dc=pbifmsiwdms,dc=pjb --updateall &lt;br /&gt;
&lt;br /&gt;
    Then ensure ldap.conf has the following settings: &lt;br /&gt;
 URI ldap://ldap1.pbifmsiwdms.pjb/ ldap://ldap2.pbifmsiwdms.pjb/ &lt;br /&gt;
 TLS_CACERTDIR /etc/openldap/cacerts &lt;br /&gt;
 TLS_REQCERT allow &lt;br /&gt;
 TLS_CACERT /etc/openldap/cacerts/cacert.asc &lt;br /&gt;
 BASE dc=pbifmsiwdms,dc=pjb &lt;br /&gt;
 HOST pbifmsntp1.pbifmsiwdms.pjb &lt;br /&gt;
 binddn &amp;quot;cn=Directory manager&amp;quot; &lt;br /&gt;
 bindpw asd1234f &lt;br /&gt;
 rootbinddn &amp;quot;cn=Directory manager&amp;quot; &lt;br /&gt;
 port 389 &lt;br /&gt;
 bind_policy soft &lt;br /&gt;
 nss_reconnect_tries 2 &lt;br /&gt;
 nss_base_passwd         ou=People,dc=pbifmsiwdms,dc=pjb?one &lt;br /&gt;
 nss_base_passwd         ou=Computers,dc=pbifmsiwdms,dc=pjb?one &lt;br /&gt;
 nss_base_shadow         ou=People,dc=pbifmsiwdms,dc=pjb?one &lt;br /&gt;
 nss_base_group          ou=Groups,dc=pbifmsiwdms,dc=pjb?one &lt;br /&gt;
&lt;br /&gt;
 Without configuring ldap.conf, samba will not search posix accounts into ldap. Also, ensure that DNS has been setup.&lt;br /&gt;
 Architecture Diagram&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Samba Configuration:==&lt;br /&gt;
&lt;br /&gt;
[global]&lt;br /&gt;
workgroup = PUNJABGOVT&lt;br /&gt;
netbios name= PUNJABGOVT1&lt;br /&gt;
security = user&lt;br /&gt;
passdb backend = ldapsam:ldap://ldap1.pbifmsiwdms.pjb/&lt;br /&gt;
hosts allow = 127.0.0.1 192.168.10.0/24 192.168.20.0/24 192.168.70.0/24 10.10.20.0/24 10.10.22.0/24 172.22.0.0/16&lt;br /&gt;
smb ports = 139&lt;br /&gt;
ldap admin dn = cn=Directory Manager&lt;br /&gt;
ldap suffix = dc=pbifmsiwdms,dc=pjb&lt;br /&gt;
ldap user suffix = ou=People&lt;br /&gt;
ldap machine suffix = ou=Computers&lt;br /&gt;
ldap group suffix = ou=Groups&lt;br /&gt;
lanman auth = yes&lt;br /&gt;
client lanman auth = yes&lt;br /&gt;
log file = /var/log/samba/%m.log&lt;br /&gt;
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192&lt;br /&gt;
#obey pam restrictions = no&lt;br /&gt;
ldap passwd sync = yes&lt;br /&gt;
os level = 65&lt;br /&gt;
domain logons = yes&lt;br /&gt;
domain master = yes&lt;br /&gt;
local master = yes&lt;br /&gt;
preferred master = yes&lt;br /&gt;
ldap ssl= off&lt;br /&gt;
wins support = yes&lt;br /&gt;
wins proxy = yes&lt;br /&gt;
logon path = \\%L\profiles\%U&lt;br /&gt;
logon home = \\%L\%U&lt;br /&gt;
&lt;br /&gt;
logon drive = H:&lt;br /&gt;
map to guest = bad user&lt;br /&gt;
logon script = logon.cmd&lt;br /&gt;
template shell = /bin/false&lt;br /&gt;
winbind use default domain = no&lt;br /&gt;
map to guest = bad user&lt;br /&gt;
map untrusted to domain = Yes&lt;br /&gt;
enable privileges = yes&lt;br /&gt;
lm announce = yes&lt;br /&gt;
pam password change = yes&lt;br /&gt;
passwd program = /usr/sbin/smbldap-passwd  %u&lt;br /&gt;
&lt;br /&gt;
log level = 3&lt;br /&gt;
max log size = 1000&lt;br /&gt;
syslog only = no&lt;br /&gt;
syslog = 3&lt;br /&gt;
&lt;br /&gt;
name resolve order = wins lmhosts hosts bcast&lt;br /&gt;
username map = /etc/samba/smbusers&lt;br /&gt;
add user script = /usr/sbin/smbldap-useradd -a %u&lt;br /&gt;
add machine script = /usr/sbin/smbldap-useradd -w %u&lt;br /&gt;
add group script = /usr/sbin/smbldap-groupadd -p &amp;quot;%g&amp;quot;&lt;br /&gt;
delete group script = /usr/sbin/smbldap-groupdel &amp;quot;%g&amp;quot;&lt;br /&gt;
add user to group script = /usr/sbin/smbldap-groupmod -m &amp;quot;%u&amp;quot; &amp;quot;%g&amp;quot;&lt;br /&gt;
set primary group script = /usr/sbin/smbldap-usermod -g &#039;%g&#039; &#039;%u&#039;&lt;br /&gt;
delete user from group script = /usr/sbin/smbldap-groupmod -x &#039;%u&#039; &#039;%g&#039;&lt;br /&gt;
admin users = root&lt;br /&gt;
winbind enum groups = No&lt;br /&gt;
winbind trusted domains only = yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[netlogon]&lt;br /&gt;
path = /mnt/gfs2/samba/netlogon&lt;br /&gt;
read only = yes&lt;br /&gt;
browsable = no&lt;br /&gt;
guest ok = yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[profiles]&lt;br /&gt;
path = /mnt/gfs2/samba/profiles&lt;br /&gt;
read only = no&lt;br /&gt;
create mask = 0600&lt;br /&gt;
directory mask = 0700&lt;br /&gt;
&lt;br /&gt;
#[profiles.V2]&lt;br /&gt;
#copy = profiles&lt;br /&gt;
#browseable = no&lt;br /&gt;
&lt;br /&gt;
[homes]&lt;br /&gt;
browsable = no&lt;br /&gt;
writable = yes&lt;br /&gt;
path = /mnt/gfs2/share/%u&lt;br /&gt;
&lt;br /&gt;
[csmb]&lt;br /&gt;
comment = Samba&lt;br /&gt;
public = yes&lt;br /&gt;
path = /mnt/gfs2/share&lt;br /&gt;
writeable = yes&lt;br /&gt;
ea support = yes&lt;br /&gt;
&lt;br /&gt;
[nitrobit]&lt;br /&gt;
path = /mnt/gfs2/samba/nitrobit&lt;br /&gt;
read only = no&lt;br /&gt;
public = yes&lt;br /&gt;
browsable = yes&lt;br /&gt;
writable = yes&lt;br /&gt;
guest ok = yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Create appropriate directories/permissions for the Samba shares defined in your configuration : 	&lt;br /&gt;
&lt;br /&gt;
 # mkdir -p /mnt/gfs2/samba &lt;br /&gt;
 # mkdir /mnt/gfs2/samba/{netlogon,profiles} &lt;br /&gt;
 # chown root:root -R /mnt/gfs2/samba &lt;br /&gt;
 # chmod 0755 /mnt/gfs2/samba/netlogon &lt;br /&gt;
 # chmod 1755 /mnt/gfs2/samba/profiles &lt;br /&gt;
 # mkdir -p /mnt/gfs2/nitrobit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Create a password for the ldap admin dn (the Directory Manager&#039;s Password) in Samba&#039;s secret file: &lt;br /&gt;
&lt;br /&gt;
 # smbpasswd -w &amp;lt;ldap-admin-password&amp;gt; &lt;br /&gt;
 Setting stored passnword for &amp;quot;cn=Directory Manager&amp;quot; in secrets.tdb &lt;br /&gt;
&lt;br /&gt;
 net getlocalsid &lt;br /&gt;
 SID for domain PUNJABGOVT is: S-1-5-21-4070117540-217532476-2757550252 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 If sid is not coming then you can Set manually by&lt;br /&gt;
 # Net setlocalsid  S-1-5-21-4070117540-217532476-2757550252&lt;br /&gt;
&lt;br /&gt;
 Then Ckeck Groups of ldpa server is coming or not by &lt;br /&gt;
&lt;br /&gt;
 # net groupmap list&lt;br /&gt;
 PUNJABGOVT\Domain Users (S-1-5-21-4070117540-217532476-2757550252-513) -&amp;gt; Domain Users&lt;br /&gt;
 Domain Guests (S-1-5-21-4070117540-217532476-2757550252-514) -&amp;gt; Domain Guests&lt;br /&gt;
 Domain Computers (S-1-5-21-4070117540-217532476-2757550252-515) -&amp;gt; Domain Computers&lt;br /&gt;
 Administrators (S-1-5-32-544) -&amp;gt; Administrators&lt;br /&gt;
 Account Operators (S-1-5-32-548) -&amp;gt; Account Operators&lt;br /&gt;
 Print Operators (S-1-5-32-550) -&amp;gt; Print Operators&lt;br /&gt;
 Backup Operators (S-1-5-32-551) -&amp;gt; Backup Operators&lt;br /&gt;
 Replicators (S-1-5-32-552) -&amp;gt; Replicators&lt;br /&gt;
 Power Users (S-1-5-21-4070117540-217532476-2757550252-2912) -&amp;gt; Power Users&lt;br /&gt;
 PUNJABGOVT\Domain Admins (S-1-5-21-4070117540-217532476-2757550252-512) -&amp;gt; Domain Admins&lt;br /&gt;
 PUNJABGOVT\TCSDC (S-1-5-21-4070117540-217532476-2757550252-39001) -&amp;gt; TCSDC&lt;br /&gt;
 PUNJAB-USERS (S-1-5-21-4070117540-217532476-2757550252-39003) -&amp;gt; PUNJAB-USERS&lt;br /&gt;
 Datacenter Administrator (S-1-5-21-4070117540-217532476-2757550252-39005) -&amp;gt; data_admin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Samba troubleshooting==&lt;br /&gt;
&lt;br /&gt;
 If the client computers get the error that they cannot contact the Domain Controller specified,&lt;br /&gt;
  then check if nmb is running. If not, start  it.&lt;br /&gt;
 # service nmb start&lt;br /&gt;
&lt;br /&gt;
 To check if an account can connect:&lt;br /&gt;
 # smbclient -L samba.pbifmsiwdms.pjb -U &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 To check if a user is read from the ldap server:&lt;br /&gt;
 # getent passwd &amp;lt;username&amp;gt;&lt;br /&gt;
 For example: &lt;br /&gt;
 # getent passwd admin &lt;br /&gt;
 admin:*:11071:5122:System User:/home/admin:/bin/bash&lt;br /&gt;
&lt;br /&gt;
 This will show the user&#039;s POSIX details, as stored on the 389-DS server.&lt;br /&gt;
&lt;br /&gt;
 It can be similarly used for groups, as follows:&lt;br /&gt;
 # getent group &#039;Domain Admins&#039; &lt;br /&gt;
 Domain Admins:*:5122:admin &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &#039;net&#039; commands:&lt;br /&gt;
&lt;br /&gt;
 To see the group mappings:&lt;br /&gt;
 # net groupmap list&lt;br /&gt;
&lt;br /&gt;
 To add a group:&lt;br /&gt;
 # net groupmap add rid=513 \ &lt;br /&gt;
 ntgroup=&#039;PUNJABGOVT\Domain Users&#039; \&lt;br /&gt;
 unixgroup=&#039;Domain Users&#039;&lt;br /&gt;
&lt;br /&gt;
 To see a group&#039;s members:&lt;br /&gt;
 # net rpc group members &amp;quot;Domain Admins”&lt;br /&gt;
&lt;br /&gt;
 To see a members&#039;s groups:&lt;br /&gt;
 # net rpc user info admin&lt;br /&gt;
&lt;br /&gt;
 To get the SID:&lt;br /&gt;
 # net getdomainsid&lt;br /&gt;
&lt;br /&gt;
     If Samba root/administrator users are blocked&lt;br /&gt;
   # pdbedit –c=’[]’ –-user=root&lt;br /&gt;
   # pdbedit –c=’[U]’ –-user=root&lt;br /&gt;
&lt;br /&gt;
==Test Join==&lt;br /&gt;
&lt;br /&gt;
 # Net rpc testjoin&lt;br /&gt;
 To join server in domain by admin user&lt;br /&gt;
 # net join –U admin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Manual Swich Over:==  &lt;br /&gt;
&lt;br /&gt;
 We have Done the manual Swich Over instead of Cluster Because any updation and upgradation &lt;br /&gt;
 of packages and operation System effect Cluster  directly or indirectly. Due to which whole architecture&lt;br /&gt;
 get disturbe.  So after Analysis and  discussion We proceed with Manual swich over.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 1.	Node1: &lt;br /&gt;
 # /etc/init.d/network restart&lt;br /&gt;
 #/etc/init.d/smb stop&lt;br /&gt;
 #/etc/init.d/nmb stop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Node2:&lt;br /&gt;
&lt;br /&gt;
 # ifconfig eth0:0 192.168.10.93 netmask 255.255.255.0&lt;br /&gt;
 # /etc/init.d/smb start;&lt;br /&gt;
 #/etc/init.d/nmb start&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Punjab_samba_architectural_change&amp;diff=1570</id>
		<title>Punjab samba architectural change</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Punjab_samba_architectural_change&amp;diff=1570"/>
		<updated>2014-02-19T10:44:11Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Created page with &amp;quot;     == Samba Cluster for Punjab&amp;#039;s IFMS-IWDMS project ==   Abhinav Sharma  Tetra Information Services            ==Introduction==    The client wanted a Domain Controller, wit...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== Samba Cluster for Punjab&#039;s IFMS-IWDMS project ==&lt;br /&gt;
&lt;br /&gt;
 Abhinav Sharma&lt;br /&gt;
 Tetra Information Services&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 The client wanted a Domain Controller, with a centralized authentication mechanism. To ensure this,&lt;br /&gt;
 Samba 3.5 was installed with 389-Directory server at the backend.&lt;br /&gt;
&lt;br /&gt;
 This document has been divided into two parts, one detailing the installation of the Samba ;&lt;br /&gt;
 and the other showing the steps taken to integrate it with the ldap server,&lt;br /&gt;
 389-DS and configuring it as a Primary Domain Controller (PDC).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Prerequisites:==&lt;br /&gt;
&lt;br /&gt;
 1) Installation of RHEL 6.3&lt;br /&gt;
 2) yum must be configured to ensure Samba and other dependencies can be downloaded&lt;br /&gt;
 3) 389-DS must already be setup prior to this installation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Servers==&lt;br /&gt;
 Two servers have been set up as follows:&lt;br /&gt;
 pbifmsntp1.pbifmsiwdms.pjb - 192.168.10.81&lt;br /&gt;
 pbifmsntp2.pbifmsiwdms.pjb - 192.168.10.82&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Active node: pbifmsntp1.pbifmsiwdms.pjb  &lt;br /&gt;
 Standby node: pbifmsntp2.pbifmsiwdms.pjb&lt;br /&gt;
 Mounted HDD: /dev/mapper/csmb_vg-csmb_lv ;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Required Packages== &lt;br /&gt;
&lt;br /&gt;
 • samba &lt;br /&gt;
 • samba-common &lt;br /&gt;
 • samba-winbind-clients&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configuration Of LAM:==&lt;br /&gt;
&lt;br /&gt;
 vim /var/lib/ldap-account-manager/config/admin.conf&lt;br /&gt;
&lt;br /&gt;
 # LDAP Account Manager configuration&lt;br /&gt;
 #&lt;br /&gt;
 # Please do not modify this file manually. The configuration can be done completely by the LAM GUI.&lt;br /&gt;
 #&lt;br /&gt;
 ###################################################################################################&lt;br /&gt;
&lt;br /&gt;
 # server address (e.g. ldap://localhost:389 or ldaps://localhost:636)&lt;br /&gt;
 ServerURL: ldap://192.168.10.98:389&lt;br /&gt;
&lt;br /&gt;
 # list of users who are allowed to use LDAP Account Manager&lt;br /&gt;
 # names have to be seperated by semicolons&lt;br /&gt;
 # e.g. admins: cn=admin,dc=yourdomain,dc=org;cn=root,dc=yourdomain,dc=org&lt;br /&gt;
 Admins: cn=Directory manager&lt;br /&gt;
&lt;br /&gt;
 # password to change these preferences via webfrontend (default: lam)&lt;br /&gt;
 Passwd: {SSHA}cjKUoXZejBFB1BWzv7htxcVfKeg= P/mJQQ==&lt;br /&gt;
&lt;br /&gt;
 # suffix of tree view&lt;br /&gt;
 # e.g. dc=yourdomain,dc=org&lt;br /&gt;
 treesuffix: dc=pbifmsiwdms,dc=pjb&lt;br /&gt;
&lt;br /&gt;
 # default language (a line from config/language)&lt;br /&gt;
 defaultLanguage: en_GB.utf8:UTF-8:English (Great Britain)&lt;br /&gt;
&lt;br /&gt;
 # Path to external Script&lt;br /&gt;
 scriptPath:&lt;br /&gt;
&lt;br /&gt;
 # Server of external Script&lt;br /&gt;
 scriptServer:&lt;br /&gt;
&lt;br /&gt;
 # Access rights for home directories&lt;br /&gt;
 scriptRights: 750&lt;br /&gt;
&lt;br /&gt;
 # Number of minutes LAM caches LDAP searches.&lt;br /&gt;
 cachetimeout: 5&lt;br /&gt;
&lt;br /&gt;
 # LDAP search limit.&lt;br /&gt;
 searchLimit: 0&lt;br /&gt;
&lt;br /&gt;
 # Module settings&lt;br /&gt;
&lt;br /&gt;
 modules: posixAccount_minUID: 10000&lt;br /&gt;
 modules: posixAccount_maxUID: 30000&lt;br /&gt;
 modules: posixAccount_minMachine: 50000&lt;br /&gt;
 modules: posixAccount_maxMachine: 60000&lt;br /&gt;
 modules: posixGroup_minGID: 10000&lt;br /&gt;
 modules: posixGroup_maxGID: 20000&lt;br /&gt;
 modules: posixGroup_pwdHash: SSHA&lt;br /&gt;
 modules: posixAccount_pwdHash: SSHA &lt;br /&gt;
&lt;br /&gt;
 # List of active account types.&lt;br /&gt;
 activeTypes: user,group,host,smbDomain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 types: suffix_user: ou=People,dc=pbifmsiwdms,dc=pjb&lt;br /&gt;
 types: attr_user: #uid;#givenName;#sn;#uidNumber;#gidNumber&lt;br /&gt;
 types: modules_user: inetOrgPerson,posixAccount,shadowAccount,sambaSamAccount&lt;br /&gt;
&lt;br /&gt;
 types: suffix_group: ou=Groups,dc=pbifmsiwdms,dc=pjb&lt;br /&gt;
 types: attr_group: #cn;#gidNumber;#memberUID;#description&lt;br /&gt;
 types: modules_group: posixGroup,sambaGroupMapping&lt;br /&gt;
&lt;br /&gt;
 types: suffix_host: ou=computers,dc=pbifmsiwdms,dc=pjb&lt;br /&gt;
 types: attr_host: #cn;#description;#uidNumber;#gidNumber&lt;br /&gt;
 types: modules_host: account,posixAccount,sambaSamAccount&lt;br /&gt;
&lt;br /&gt;
 types: suffix_smbDomain: dc=pbifmsiwdms,dc=pjb&lt;br /&gt;
 types: attr_smbDomain: sambaDomainName:Domain name;sambaSID:Domain SID&lt;br /&gt;
 types: modules_smbDomain: sambaDomain&lt;br /&gt;
&lt;br /&gt;
 # Password mail subject&lt;br /&gt;
 lamProMailSubject: Your password was reset&lt;br /&gt;
&lt;br /&gt;
 # Password mail text&lt;br /&gt;
 lamProMailText: Dear @@givenName@@ @@sn@@,+::++::+your password was reset to:&lt;br /&gt;
 @@newPassword@@+::++::++::+Best regards+::++::+deskside  support+::+&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # enable TLS encryption&lt;br /&gt;
 useTLS: no&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # Access level for this profile.&lt;br /&gt;
 accessLevel: 100&lt;br /&gt;
&lt;br /&gt;
 # Login method.&lt;br /&gt;
 loginMethod: list&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # Search suffix for LAM login.&lt;br /&gt;
 loginSearchSuffix: dc=yourdomain,dc=org&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # Search filter for LAM login.&lt;br /&gt;
 loginSearchFilter: uid=%USER%&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # Bind DN for login search.&lt;br /&gt;
 loginSearchDN:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # Bind password for login search.&lt;br /&gt;
 loginSearchPassword: asd1234f&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # HTTP authentication for LAM login.&lt;br /&gt;
 httpAuthentication: false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # Password mail from&lt;br /&gt;
 lamProMailFrom:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # Password mail reply-to&lt;br /&gt;
 lamProMailReplyTo:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Password mail is HTML&lt;br /&gt;
lamProMailIsHTML: false&lt;br /&gt;
modules: sambaSamAccount_timeZone: 0&lt;br /&gt;
modules: sambaSamAccount_lmHash: yes&lt;br /&gt;
modules: sambaSamAccount_hideHomeDrive: false&lt;br /&gt;
modules: sambaSamAccount_hideHomePath: false&lt;br /&gt;
modules: sambaSamAccount_hideProfilePath: false&lt;br /&gt;
modules: sambaSamAccount_hideLogonScript: false&lt;br /&gt;
modules: sambaSamAccount_hideWorkstations: false&lt;br /&gt;
modules: sambaSamAccount_hideLogonHours: false&lt;br /&gt;
modules: sambaSamAccount_hideTerminalServer: false&lt;br /&gt;
modules: posixAccount_primaryGroupAsSecondary: false&lt;br /&gt;
modules: inetOrgPerson_hideDescription: false&lt;br /&gt;
modules: inetOrgPerson_hideStreet: false&lt;br /&gt;
modules: inetOrgPerson_hidePostOfficeBox: false&lt;br /&gt;
modules: inetOrgPerson_hidePostalCode: false&lt;br /&gt;
modules: inetOrgPerson_hideLocation: false&lt;br /&gt;
modules: inetOrgPerson_hideState: false&lt;br /&gt;
modules: inetOrgPerson_hidePostalAddress: false&lt;br /&gt;
modules: inetOrgPerson_hideRegisteredAddress: false&lt;br /&gt;
modules: inetOrgPerson_hideOfficeName: false&lt;br /&gt;
modules: inetOrgPerson_hideRoomNumber: false&lt;br /&gt;
modules: inetOrgPerson_hideTelephoneNumber: false&lt;br /&gt;
modules: inetOrgPerson_hideHomeTelephoneNumber: false&lt;br /&gt;
modules: inetOrgPerson_hideMobileNumber: false&lt;br /&gt;
modules: inetOrgPerson_hideFaxNumber: false&lt;br /&gt;
modules: inetOrgPerson_hideEMailAddress: false&lt;br /&gt;
modules: inetOrgPerson_hideJobTitle: false&lt;br /&gt;
modules: inetOrgPerson_hideCarLicense: false&lt;br /&gt;
modules: inetOrgPerson_hideEmployeeType: false&lt;br /&gt;
modules: inetOrgPerson_hideBusinessCategory: false&lt;br /&gt;
modules: inetOrgPerson_hideDepartments: false&lt;br /&gt;
modules: inetOrgPerson_hideManager: false&lt;br /&gt;
modules: inetOrgPerson_hideO: false&lt;br /&gt;
modules: inetOrgPerson_hideEmployeeNumber: false&lt;br /&gt;
modules: inetOrgPerson_hideInitials: false&lt;br /&gt;
modules: inetOrgPerson_hideLabeledURI: false&lt;br /&gt;
tools: tool_hide_toolPDFEditor: false&lt;br /&gt;
tools: tool_hide_toolProfileEditor: false&lt;br /&gt;
tools: tool_hide_toolFileUpload: false&lt;br /&gt;
tools: tool_hide_toolSchemaBrowser: false&lt;br /&gt;
tools: tool_hide_toolServerInformation: false&lt;br /&gt;
tools: tool_hide_toolOUEditor: false&lt;br /&gt;
tools: tool_hide_toolTests: false                                                                                                                                                                                                   &lt;br /&gt;
==PAM Configuration== &lt;br /&gt;
&lt;br /&gt;
 Chack if nss_ldap is installed with: &lt;br /&gt;
&lt;br /&gt;
 # rpm -qa|grep -i nss-ldap &lt;br /&gt;
&lt;br /&gt;
 otherwise: &lt;br /&gt;
&lt;br /&gt;
 # yum install nss-pam-ldapd&lt;br /&gt;
&lt;br /&gt;
 On both the samba nodes, run this:&lt;br /&gt;
&lt;br /&gt;
 authconfig --enableldap --enableldapauth --disablenis \&lt;br /&gt;
 --enablecache –ldapserver=ldap1.pbifmsiwdms.pjb\&lt;br /&gt;
 --ldapbasedn=dc=pbifmsiwdms,dc=pjb --updateall &lt;br /&gt;
&lt;br /&gt;
    Then ensure ldap.conf has the following settings: &lt;br /&gt;
 URI ldap://ldap1.pbifmsiwdms.pjb/ ldap://ldap2.pbifmsiwdms.pjb/ &lt;br /&gt;
 TLS_CACERTDIR /etc/openldap/cacerts &lt;br /&gt;
 TLS_REQCERT allow &lt;br /&gt;
 TLS_CACERT /etc/openldap/cacerts/cacert.asc &lt;br /&gt;
 BASE dc=pbifmsiwdms,dc=pjb &lt;br /&gt;
 HOST pbifmsntp1.pbifmsiwdms.pjb &lt;br /&gt;
 binddn &amp;quot;cn=Directory manager&amp;quot; &lt;br /&gt;
 bindpw asd1234f &lt;br /&gt;
 rootbinddn &amp;quot;cn=Directory manager&amp;quot; &lt;br /&gt;
 port 389 &lt;br /&gt;
 bind_policy soft &lt;br /&gt;
 nss_reconnect_tries 2 &lt;br /&gt;
 nss_base_passwd         ou=People,dc=pbifmsiwdms,dc=pjb?one &lt;br /&gt;
 nss_base_passwd         ou=Computers,dc=pbifmsiwdms,dc=pjb?one &lt;br /&gt;
 nss_base_shadow         ou=People,dc=pbifmsiwdms,dc=pjb?one &lt;br /&gt;
 nss_base_group          ou=Groups,dc=pbifmsiwdms,dc=pjb?one &lt;br /&gt;
&lt;br /&gt;
 Without configuring ldap.conf, samba will not search posix accounts into ldap. Also, ensure that DNS has been setup.&lt;br /&gt;
 Architecture Diagram&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Samba Configuration:==&lt;br /&gt;
&lt;br /&gt;
[global]&lt;br /&gt;
workgroup = PUNJABGOVT&lt;br /&gt;
netbios name= PUNJABGOVT1&lt;br /&gt;
security = user&lt;br /&gt;
passdb backend = ldapsam:ldap://ldap1.pbifmsiwdms.pjb/&lt;br /&gt;
hosts allow = 127.0.0.1 192.168.10.0/24 192.168.20.0/24 192.168.70.0/24 10.10.20.0/24 10.10.22.0/24 172.22.0.0/16&lt;br /&gt;
smb ports = 139&lt;br /&gt;
ldap admin dn = cn=Directory Manager&lt;br /&gt;
ldap suffix = dc=pbifmsiwdms,dc=pjb&lt;br /&gt;
ldap user suffix = ou=People&lt;br /&gt;
ldap machine suffix = ou=Computers&lt;br /&gt;
ldap group suffix = ou=Groups&lt;br /&gt;
lanman auth = yes&lt;br /&gt;
client lanman auth = yes&lt;br /&gt;
log file = /var/log/samba/%m.log&lt;br /&gt;
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192&lt;br /&gt;
#obey pam restrictions = no&lt;br /&gt;
ldap passwd sync = yes&lt;br /&gt;
os level = 65&lt;br /&gt;
domain logons = yes&lt;br /&gt;
domain master = yes&lt;br /&gt;
local master = yes&lt;br /&gt;
preferred master = yes&lt;br /&gt;
ldap ssl= off&lt;br /&gt;
wins support = yes&lt;br /&gt;
wins proxy = yes&lt;br /&gt;
logon path = \\%L\profiles\%U&lt;br /&gt;
logon home = \\%L\%U&lt;br /&gt;
&lt;br /&gt;
logon drive = H:&lt;br /&gt;
map to guest = bad user&lt;br /&gt;
logon script = logon.cmd&lt;br /&gt;
template shell = /bin/false&lt;br /&gt;
winbind use default domain = no&lt;br /&gt;
map to guest = bad user&lt;br /&gt;
map untrusted to domain = Yes&lt;br /&gt;
enable privileges = yes&lt;br /&gt;
lm announce = yes&lt;br /&gt;
pam password change = yes&lt;br /&gt;
passwd program = /usr/sbin/smbldap-passwd  %u&lt;br /&gt;
&lt;br /&gt;
log level = 3&lt;br /&gt;
max log size = 1000&lt;br /&gt;
syslog only = no&lt;br /&gt;
syslog = 3&lt;br /&gt;
&lt;br /&gt;
name resolve order = wins lmhosts hosts bcast&lt;br /&gt;
username map = /etc/samba/smbusers&lt;br /&gt;
add user script = /usr/sbin/smbldap-useradd -a %u&lt;br /&gt;
add machine script = /usr/sbin/smbldap-useradd -w %u&lt;br /&gt;
add group script = /usr/sbin/smbldap-groupadd -p &amp;quot;%g&amp;quot;&lt;br /&gt;
delete group script = /usr/sbin/smbldap-groupdel &amp;quot;%g&amp;quot;&lt;br /&gt;
add user to group script = /usr/sbin/smbldap-groupmod -m &amp;quot;%u&amp;quot; &amp;quot;%g&amp;quot;&lt;br /&gt;
set primary group script = /usr/sbin/smbldap-usermod -g &#039;%g&#039; &#039;%u&#039;&lt;br /&gt;
delete user from group script = /usr/sbin/smbldap-groupmod -x &#039;%u&#039; &#039;%g&#039;&lt;br /&gt;
admin users = root&lt;br /&gt;
winbind enum groups = No&lt;br /&gt;
winbind trusted domains only = yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[netlogon]&lt;br /&gt;
path = /mnt/gfs2/samba/netlogon&lt;br /&gt;
read only = yes&lt;br /&gt;
browsable = no&lt;br /&gt;
guest ok = yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[profiles]&lt;br /&gt;
path = /mnt/gfs2/samba/profiles&lt;br /&gt;
read only = no&lt;br /&gt;
create mask = 0600&lt;br /&gt;
directory mask = 0700&lt;br /&gt;
&lt;br /&gt;
#[profiles.V2]&lt;br /&gt;
#copy = profiles&lt;br /&gt;
#browseable = no&lt;br /&gt;
&lt;br /&gt;
[homes]&lt;br /&gt;
browsable = no&lt;br /&gt;
writable = yes&lt;br /&gt;
path = /mnt/gfs2/share/%u&lt;br /&gt;
&lt;br /&gt;
[csmb]&lt;br /&gt;
comment = Samba&lt;br /&gt;
public = yes&lt;br /&gt;
path = /mnt/gfs2/share&lt;br /&gt;
writeable = yes&lt;br /&gt;
ea support = yes&lt;br /&gt;
&lt;br /&gt;
[nitrobit]&lt;br /&gt;
path = /mnt/gfs2/samba/nitrobit&lt;br /&gt;
read only = no&lt;br /&gt;
public = yes&lt;br /&gt;
browsable = yes&lt;br /&gt;
writable = yes&lt;br /&gt;
guest ok = yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Create appropriate directories/permissions for the Samba shares defined in your configuration : 	&lt;br /&gt;
&lt;br /&gt;
 # mkdir -p /mnt/gfs2/samba &lt;br /&gt;
 # mkdir /mnt/gfs2/samba/{netlogon,profiles} &lt;br /&gt;
 # chown root:root -R /mnt/gfs2/samba &lt;br /&gt;
 # chmod 0755 /mnt/gfs2/samba/netlogon &lt;br /&gt;
 # chmod 1755 /mnt/gfs2/samba/profiles &lt;br /&gt;
 # mkdir -p /mnt/gfs2/nitrobit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Create a password for the ldap admin dn (the Directory Manager&#039;s Password) in Samba&#039;s secret file: &lt;br /&gt;
&lt;br /&gt;
 # smbpasswd -w &amp;lt;ldap-admin-password&amp;gt; &lt;br /&gt;
 Setting stored passnword for &amp;quot;cn=Directory Manager&amp;quot; in secrets.tdb &lt;br /&gt;
&lt;br /&gt;
 net getlocalsid &lt;br /&gt;
 SID for domain PUNJABGOVT is: S-1-5-21-4070117540-217532476-2757550252 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 If sid is not coming then you can Set manually by&lt;br /&gt;
 # Net setlocalsid  S-1-5-21-4070117540-217532476-2757550252&lt;br /&gt;
&lt;br /&gt;
 Then Ckeck Groups of ldpa server is coming or not by &lt;br /&gt;
&lt;br /&gt;
 # net groupmap list&lt;br /&gt;
 PUNJABGOVT\Domain Users (S-1-5-21-4070117540-217532476-2757550252-513) -&amp;gt; Domain Users&lt;br /&gt;
 Domain Guests (S-1-5-21-4070117540-217532476-2757550252-514) -&amp;gt; Domain Guests&lt;br /&gt;
 Domain Computers (S-1-5-21-4070117540-217532476-2757550252-515) -&amp;gt; Domain Computers&lt;br /&gt;
 Administrators (S-1-5-32-544) -&amp;gt; Administrators&lt;br /&gt;
 Account Operators (S-1-5-32-548) -&amp;gt; Account Operators&lt;br /&gt;
 Print Operators (S-1-5-32-550) -&amp;gt; Print Operators&lt;br /&gt;
 Backup Operators (S-1-5-32-551) -&amp;gt; Backup Operators&lt;br /&gt;
 Replicators (S-1-5-32-552) -&amp;gt; Replicators&lt;br /&gt;
 Power Users (S-1-5-21-4070117540-217532476-2757550252-2912) -&amp;gt; Power Users&lt;br /&gt;
 PUNJABGOVT\Domain Admins (S-1-5-21-4070117540-217532476-2757550252-512) -&amp;gt; Domain Admins&lt;br /&gt;
 PUNJABGOVT\TCSDC (S-1-5-21-4070117540-217532476-2757550252-39001) -&amp;gt; TCSDC&lt;br /&gt;
 PUNJAB-USERS (S-1-5-21-4070117540-217532476-2757550252-39003) -&amp;gt; PUNJAB-USERS&lt;br /&gt;
 Datacenter Administrator (S-1-5-21-4070117540-217532476-2757550252-39005) -&amp;gt; data_admin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Samba troubleshooting==&lt;br /&gt;
&lt;br /&gt;
 If the client computers get the error that they cannot contact the Domain Controller specified,&lt;br /&gt;
  then check if nmb is running. If not, start  it.&lt;br /&gt;
 # service nmb start&lt;br /&gt;
&lt;br /&gt;
 To check if an account can connect:&lt;br /&gt;
 # smbclient -L samba.pbifmsiwdms.pjb -U &amp;lt;username&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 To check if a user is read from the ldap server:&lt;br /&gt;
 # getent passwd &amp;lt;username&amp;gt;&lt;br /&gt;
 For example: &lt;br /&gt;
 # getent passwd admin &lt;br /&gt;
 admin:*:11071:5122:System User:/home/admin:/bin/bash&lt;br /&gt;
&lt;br /&gt;
 This will show the user&#039;s POSIX details, as stored on the 389-DS server.&lt;br /&gt;
&lt;br /&gt;
 It can be similarly used for groups, as follows:&lt;br /&gt;
 # getent group &#039;Domain Admins&#039; &lt;br /&gt;
 Domain Admins:*:5122:admin &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &#039;net&#039; commands:&lt;br /&gt;
&lt;br /&gt;
 To see the group mappings:&lt;br /&gt;
 # net groupmap list&lt;br /&gt;
&lt;br /&gt;
 To add a group:&lt;br /&gt;
 # net groupmap add rid=513 \ &lt;br /&gt;
 ntgroup=&#039;PUNJABGOVT\Domain Users&#039; \&lt;br /&gt;
 unixgroup=&#039;Domain Users&#039;&lt;br /&gt;
&lt;br /&gt;
 To see a group&#039;s members:&lt;br /&gt;
 # net rpc group members &amp;quot;Domain Admins”&lt;br /&gt;
&lt;br /&gt;
 To see a members&#039;s groups:&lt;br /&gt;
 # net rpc user info admin&lt;br /&gt;
&lt;br /&gt;
 To get the SID:&lt;br /&gt;
 # net getdomainsid&lt;br /&gt;
&lt;br /&gt;
     If Samba root/administrator users are blocked&lt;br /&gt;
   # pdbedit –c=’[]’ –-user=root&lt;br /&gt;
   # pdbedit –c=’[U]’ –-user=root&lt;br /&gt;
&lt;br /&gt;
==Test Join==&lt;br /&gt;
&lt;br /&gt;
 # Net rpc testjoin&lt;br /&gt;
 To join server in domain by admin user&lt;br /&gt;
 # net join –U admin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Manual Swich Over:==  &lt;br /&gt;
&lt;br /&gt;
 We have Done the manual Swich Over instead of Cluster Because any updation and upgradation &lt;br /&gt;
 of packages and operation System effect Cluster  directly or indirectly. Due to which whole architecture&lt;br /&gt;
 get disturbe.  So after Analysis and  discussion We proceed with Manual swich over.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 1.	Node1: &lt;br /&gt;
 # /etc/init.d/network restart&lt;br /&gt;
 #/etc/init.d/smb stop&lt;br /&gt;
 #/etc/init.d/nmb stop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Node2:&lt;br /&gt;
&lt;br /&gt;
 # ifconfig eth0:0 192.168.10.93 netmask 255.255.255.0&lt;br /&gt;
 # /etc/init.d/smb start;&lt;br /&gt;
 #/etc/init.d/nmb start&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Zimbra_Archive_Server&amp;diff=1504</id>
		<title>Zimbra Archive Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Zimbra_Archive_Server&amp;diff=1504"/>
		<updated>2013-11-22T12:14:49Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Zimbra]]&lt;br /&gt;
 &lt;br /&gt;
                                       &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Simple archival server for Zimbra OSE==&lt;br /&gt;
 &lt;br /&gt;
==Introduction==&lt;br /&gt;
 &lt;br /&gt;
This document shows how to create a simple archiving server. If you have a user &#039;keyur@example.com&#039;, all mails sent to and from this email ID  will be forwarded to &#039;keyur@archive.example.com&#039;. &lt;br /&gt;
We will need two servers for this. Both will be installed with Zimbra, one being the live mail server &#039;example.com&#039;, and the other the archiving server, &#039;archive.example.com&#039;. The archiving server should have a much larger HDD drive than the mail server, preferably formatted using LVM, to allow for expansion later. &lt;br /&gt;
&lt;br /&gt;
   The installation on each server will be independent, ie, this isn&#039;t a multi-server setup. Each server will be a single-server, with the only difference being the domain names.&lt;br /&gt;
 &lt;br /&gt;
 In this example, let&#039;s assume the live server&#039;s domain is &#039;example.com&#039;, with IP 192.168.1.5, and the archiving server is &#039;archive.example.com&#039;, with IP 192.168.1.18. Install Zimbra on both as usual.&lt;br /&gt;
&lt;br /&gt;
==DNS== &lt;br /&gt;
&lt;br /&gt;
 The servers will require a local DNS, as we use this to forward the mails. In this example, I will assume that we have set up a caching name server using bind on the live server. Typical entries would be something like this: &lt;br /&gt;
 example.com.       	IN A            192.0.43.10&lt;br /&gt;
 mail.example.com.       IN A            192.168.1.5&lt;br /&gt;
 example.com.            IN MX           10 mail.example.com.&lt;br /&gt;
 Along with this, we need to add an A and MX record for archive.example.com as well. &lt;br /&gt;
 archive.example.com.    IN A            192.168.1.18&lt;br /&gt;
 archive.example.com.    IN MX           10 archive.example.com.&lt;br /&gt;
 Now all mails addressed to &#039;archive.example.com&#039; will be forwarded to the archive server. &lt;br /&gt;
&lt;br /&gt;
==Postfix== &lt;br /&gt;
 In postfix, we can specify an email address to which all incoming and outgoing mails from a particular email ID will be forwarded to. This is done using &#039;sender_bcc_maps&#039; and &#039;recipient_bcc_maps&#039;. All these changes are done only on the main server. &lt;br /&gt;
We make the following entries at the end of /opt/zimbra/postfix/conf/main.cf &lt;br /&gt;
&lt;br /&gt;
 sender_bcc_maps = hash:/opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
 recipient_bcc_maps = hash:/opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
 &lt;br /&gt;
The file &#039;/opt/zimbra/postfix/conf/archivelist&#039; will have users in the following format: keyur@example.com keyur@archive.example.com &lt;br /&gt;
 All mails to and from keyur@example.com will be forwarded to keyur@archive.example.com.&lt;br /&gt;
&lt;br /&gt;
==Manual addition== &lt;br /&gt;
 Create a user on the main server, and then the corresponding user on the archive server. Then add the users in the format as show above to the file &#039;/opt/zimbra/postfix/conf/archivelist&#039;, and then run the postmap command as the zimbra user: &lt;br /&gt;
 $ postmap /opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
 $ postfix reload&lt;br /&gt;
==Script== &lt;br /&gt;
 The following script to add users automatically on the archive server, and also to the &#039;archivelist&#039; file. Run this on the main server, and all users will be automatically added. You can place it in the crontab for every half an hour, so that when a new user is created on the main server, he/she will be automatically added to the archive server. SSH using keys (password-less ssh) between the main and archive server is necessary for the script to function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
# ENSURE ALL THE SERVERS HAVE PASSWORDLESS SSH AUTHENTICATON (Login using keys),&lt;br /&gt;
# OR THE SCRIPT WILL FAIL&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
#  Zimbra Archiving&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
#  &lt;br /&gt;
#&lt;br /&gt;
#  This script will add users that are present on the main Zimbra server, but not&lt;br /&gt;
#  on the archival server. It will also make the appropriate changes in postfix.&lt;br /&gt;
# ------------------------------------------------------------------------------&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
# IP of the archive server (archive.example.com)&lt;br /&gt;
ARCHIP=172.16.1.17&lt;br /&gt;
&lt;br /&gt;
# File names of example.com and archive.example.com users&lt;br /&gt;
# MAINLST is the userlist from the main server (example.com)&lt;br /&gt;
# ARLST is the userlist from the archive server (archive.example.com)&lt;br /&gt;
MAINLST=mainserverlist&lt;br /&gt;
ARLST=archiveuserlist&lt;br /&gt;
&lt;br /&gt;
# Emptying out the input file for zmprov&lt;br /&gt;
echo &amp;quot;&amp;quot; &amp;gt; /tmp/zmprovarchiv&lt;br /&gt;
&lt;br /&gt;
# Getting userlist from the archive server&lt;br /&gt;
ssh $ARCHIP &#039;su -c &amp;quot;zmprov -l gaa | cut -d\@ -f1 &amp;gt; /tmp/archiveuserlist&amp;quot; -l zimbra&#039;&lt;br /&gt;
rsync -Pa $ARCHIP:/tmp/archiveuserlist /tmp/$ARLIST&lt;br /&gt;
&lt;br /&gt;
# Getting userlist from local (main) server&lt;br /&gt;
su -c &amp;quot;zmprov -l gaa | cut -d\@ -f1 &amp;gt; /tmp/$MAINLST&amp;quot; -l zimbra&lt;br /&gt;
&lt;br /&gt;
# Sorting the files for comparison&lt;br /&gt;
sort /tmp/$MAINLST &amp;gt; /tmp/sorted$MAINLST&lt;br /&gt;
sort /tmp/$ARLST &amp;gt; /tmp/sorted$ARLST&lt;br /&gt;
&lt;br /&gt;
# Comparing the files, and getting the unique users of the example.com domain&lt;br /&gt;
# This will get the new users created on example.com, but not present on the archive server&lt;br /&gt;
comm -23 /tmp/sorted$MAINLST /tmp/sorted$ARLST &amp;gt; /tmp/newusers&lt;br /&gt;
echo &amp;quot;Checking if there are new users&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if [ -s /tmp/newusers ]; then&lt;br /&gt;
   # Loop to read users one by one&lt;br /&gt;
   for newuser in `cat /tmp/newusers`; do&lt;br /&gt;
        # Creating a file that will be the input for zmprov.&lt;br /&gt;
        # This will create the new user accounts on the archive server.&lt;br /&gt;
        # The user&#039;s passwords have been set to &#039;very_secure_PW_31812&#039;&lt;br /&gt;
        echo &amp;quot;ca $newuser@archive.triburg.co.in very_secure_PW_31812&amp;quot; &amp;gt;&amp;gt; /tmp/zmprovarchiv&lt;br /&gt;
    done&lt;br /&gt;
    # Creates the file for postfix mapping. This file contains users in the form of &#039;from&#039; and &#039;to&#039;&lt;br /&gt;
    awk &#039;{print $1&amp;quot;@triburg.co.in&amp;quot;,&amp;quot;\t&amp;quot;,$1&amp;quot;@archive.triburg.co.in&amp;quot;}&#039; /tmp/newusers  &amp;gt;&amp;gt; /opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
&lt;br /&gt;
    # rsync the zmprov file to the archive server&lt;br /&gt;
    rsync -Pa /tmp/zmprovarchiv $ARCHIP:/tmp&lt;br /&gt;
&lt;br /&gt;
    # Runs the zmprov command to add users on the archive server&lt;br /&gt;
    ssh $ARCHIP &#039;su -l zimbra -c zmprov &amp;lt; /tmp/zmprovarchiv&#039;&lt;br /&gt;
&lt;br /&gt;
    # Postmapping on  the servers&lt;br /&gt;
    su -c &amp;quot;postmap /opt/zimbra/postfix/conf/archivelist&amp;quot; -l zimbra&lt;br /&gt;
    su -c &amp;quot;postfix reload&amp;quot; -l zimbra&lt;br /&gt;
&lt;br /&gt;
else&lt;br /&gt;
   exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Made By&lt;br /&gt;
Abhinav Sharma&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Zimbra_Archive_Server&amp;diff=1503</id>
		<title>Zimbra Archive Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Zimbra_Archive_Server&amp;diff=1503"/>
		<updated>2013-11-22T11:16:49Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: /* Postfix */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Zimbra]]&lt;br /&gt;
 &lt;br /&gt;
                                       &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Simple archival server for Zimbra OSE==&lt;br /&gt;
 &lt;br /&gt;
==Introduction==&lt;br /&gt;
 &lt;br /&gt;
This document shows how to create a simple archiving server. If you have a user &#039;keyur@example.com&#039;, all mails sent to and from this email ID  will be forwarded to &#039;keyur@archive.example.com&#039;. &lt;br /&gt;
We will need two servers for this. Both will be installed with Zimbra, one being the live mail server &#039;example.com&#039;, and the other the archiving server, &#039;archive.example.com&#039;. The archiving server should have a much larger HDD drive than the mail server, preferably formatted using LVM, to allow for expansion later. &lt;br /&gt;
&lt;br /&gt;
 The installation on each server will be independent, ie, this isn&#039;t a multi-server setup. Each server will be a single-server, with the only  difference being the domain names. &lt;br /&gt;
In this example, let&#039;s assume the live server&#039;s domain is &#039;example.com&#039;, with IP 192.168.1.5, and the archiving server is &#039;archive.example.com&#039;, with IP 192.168.1.18. Install Zimbra on both as usual. &lt;br /&gt;
==DNS== &lt;br /&gt;
&lt;br /&gt;
 The servers will require a local DNS, as we use this to forward the mails. In this example, I will assume that we have set up a caching name server using bind on the live server. Typical entries would be something like this: &lt;br /&gt;
 example.com.       	IN A            192.0.43.10&lt;br /&gt;
 mail.example.com.       IN A            192.168.1.5&lt;br /&gt;
 example.com.            IN MX           10 mail.example.com.&lt;br /&gt;
 Along with this, we need to add an A and MX record for archive.example.com as well. &lt;br /&gt;
 archive.example.com.    IN A            192.168.1.18&lt;br /&gt;
 archive.example.com.    IN MX           10 archive.example.com.&lt;br /&gt;
 Now all mails addressed to &#039;archive.example.com&#039; will be forwarded to the archive server. &lt;br /&gt;
&lt;br /&gt;
==Postfix== &lt;br /&gt;
 In postfix, we can specify an email address to which all incoming and outgoing mails from a particular email ID will be forwarded to. This is done using &#039;sender_bcc_maps&#039; and &#039;recipient_bcc_maps&#039;. All these changes are done only on the main server. &lt;br /&gt;
We make the following entries at the end of /opt/zimbra/postfix/conf/main.cf &lt;br /&gt;
&lt;br /&gt;
 sender_bcc_maps = hash:/opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
 recipient_bcc_maps = hash:/opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
 &lt;br /&gt;
The file &#039;/opt/zimbra/postfix/conf/archivelist&#039; will have users in the following format: keyur@example.com keyur@archive.example.com &lt;br /&gt;
 All mails to and from keyur@example.com will be forwarded to keyur@archive.example.com.&lt;br /&gt;
&lt;br /&gt;
==Manual addition== &lt;br /&gt;
 Create a user on the main server, and then the corresponding user on the archive server. Then add the users in the format as show above to the file &#039;/opt/zimbra/postfix/conf/archivelist&#039;, and then run the postmap command as the zimbra user: &lt;br /&gt;
 $ postmap /opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
 $ postfix reload&lt;br /&gt;
==Script== &lt;br /&gt;
 The following script to add users automatically on the archive server, and also to the &#039;archivelist&#039; file. Run this on the main server, and all users will be automatically added. You can place it in the crontab for every half an hour, so that when a new user is created on the main server, he/she will be automatically added to the archive server. SSH using keys (password-less ssh) between the main and archive server is necessary for the script to function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
# ENSURE ALL THE SERVERS HAVE PASSWORDLESS SSH AUTHENTICATON (Login using keys),&lt;br /&gt;
# OR THE SCRIPT WILL FAIL&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
#  Zimbra Archiving&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
#  &lt;br /&gt;
#&lt;br /&gt;
#  This script will add users that are present on the main Zimbra server, but not&lt;br /&gt;
#  on the archival server. It will also make the appropriate changes in postfix.&lt;br /&gt;
# ------------------------------------------------------------------------------&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
# IP of the archive server (archive.example.com)&lt;br /&gt;
ARCHIP=172.16.1.17&lt;br /&gt;
&lt;br /&gt;
# File names of example.com and archive.example.com users&lt;br /&gt;
# MAINLST is the userlist from the main server (example.com)&lt;br /&gt;
# ARLST is the userlist from the archive server (archive.example.com)&lt;br /&gt;
MAINLST=mainserverlist&lt;br /&gt;
ARLST=archiveuserlist&lt;br /&gt;
&lt;br /&gt;
# Emptying out the input file for zmprov&lt;br /&gt;
echo &amp;quot;&amp;quot; &amp;gt; /tmp/zmprovarchiv&lt;br /&gt;
&lt;br /&gt;
# Getting userlist from the archive server&lt;br /&gt;
ssh $ARCHIP &#039;su -c &amp;quot;zmprov -l gaa | cut -d\@ -f1 &amp;gt; /tmp/archiveuserlist&amp;quot; -l zimbra&#039;&lt;br /&gt;
rsync -Pa $ARCHIP:/tmp/archiveuserlist /tmp/$ARLIST&lt;br /&gt;
&lt;br /&gt;
# Getting userlist from local (main) server&lt;br /&gt;
su -c &amp;quot;zmprov -l gaa | cut -d\@ -f1 &amp;gt; /tmp/$MAINLST&amp;quot; -l zimbra&lt;br /&gt;
&lt;br /&gt;
# Sorting the files for comparison&lt;br /&gt;
sort /tmp/$MAINLST &amp;gt; /tmp/sorted$MAINLST&lt;br /&gt;
sort /tmp/$ARLST &amp;gt; /tmp/sorted$ARLST&lt;br /&gt;
&lt;br /&gt;
# Comparing the files, and getting the unique users of the example.com domain&lt;br /&gt;
# This will get the new users created on example.com, but not present on the archive server&lt;br /&gt;
comm -23 /tmp/sorted$MAINLST /tmp/sorted$ARLST &amp;gt; /tmp/newusers&lt;br /&gt;
echo &amp;quot;Checking if there are new users&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if [ -s /tmp/newusers ]; then&lt;br /&gt;
   # Loop to read users one by one&lt;br /&gt;
   for newuser in `cat /tmp/newusers`; do&lt;br /&gt;
        # Creating a file that will be the input for zmprov.&lt;br /&gt;
        # This will create the new user accounts on the archive server.&lt;br /&gt;
        # The user&#039;s passwords have been set to &#039;very_secure_PW_31812&#039;&lt;br /&gt;
        echo &amp;quot;ca $newuser@archive.triburg.co.in very_secure_PW_31812&amp;quot; &amp;gt;&amp;gt; /tmp/zmprovarchiv&lt;br /&gt;
    done&lt;br /&gt;
    # Creates the file for postfix mapping. This file contains users in the form of &#039;from&#039; and &#039;to&#039;&lt;br /&gt;
    awk &#039;{print $1&amp;quot;@triburg.co.in&amp;quot;,&amp;quot;\t&amp;quot;,$1&amp;quot;@archive.triburg.co.in&amp;quot;}&#039; /tmp/newusers  &amp;gt;&amp;gt; /opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
&lt;br /&gt;
    # rsync the zmprov file to the archive server&lt;br /&gt;
    rsync -Pa /tmp/zmprovarchiv $ARCHIP:/tmp&lt;br /&gt;
&lt;br /&gt;
    # Runs the zmprov command to add users on the archive server&lt;br /&gt;
    ssh $ARCHIP &#039;su -l zimbra -c zmprov &amp;lt; /tmp/zmprovarchiv&#039;&lt;br /&gt;
&lt;br /&gt;
    # Postmapping on  the servers&lt;br /&gt;
    su -c &amp;quot;postmap /opt/zimbra/postfix/conf/archivelist&amp;quot; -l zimbra&lt;br /&gt;
    su -c &amp;quot;postfix reload&amp;quot; -l zimbra&lt;br /&gt;
&lt;br /&gt;
else&lt;br /&gt;
   exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Made By&lt;br /&gt;
Abhinav Sharma&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Zimbra_Archive_Server&amp;diff=1502</id>
		<title>Zimbra Archive Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Zimbra_Archive_Server&amp;diff=1502"/>
		<updated>2013-11-22T11:15:23Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Created page with &amp;quot;Category:Zimbra                                              ==Simple archival server for Zimbra OSE==   ==Introduction==   This document shows how to create a simple arch...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Zimbra]]&lt;br /&gt;
 &lt;br /&gt;
                                       &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Simple archival server for Zimbra OSE==&lt;br /&gt;
 &lt;br /&gt;
==Introduction==&lt;br /&gt;
 &lt;br /&gt;
This document shows how to create a simple archiving server. If you have a user &#039;keyur@example.com&#039;, all mails sent to and from this email ID  will be forwarded to &#039;keyur@archive.example.com&#039;. &lt;br /&gt;
We will need two servers for this. Both will be installed with Zimbra, one being the live mail server &#039;example.com&#039;, and the other the archiving server, &#039;archive.example.com&#039;. The archiving server should have a much larger HDD drive than the mail server, preferably formatted using LVM, to allow for expansion later. &lt;br /&gt;
&lt;br /&gt;
 The installation on each server will be independent, ie, this isn&#039;t a multi-server setup. Each server will be a single-server, with the only  difference being the domain names. &lt;br /&gt;
In this example, let&#039;s assume the live server&#039;s domain is &#039;example.com&#039;, with IP 192.168.1.5, and the archiving server is &#039;archive.example.com&#039;, with IP 192.168.1.18. Install Zimbra on both as usual. &lt;br /&gt;
==DNS== &lt;br /&gt;
&lt;br /&gt;
 The servers will require a local DNS, as we use this to forward the mails. In this example, I will assume that we have set up a caching name server using bind on the live server. Typical entries would be something like this: &lt;br /&gt;
 example.com.       	IN A            192.0.43.10&lt;br /&gt;
 mail.example.com.       IN A            192.168.1.5&lt;br /&gt;
 example.com.            IN MX           10 mail.example.com.&lt;br /&gt;
 Along with this, we need to add an A and MX record for archive.example.com as well. &lt;br /&gt;
 archive.example.com.    IN A            192.168.1.18&lt;br /&gt;
 archive.example.com.    IN MX           10 archive.example.com.&lt;br /&gt;
 Now all mails addressed to &#039;archive.example.com&#039; will be forwarded to the archive server. &lt;br /&gt;
&lt;br /&gt;
==Postfix== &lt;br /&gt;
 In postfix, we can specify an email address to which all incoming and outgoing mails from a particular email ID will be forwarded to. This is done using &#039;sender_bcc_maps&#039; and &#039;recipient_bcc_maps&#039;. All these changes are done only on the main server. &lt;br /&gt;
We make the following entries at the end of /opt/zimbra/postfix/conf/main.cf &lt;br /&gt;
 sender_bcc_maps = hash:/opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
 recipient_bcc_maps = hash:/opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
 The file &#039;/opt/zimbra/postfix/conf/archivelist&#039; will have users in the following format: keyur@example.com keyur@archive.example.com &lt;br /&gt;
 All mails to and from keyur@example.com will be forwarded to keyur@archive.example.com. &lt;br /&gt;
&lt;br /&gt;
==Manual addition== &lt;br /&gt;
 Create a user on the main server, and then the corresponding user on the archive server. Then add the users in the format as show above to the file &#039;/opt/zimbra/postfix/conf/archivelist&#039;, and then run the postmap command as the zimbra user: &lt;br /&gt;
 $ postmap /opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
 $ postfix reload&lt;br /&gt;
==Script== &lt;br /&gt;
 The following script to add users automatically on the archive server, and also to the &#039;archivelist&#039; file. Run this on the main server, and all users will be automatically added. You can place it in the crontab for every half an hour, so that when a new user is created on the main server, he/she will be automatically added to the archive server. SSH using keys (password-less ssh) between the main and archive server is necessary for the script to function. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
# ENSURE ALL THE SERVERS HAVE PASSWORDLESS SSH AUTHENTICATON (Login using keys),&lt;br /&gt;
# OR THE SCRIPT WILL FAIL&lt;br /&gt;
# -----------------------------------------------------------------------------&lt;br /&gt;
#  Zimbra Archiving&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
#  &lt;br /&gt;
#&lt;br /&gt;
#  This script will add users that are present on the main Zimbra server, but not&lt;br /&gt;
#  on the archival server. It will also make the appropriate changes in postfix.&lt;br /&gt;
# ------------------------------------------------------------------------------&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
# IP of the archive server (archive.example.com)&lt;br /&gt;
ARCHIP=172.16.1.17&lt;br /&gt;
&lt;br /&gt;
# File names of example.com and archive.example.com users&lt;br /&gt;
# MAINLST is the userlist from the main server (example.com)&lt;br /&gt;
# ARLST is the userlist from the archive server (archive.example.com)&lt;br /&gt;
MAINLST=mainserverlist&lt;br /&gt;
ARLST=archiveuserlist&lt;br /&gt;
&lt;br /&gt;
# Emptying out the input file for zmprov&lt;br /&gt;
echo &amp;quot;&amp;quot; &amp;gt; /tmp/zmprovarchiv&lt;br /&gt;
&lt;br /&gt;
# Getting userlist from the archive server&lt;br /&gt;
ssh $ARCHIP &#039;su -c &amp;quot;zmprov -l gaa | cut -d\@ -f1 &amp;gt; /tmp/archiveuserlist&amp;quot; -l zimbra&#039;&lt;br /&gt;
rsync -Pa $ARCHIP:/tmp/archiveuserlist /tmp/$ARLIST&lt;br /&gt;
&lt;br /&gt;
# Getting userlist from local (main) server&lt;br /&gt;
su -c &amp;quot;zmprov -l gaa | cut -d\@ -f1 &amp;gt; /tmp/$MAINLST&amp;quot; -l zimbra&lt;br /&gt;
&lt;br /&gt;
# Sorting the files for comparison&lt;br /&gt;
sort /tmp/$MAINLST &amp;gt; /tmp/sorted$MAINLST&lt;br /&gt;
sort /tmp/$ARLST &amp;gt; /tmp/sorted$ARLST&lt;br /&gt;
&lt;br /&gt;
# Comparing the files, and getting the unique users of the example.com domain&lt;br /&gt;
# This will get the new users created on example.com, but not present on the archive server&lt;br /&gt;
comm -23 /tmp/sorted$MAINLST /tmp/sorted$ARLST &amp;gt; /tmp/newusers&lt;br /&gt;
echo &amp;quot;Checking if there are new users&amp;quot;&lt;br /&gt;
&lt;br /&gt;
if [ -s /tmp/newusers ]; then&lt;br /&gt;
   # Loop to read users one by one&lt;br /&gt;
   for newuser in `cat /tmp/newusers`; do&lt;br /&gt;
        # Creating a file that will be the input for zmprov.&lt;br /&gt;
        # This will create the new user accounts on the archive server.&lt;br /&gt;
        # The user&#039;s passwords have been set to &#039;very_secure_PW_31812&#039;&lt;br /&gt;
        echo &amp;quot;ca $newuser@archive.triburg.co.in very_secure_PW_31812&amp;quot; &amp;gt;&amp;gt; /tmp/zmprovarchiv&lt;br /&gt;
    done&lt;br /&gt;
    # Creates the file for postfix mapping. This file contains users in the form of &#039;from&#039; and &#039;to&#039;&lt;br /&gt;
    awk &#039;{print $1&amp;quot;@triburg.co.in&amp;quot;,&amp;quot;\t&amp;quot;,$1&amp;quot;@archive.triburg.co.in&amp;quot;}&#039; /tmp/newusers  &amp;gt;&amp;gt; /opt/zimbra/postfix/conf/archivelist&lt;br /&gt;
&lt;br /&gt;
    # rsync the zmprov file to the archive server&lt;br /&gt;
    rsync -Pa /tmp/zmprovarchiv $ARCHIP:/tmp&lt;br /&gt;
&lt;br /&gt;
    # Runs the zmprov command to add users on the archive server&lt;br /&gt;
    ssh $ARCHIP &#039;su -l zimbra -c zmprov &amp;lt; /tmp/zmprovarchiv&#039;&lt;br /&gt;
&lt;br /&gt;
    # Postmapping on  the servers&lt;br /&gt;
    su -c &amp;quot;postmap /opt/zimbra/postfix/conf/archivelist&amp;quot; -l zimbra&lt;br /&gt;
    su -c &amp;quot;postfix reload&amp;quot; -l zimbra&lt;br /&gt;
&lt;br /&gt;
else&lt;br /&gt;
   exit&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Made By&lt;br /&gt;
Abhinav Sharma&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Muthoot_Cluster&amp;diff=1500</id>
		<title>Muthoot Cluster</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Muthoot_Cluster&amp;diff=1500"/>
		<updated>2013-11-19T11:46:36Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--[[User:Abhinav|Abhinav]] 15:20, 4 July 2013 (IST)[[category:Muthoot group]]&lt;br /&gt;
                                                           &#039;&#039;&#039;Cluster Of Muthoot&#039;&#039;&#039;&lt;br /&gt;
== Postgresql Cluster ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==IP Details:==&lt;br /&gt;
&lt;br /&gt;
 1.	Live Server ip: 192.168.1.133&lt;br /&gt;
 2.	Secondary Server ip: 192.168.1.132&lt;br /&gt;
 3.	Cluster Ip: 192.168.1.140&lt;br /&gt;
 4.	Mgmt port ip: 192.168.1.126 (liveserver)&lt;br /&gt;
 5.	Mgmt port ip: 192.168.1.127( Secondary)&lt;br /&gt;
 6.	Ip for heartbeat : 10.0.0.1 (node1)&lt;br /&gt;
 7.	Node 2: 10.0.0.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configuration:==&lt;br /&gt;
&lt;br /&gt;
 133# vim /etc/hosts&lt;br /&gt;
 192.168.1.133	liveserver.muthootco.com	liveserver&lt;br /&gt;
 192.168.1.132	liveserver1.muthootco.com	liveserver1&lt;br /&gt;
 10.0.0.1	node1.muthootco.com		node1&lt;br /&gt;
 10.0.0.2	node2.muthootco.com		node2&lt;br /&gt;
 192.168.1.127	node2-imm.muthootco.com		node2-imm&lt;br /&gt;
 192.168.1.126	node1-imm.muthootco.com		node1-imm&lt;br /&gt;
&lt;br /&gt;
 Give  10.0.0.1 ip in eth1 in liveserver And 10.0.0.2 ip in eth1 in secondary server.&lt;br /&gt;
&lt;br /&gt;
 Note : Give Ip to Management port Steps are follow:&lt;br /&gt;
 &lt;br /&gt;
 Step1: On boot Time go to bios&lt;br /&gt;
 Step2: System Settings--&amp;gt;Integrated Management Module --&amp;gt;  Network--&amp;gt;Give Ip&lt;br /&gt;
 &lt;br /&gt;
 133#  yum install cman rgmanager ricci luci&lt;br /&gt;
&lt;br /&gt;
 Note: luci package is only on one system &lt;br /&gt;
 &lt;br /&gt;
 Then open web interface :&lt;br /&gt;
 https://192.168.1.133:8084&lt;br /&gt;
 User: Same as system root details&lt;br /&gt;
 Then Go to Service Group Tab &lt;br /&gt;
 Then Press add button &lt;br /&gt;
 Service Name : Cluster-Service&lt;br /&gt;
 Failover Domain: None&lt;br /&gt;
 Recovery Policy : relocate&lt;br /&gt;
 IP Address: 192.168.1.140                \\ don’t give netmask for this IP&lt;br /&gt;
 &lt;br /&gt;
 133# yum remove libvirt           \\ Due to this package node can’t be add it’s give error&lt;br /&gt;
 &lt;br /&gt;
==Then Go To Node Tab==&lt;br /&gt;
 &lt;br /&gt;
 Add--&amp;gt;&lt;br /&gt;
 Node Name: node1&lt;br /&gt;
 Password: same as system&lt;br /&gt;
 Port: 11111&lt;br /&gt;
 Same Do for node 2&lt;br /&gt;
 &lt;br /&gt;
==Then Go To Fence Device Tab:==&lt;br /&gt;
 Press Add&lt;br /&gt;
 Fence Type: IPMI LAN&lt;br /&gt;
 Name : node2-imm&lt;br /&gt;
 Ip add- 192.168.1.127&lt;br /&gt;
 Login: USERID&lt;br /&gt;
 Password:xyz&lt;br /&gt;
 Authentication Type: None&lt;br /&gt;
 Privileges Level: default&lt;br /&gt;
&lt;br /&gt;
==Then Again Press add==&lt;br /&gt;
 Configure same &lt;br /&gt;
 Name – node1-imm&lt;br /&gt;
 Ip – 192.168.1.126&lt;br /&gt;
 Apply&lt;br /&gt;
&lt;br /&gt;
==Then  Go To node TAB==&lt;br /&gt;
&lt;br /&gt;
 Click on node 1--&amp;gt; Add fence method--&amp;gt;Fence_Method--&amp;gt;then Add fence instance --&amp;gt;node1-imm(IPMI LAN)--&amp;gt;Submit &lt;br /&gt;
&lt;br /&gt;
 Same do with node 2 configuration and add node2-imm&lt;br /&gt;
 &lt;br /&gt;
==Then Go To Service Group TAB==&lt;br /&gt;
&lt;br /&gt;
 Failover Domain: Failover&lt;br /&gt;
 Apply&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;Note&#039;&#039;&#039;: Make two LVM Volumes &lt;br /&gt;
 Vol Name: DB ,   Logical Vol : test&lt;br /&gt;
 Vol Name: LogsSpace  , Logical Vol : LogSystem&lt;br /&gt;
&lt;br /&gt;
 Then Go To Resources Tab:&lt;br /&gt;
 Add--&amp;gt; HA LVM--&amp;gt;&lt;br /&gt;
 Name : HA&lt;br /&gt;
 VG Name : DB&lt;br /&gt;
 Add--&amp;gt;Filesystem--&amp;gt;&lt;br /&gt;
 Name: DB File&lt;br /&gt;
 File System Type: ext4&lt;br /&gt;
 Mount point: /home/pgsql/data/base           \\path must be exist&lt;br /&gt;
 Device Name: /dev/mapper/DB-test&lt;br /&gt;
 Force Unmount : check mark&lt;br /&gt;
 Apply&lt;br /&gt;
&lt;br /&gt;
==Add --&amp;gt;HA LVM==&lt;br /&gt;
 Name : Logs&lt;br /&gt;
 Vol Grp Name: LogsSpace&lt;br /&gt;
&lt;br /&gt;
==Add--&amp;gt; Filesystem==&lt;br /&gt;
 Name: Logs_Details&lt;br /&gt;
 File System Type: ext4&lt;br /&gt;
 Mount point: /Logs&lt;br /&gt;
 Device Name:  /dev/mapper/LogsSpace-logSystem    &lt;br /&gt;
&lt;br /&gt;
 Add--&amp;gt;script&lt;br /&gt;
 Name: Sql-Script&lt;br /&gt;
 Full Path to script File: /etc/init.d/postgresql &lt;br /&gt;
 Apply&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Muthoot_Cluster&amp;diff=1499</id>
		<title>Muthoot Cluster</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Muthoot_Cluster&amp;diff=1499"/>
		<updated>2013-11-19T11:45:57Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: /* Then Go To Node Tab */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--[[User:Abhinav|Abhinav]] 15:20, 4 July 2013 (IST)[[category:Muthoot group]]&lt;br /&gt;
                                                           &#039;&#039;&#039;Cluster Of Muthoot&#039;&#039;&#039;&lt;br /&gt;
== Postgresql Cluster ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==IP Details:==&lt;br /&gt;
&lt;br /&gt;
 1.	Live Server ip: 192.168.1.133&lt;br /&gt;
 2.	Secondary Server ip: 192.168.1.132&lt;br /&gt;
 3.	Cluster Ip: 192.168.1.140&lt;br /&gt;
 4.	Mgmt port ip: 192.168.1.126 (liveserver)&lt;br /&gt;
 5.	Mgmt port ip: 192.168.1.127( Secondary)&lt;br /&gt;
 6.	Ip for heartbeat : 10.0.0.1 (node1)&lt;br /&gt;
 7.	Node 2: 10.0.0.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configuration:==&lt;br /&gt;
&lt;br /&gt;
 133# vim /etc/hosts&lt;br /&gt;
 192.168.1.133	liveserver.muthootco.com	liveserver&lt;br /&gt;
 192.168.1.132	liveserver1.muthootco.com	liveserver1&lt;br /&gt;
 10.0.0.1	node1.muthootco.com		node1&lt;br /&gt;
 10.0.0.2	node2.muthootco.com		node2&lt;br /&gt;
 192.168.1.127	node2-imm.muthootco.com		node2-imm&lt;br /&gt;
 192.168.1.126	node1-imm.muthootco.com		node1-imm&lt;br /&gt;
&lt;br /&gt;
 Give  10.0.0.1 ip in eth1 in liveserver And 10.0.0.2 ip in eth1 in secondary server.&lt;br /&gt;
&lt;br /&gt;
 Note : Give Ip to Management port Steps are follow:&lt;br /&gt;
 &lt;br /&gt;
 Step1: On boot Time go to bios&lt;br /&gt;
 Step2: System Settings--&amp;gt;Integrated Management Module --&amp;gt;  Network--&amp;gt;Give Ip&lt;br /&gt;
 &lt;br /&gt;
 133#  yum install cman rgmanager ricci luci&lt;br /&gt;
&lt;br /&gt;
 Note: luci package is only on one system &lt;br /&gt;
 &lt;br /&gt;
 Then open web interface :&lt;br /&gt;
 https://192.168.1.133:8084&lt;br /&gt;
 User: Same as system root details&lt;br /&gt;
 Then Go to Service Group Tab &lt;br /&gt;
 Then Press add button &lt;br /&gt;
 Service Name : Cluster-Service&lt;br /&gt;
 Failover Domain: None&lt;br /&gt;
 Recovery Policy : relocate&lt;br /&gt;
 IP Address: 192.168.1.140                \\ don’t give netmask for this IP&lt;br /&gt;
 &lt;br /&gt;
 133# yum remove libvirt           \\ Due to this package node can’t be add it’s give error&lt;br /&gt;
 &lt;br /&gt;
==Then Go To Node Tab==&lt;br /&gt;
 &lt;br /&gt;
 Add--&amp;gt;&lt;br /&gt;
 Node Name: node1&lt;br /&gt;
 Password: same as system&lt;br /&gt;
 Port: 11111&lt;br /&gt;
 Same Do for node 2&lt;br /&gt;
 ==Then Go To Fence Device Tab:==&lt;br /&gt;
 Press Add&lt;br /&gt;
 Fence Type: IPMI LAN&lt;br /&gt;
 Name : node2-imm&lt;br /&gt;
 Ip add- 192.168.1.127&lt;br /&gt;
 Login: USERID&lt;br /&gt;
 Password:xyz&lt;br /&gt;
 Authentication Type: None&lt;br /&gt;
 Privileges Level: default&lt;br /&gt;
&lt;br /&gt;
==Then Again Press add==&lt;br /&gt;
 Configure same &lt;br /&gt;
 Name – node1-imm&lt;br /&gt;
 Ip – 192.168.1.126&lt;br /&gt;
 Apply&lt;br /&gt;
&lt;br /&gt;
==Then  Go To node TAB==&lt;br /&gt;
&lt;br /&gt;
 Click on node 1--&amp;gt; Add fence method--&amp;gt;Fence_Method--&amp;gt;then Add fence instance --&amp;gt;node1-imm(IPMI LAN)--&amp;gt;Submit &lt;br /&gt;
&lt;br /&gt;
 Same do with node 2 configuration and add node2-imm&lt;br /&gt;
 &lt;br /&gt;
==Then Go To Service Group TAB==&lt;br /&gt;
&lt;br /&gt;
 Failover Domain: Failover&lt;br /&gt;
 Apply&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;Note&#039;&#039;&#039;: Make two LVM Volumes &lt;br /&gt;
 Vol Name: DB ,   Logical Vol : test&lt;br /&gt;
 Vol Name: LogsSpace  , Logical Vol : LogSystem&lt;br /&gt;
&lt;br /&gt;
 Then Go To Resources Tab:&lt;br /&gt;
 Add--&amp;gt; HA LVM--&amp;gt;&lt;br /&gt;
 Name : HA&lt;br /&gt;
 VG Name : DB&lt;br /&gt;
 Add--&amp;gt;Filesystem--&amp;gt;&lt;br /&gt;
 Name: DB File&lt;br /&gt;
 File System Type: ext4&lt;br /&gt;
 Mount point: /home/pgsql/data/base           \\path must be exist&lt;br /&gt;
 Device Name: /dev/mapper/DB-test&lt;br /&gt;
 Force Unmount : check mark&lt;br /&gt;
 Apply&lt;br /&gt;
&lt;br /&gt;
==Add --&amp;gt;HA LVM==&lt;br /&gt;
 Name : Logs&lt;br /&gt;
 Vol Grp Name: LogsSpace&lt;br /&gt;
&lt;br /&gt;
==Add--&amp;gt; Filesystem==&lt;br /&gt;
 Name: Logs_Details&lt;br /&gt;
 File System Type: ext4&lt;br /&gt;
 Mount point: /Logs&lt;br /&gt;
 Device Name:  /dev/mapper/LogsSpace-logSystem    &lt;br /&gt;
&lt;br /&gt;
 Add--&amp;gt;script&lt;br /&gt;
 Name: Sql-Script&lt;br /&gt;
 Full Path to script File: /etc/init.d/postgresql &lt;br /&gt;
 Apply&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Sender_recipient_restriction_in_zimbra&amp;diff=1498</id>
		<title>Sender recipient restriction in zimbra</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Sender_recipient_restriction_in_zimbra&amp;diff=1498"/>
		<updated>2013-11-19T05:18:58Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Zimbra]]&lt;br /&gt;
&lt;br /&gt;
                                     Restrict Recipient In Zimbra&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will show how you can modify postfix to restrict who can send and receive to certain addresses in your domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Steps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Create a &#039;permitted senders&#039; list (as user zimbra) - This is your list of domains and/or users who can email your protected email addresses: &lt;br /&gt;
&lt;br /&gt;
 vi /opt/zimbra/postfix/conf/permitted_senders&lt;br /&gt;
&lt;br /&gt;
 localhost               OK&lt;br /&gt;
 rockmanindustries.com            OK&lt;br /&gt;
 zimbramail.rockmanindustries.com     OK&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Create a &#039;protected recipients&#039; list (as user zimbra) - This is your list of email addresses that may only receive email from &#039;permitted senders&#039; &lt;br /&gt;
 vi /opt/zimbra/postfix/conf/protected_recipients&lt;br /&gt;
 test-dist-list@rockmanindustries.com        permitted_senders_list&lt;br /&gt;
 protected-user@rockmanindustries.com         permitted_senders_list&lt;br /&gt;
&lt;br /&gt;
	Create a simple bash script to create postfix DB files (as user zimbra): &lt;br /&gt;
 vi /opt/zimbra/postfix/conf/update_protected_recipients&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 echo &amp;quot;rebuild permitted_senders...&amp;quot;&lt;br /&gt;
 postmap /opt/zimbra/postfix/conf/permitted_senders&lt;br /&gt;
 echo &amp;quot;rebuild protected_recipients...&amp;quot;&lt;br /&gt;
 postmap /opt/zimbra/postfix/conf/protected_recipients&lt;br /&gt;
&lt;br /&gt;
	Make new script executable, &lt;br /&gt;
 chmod 755 /opt/zimbra/postfix/conf/update_protected_recipients&lt;br /&gt;
&lt;br /&gt;
	then run it... &lt;br /&gt;
  /opt/zimbra/postfix/conf/update_protected_recipients&lt;br /&gt;
&lt;br /&gt;
	You should now see permitted_senders.db and protected_recipients.db in the directory &lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
� Add necessary settings to /opt/zimbra/postfix/conf/main.cf &lt;br /&gt;
	vi /opt/zimbra/postfix/conf/main.cf&lt;br /&gt;
 [add these items to the file - note permitted_senders_list must match value in protected_recipients&lt;br /&gt;
 permitted_senders_list = check_sender_access hash:/opt/zimbra/postfix/conf/permitted_senders, reject&lt;br /&gt;
 smtpd_restriction_classes = permitted_senders_list&lt;br /&gt;
&lt;br /&gt;
 **Note this change to the main.cf won&#039;t survive upgrades. Be sure to save a copy of your main.cf file**&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 While in /opt/zimbra/postfix/conf/main.cf: You must also add the following snippet to smtpd_recipient_restrictions (first is preferred, otherwise anywhere before  the last &amp;quot;permit&amp;quot;, THE ORDER IN WHICH ITEMS APPEAR HERE IS IMPORTANT (if it appears after the &amp;quot;permit&amp;quot;, mail will always be accepted for the restricted recipient): &lt;br /&gt;
&lt;br /&gt;
 smtpd_recipient_restrictions = check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients, (rest of line here)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Now add your new restriction to the top of  smtpd_recipient_restrictions.cf&lt;br /&gt;
&lt;br /&gt;
 vi /opt/zimbra/conf/zmconfigd/smtpd_recipient_restrictions.cf &lt;br /&gt;
&lt;br /&gt;
 [paste this into the first line of the file, above any other settings] &lt;br /&gt;
&lt;br /&gt;
 check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients&lt;br /&gt;
&lt;br /&gt;
	Edit /opt/zimbra/conf/zmconfigd.cf and then remove the following line; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # POSTCONF smtpd_recipient_restrictions FILE postfix_recipient_restrictions.cf&lt;br /&gt;
&lt;br /&gt;
 postfix reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Note: Test It on one user that only localdomain mails is deliver to user mailbox    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
� Restricting users to send mails to certain domains&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Vi /opt/zimbra/conf/zmconfigd/smtpd_recipient_restrictions.cf&lt;br /&gt;
&lt;br /&gt;
 check_sender_access hash:/opt/zimbra/postfix/conf/restricted_senders&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	vi /opt/zimbra/conf/zmconfigd.cf &lt;br /&gt;
&lt;br /&gt;
 Find the section labeled SECTION mta and enter the following two lines directly below&lt;br /&gt;
 POSTCONF    smtpd_restriction_classes      local_only , permitted_sender_list&lt;br /&gt;
 POSTCONF    local_only                                 FILE  postfix_check_recipient_access.cf&lt;br /&gt;
&lt;br /&gt;
	Create a file &amp;quot;/opt/zimbra/conf/postfix_check_recipient_access.cf&amp;quot; &lt;br /&gt;
&lt;br /&gt;
	vi /opt/zimbra/conf/postfix_check_recipient_access.cf&lt;br /&gt;
&lt;br /&gt;
 check_recipient_access hash:/opt/zimbra/postfix/conf/local_domains, reject&lt;br /&gt;
&lt;br /&gt;
	Create a file &amp;quot;/opt/zimbra/postfix/conf/restricted_senders&amp;quot; and list all the users, whom you want to restrict. Follow this syntax: &lt;br /&gt;
&lt;br /&gt;
	vi /opt/zimbra/postfix/conf/restricted_senders&lt;br /&gt;
&lt;br /&gt;
      user@rockmanindustries.com            local_only&lt;br /&gt;
&lt;br /&gt;
	Create a file &amp;quot;/opt/zimbra/postfix/conf/local_domains&amp;quot; and list all the domains where &amp;quot;restricted users&amp;quot; allowed to sent mails. Please follow this syntax: &lt;br /&gt;
 vi /opt/zimbra/postfix/conf/local_domains&lt;br /&gt;
&lt;br /&gt;
      rockmanindustries.com                OK &lt;br /&gt;
      otheralloweddomain.com      OK&lt;br /&gt;
&lt;br /&gt;
	Run following commands: &lt;br /&gt;
 postmap /opt/zimbra/postfix/conf/restricted_senders&lt;br /&gt;
&lt;br /&gt;
      postmap /opt/zimbra/postfix/conf/local_domains&lt;br /&gt;
&lt;br /&gt;
 vim  /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf&lt;br /&gt;
 check_sender_access hash:/opt/zimbra/postfix/conf/restricted_senders &lt;br /&gt;
  &lt;br /&gt;
      zmmtactl stop&lt;br /&gt;
      zmmtactl start &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
�&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Sender_recipient_restriction_in_zimbra&amp;diff=1497</id>
		<title>Sender recipient restriction in zimbra</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Sender_recipient_restriction_in_zimbra&amp;diff=1497"/>
		<updated>2013-11-19T05:11:26Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Created page with &amp;quot;Category:Zimbra                                       Restrict Recipient In Zimbra     This will show how you can modify postfix to restrict who can send and receive to ce...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Zimbra]]&lt;br /&gt;
&lt;br /&gt;
                                     Restrict Recipient In Zimbra&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will show how you can modify postfix to restrict who can send and receive to certain addresses in your domain&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Steps&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Create a &#039;permitted senders&#039; list (as user zimbra) - This is your list of domains and/or users who can email your protected email addresses: &lt;br /&gt;
&lt;br /&gt;
 vi /opt/zimbra/postfix/conf/permitted_senders&lt;br /&gt;
&lt;br /&gt;
 localhost               OK&lt;br /&gt;
 rockmanindustries.com            OK&lt;br /&gt;
 zimbramail.rockmanindustries.com     OK&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Create a &#039;protected recipients&#039; list (as user zimbra) - This is your list of email addresses that may only receive email from &#039;permitted senders&#039; &lt;br /&gt;
 vi /opt/zimbra/postfix/conf/protected_recipients&lt;br /&gt;
 test-dist-list@rockmanindustries.com        permitted_senders_list&lt;br /&gt;
 protected-user@rockmanindustries.com         permitted_senders_list&lt;br /&gt;
&lt;br /&gt;
	Create a simple bash script to create postfix DB files (as user zimbra): &lt;br /&gt;
 vi /opt/zimbra/postfix/conf/update_protected_recipients&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 echo &amp;quot;rebuild permitted_senders...&amp;quot;&lt;br /&gt;
 postmap /opt/zimbra/postfix/conf/permitted_senders&lt;br /&gt;
 echo &amp;quot;rebuild protected_recipients...&amp;quot;&lt;br /&gt;
 postmap /opt/zimbra/postfix/conf/protected_recipients&lt;br /&gt;
&lt;br /&gt;
	Make new script executable, &lt;br /&gt;
 chmod 755 /opt/zimbra/postfix/conf/update_protected_recipients&lt;br /&gt;
&lt;br /&gt;
	then run it... &lt;br /&gt;
  /opt/zimbra/postfix/conf/update_protected_recipients&lt;br /&gt;
&lt;br /&gt;
	You should now see permitted_senders.db and protected_recipients.db in the directory &lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
� Add necessary settings to /opt/zimbra/postfix/conf/main.cf &lt;br /&gt;
	vi /opt/zimbra/postfix/conf/main.cf&lt;br /&gt;
 [add these items to the file - note permitted_senders_list must match value in protected_recipients&lt;br /&gt;
 permitted_senders_list = check_sender_access hash:/opt/zimbra/postfix/conf/permitted_senders, reject&lt;br /&gt;
 smtpd_restriction_classes = permitted_senders_list&lt;br /&gt;
&lt;br /&gt;
 **Note this change to the main.cf won&#039;t survive upgrades. Be sure to save a copy of your main.cf file**&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 While in /opt/zimbra/postfix/conf/main.cf: You must also add the following snippet to smtpd_recipient_restrictions (first is preferred, otherwise anywhere before  the last &amp;quot;permit&amp;quot;, THE ORDER IN WHICH ITEMS APPEAR HERE IS IMPORTANT (if it appears after the &amp;quot;permit&amp;quot;, mail will always be accepted for the restricted recipient): &lt;br /&gt;
&lt;br /&gt;
 smtpd_recipient_restrictions = check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients, (rest of line here)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Now add your new restriction to the top of  smtpd_recipient_restrictions.cf&lt;br /&gt;
&lt;br /&gt;
 vi /opt/zimbra/conf/zmconfigd/smtpd_recipient_restrictions.cf &lt;br /&gt;
&lt;br /&gt;
 [paste this into the first line of the file, above any other settings] &lt;br /&gt;
&lt;br /&gt;
 check_recipient_access hash:/opt/zimbra/postfix/conf/protected_recipients&lt;br /&gt;
&lt;br /&gt;
	Edit /opt/zimbra/conf/zmconfigd.cf and then remove the following line; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 # POSTCONF smtpd_recipient_restrictions FILE postfix_recipient_restrictions.cf&lt;br /&gt;
&lt;br /&gt;
 postfix reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Note: Test It on one user that only localdomain mails is deliver to user mailbox    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
� Restricting users to send mails to certain domains&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	Vi /opt/zimbra/conf/zmconfigd/smtpd_recipient_restrictions.cf&lt;br /&gt;
&lt;br /&gt;
 check_sender_access hash:/opt/zimbra/postfix/conf/restricted_senders&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	vi /opt/zimbra/conf/zmconfigd.cf &lt;br /&gt;
&lt;br /&gt;
 Find the section labeled SECTION mta and enter the following two lines directly below&lt;br /&gt;
 POSTCONF    smtpd_restriction_classes      local_only , permitted_sender_list&lt;br /&gt;
 POSTCONF    local_only                                 FILE  postfix_check_recipient_access.cf&lt;br /&gt;
&lt;br /&gt;
	Create a file &amp;quot;/opt/zimbra/conf/postfix_check_recipient_access.cf&amp;quot; &lt;br /&gt;
&lt;br /&gt;
	vi /opt/zimbra/conf/postfix_check_recipient_access.cf&lt;br /&gt;
&lt;br /&gt;
 check_recipient_access hash:/opt/zimbra/postfix/conf/local_domains, reject&lt;br /&gt;
&lt;br /&gt;
	Create a file &amp;quot;/opt/zimbra/postfix/conf/restricted_senders&amp;quot; and list all the users, whom you want to restrict. Follow this syntax: &lt;br /&gt;
&lt;br /&gt;
	vi /opt/zimbra/postfix/conf/restricted_senders&lt;br /&gt;
&lt;br /&gt;
      user@rockmanindustries.com            local_only&lt;br /&gt;
&lt;br /&gt;
	Create a file &amp;quot;/opt/zimbra/postfix/conf/local_domains&amp;quot; and list all the domains where &amp;quot;restricted users&amp;quot; allowed to sent mails. Please follow this syntax: &lt;br /&gt;
 vi /opt/zimbra/postfix/conf/local_domains&lt;br /&gt;
&lt;br /&gt;
      rockmanindustries.com                OK &lt;br /&gt;
      otheralloweddomain.com      OK&lt;br /&gt;
&lt;br /&gt;
	Run following commands: &lt;br /&gt;
 postmap /opt/zimbra/postfix/conf/restricted_senders&lt;br /&gt;
&lt;br /&gt;
      postmap /opt/zimbra/postfix/conf/local_domains &lt;br /&gt;
      zmmtactl stop&lt;br /&gt;
&lt;br /&gt;
      zmmtactl start &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
�&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Jboss_Multi_Instance&amp;diff=1435</id>
		<title>Jboss Multi Instance</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Jboss_Multi_Instance&amp;diff=1435"/>
		<updated>2013-10-07T11:30:30Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:JBOSS Related‏‎]]&lt;br /&gt;
&lt;br /&gt;
== To create new instance Of Jboss In Single Server ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 1:- create a new folder in jboss-6.0.0.Final/server/ .&lt;br /&gt;
     Example /jboss-6.0.0.Final/server/franco  here frenco is new folder&lt;br /&gt;
&lt;br /&gt;
 2:-copy all the files and folders of other /jboss-6.0.0.Final/server/default(server) in this new created folder Example copy all folders and&lt;br /&gt;
    files in /jboss-6.0.0.Final/server/franco (Main server).&lt;br /&gt;
 &lt;br /&gt;
3:- Go /jboss-6.0.0.Final/server/franco/conf/bindingservice.beans/META-INF/  folder an open file bindings-jboss-beans.xml change   &lt;br /&gt;
 “&amp;lt;parameter&amp;gt;${jboss.service.binding.set:default}&amp;lt;/parameter&amp;gt; ”  with  “ &amp;lt;parameter&amp;gt;${jboss.service.binding.set:ports-02}&amp;lt;/parameter&amp;gt; ” and  &lt;br /&gt;
  for  this change the port will be 8280.&lt;br /&gt;
&lt;br /&gt;
 4:-Go /usr/bin/jboss-6.0.0.Final/server/franco/deploy/sdnetWeb.war/WEB-INF edit web.xml &lt;br /&gt;
    change path of  dbConfigFile.&lt;br /&gt;
&lt;br /&gt;
 Example &amp;lt;param-name&amp;gt;dbConfigFile&amp;lt;/param-name&amp;gt; &lt;br /&gt;
             &amp;lt;param-value&amp;gt;/usr/bin/jboss-6.0.0.Final/server/franco/deploy/sdnetWeb.war/WEB-INF/Constants.props&amp;lt;/param-value&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 5:-Change respective setting for database in jboss-6.0.0.Final/server/franco/deploy /postgres-ds.xml&lt;br /&gt;
&lt;br /&gt;
 6:- Open jboss-6.0.0.Final/server/franco/deploy/sdnetWeb.war/WEB-INF  folder and edit Constant.prop  update the ports of ejbproviderurl ,    providerurl and other relative details .  &lt;br /&gt;
     Example in case of franco we put ejbproviderurl=1299,providerurl=1299 in place of 1099. &lt;br /&gt;
&lt;br /&gt;
 7 :- Change the database detail in jboss-6.0.0.Final/server/franco/conf/login-config.xml &lt;br /&gt;
&lt;br /&gt;
 8:-To manual server start, go usr/bin/jboss-6.0.0.Final/bin/&lt;br /&gt;
    type ./run.sh -c franco -b 0.0.0.0 to run franco server.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Jboss_Multi_Instance&amp;diff=1434</id>
		<title>Jboss Multi Instance</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Jboss_Multi_Instance&amp;diff=1434"/>
		<updated>2013-10-07T11:25:54Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Created page with &amp;quot;category:JBOSS Related‏‎  == To create new instance Of Jboss In Single Server ==     1:- create a new folder in jboss-6.0.0.Final/server/ .      Example /jboss-6.0.0.F...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:JBOSS Related‏‎]]&lt;br /&gt;
&lt;br /&gt;
== To create new instance Of Jboss In Single Server ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 1:- create a new folder in jboss-6.0.0.Final/server/ .&lt;br /&gt;
     Example /jboss-6.0.0.Final/server/franco  here frenco is new folder&lt;br /&gt;
&lt;br /&gt;
 2:-copy all the files and folders of other /jboss-6.0.0.Final/server/default(server) in  this new created folder Example  copy all folders  and files in   /jboss-6.0.0.Final/server/franco (Main server).&lt;br /&gt;
 3:- Go /jboss-6.0.0.Final/server/franco/conf/bindingservice.beans/META-INF/  folder an open file bindings-jboss-beans.xml change   &lt;br /&gt;
 “&amp;lt;parameter&amp;gt;${jboss.service.binding.set:default}&amp;lt;/parameter&amp;gt; ”  with  “ &amp;lt;parameter&amp;gt;${jboss.service.binding.set:ports-02}&amp;lt;/parameter&amp;gt; ”   for  this change the port will be 8280.&lt;br /&gt;
&lt;br /&gt;
 4:-Go /usr/bin/jboss-6.0.0.Final/server/franco/deploy/sdnetWeb.war/WEB-INF edit web.xml &lt;br /&gt;
    change path of  dbConfigFile.&lt;br /&gt;
&lt;br /&gt;
 Example &amp;lt;param-name&amp;gt;dbConfigFile&amp;lt;/param-name&amp;gt; &lt;br /&gt;
             &amp;lt;param-value&amp;gt;/usr/bin/jboss-6.0.0.Final/server/franco/deploy/sdnetWeb.war/WEB-INF/Constants.props&amp;lt;/param-value&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 5:-Change respective setting for database in jboss-6.0.0.Final/server/franco/deploy /postgres-ds.xml&lt;br /&gt;
&lt;br /&gt;
 6:- Open jboss-6.0.0.Final/server/franco/deploy/sdnetWeb.war/WEB-INF  folder and edit Constant.prop  update the ports of ejbproviderurl ,    providerurl and other relative details .  &lt;br /&gt;
     Example in case of franco we put ejbproviderurl=1299,providerurl=1299 in place of 1099. &lt;br /&gt;
&lt;br /&gt;
 7 :- Change the database detail in jboss-6.0.0.Final/server/franco/conf/login-config.xml &lt;br /&gt;
&lt;br /&gt;
 8:-To manual server start, go usr/bin/jboss-6.0.0.Final/bin/&lt;br /&gt;
    type ./run.sh -c franco -b 0.0.0.0 to run franco server.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Postgresql_Backup_via_Barman_backup_at_Muthoot_group&amp;diff=1419</id>
		<title>Postgresql Backup via Barman backup at Muthoot group</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Postgresql_Backup_via_Barman_backup_at_Muthoot_group&amp;diff=1419"/>
		<updated>2013-09-09T06:33:08Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: /* Restoration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Tetra Clients]]&lt;br /&gt;
[[category:Installation]]&lt;br /&gt;
[[category:Muthoot group]]&lt;br /&gt;
&lt;br /&gt;
== Backup Implemenation at Muthoot Group &#039;s Live PostgreSql Server (RHEL 6) ==&lt;br /&gt;
&lt;br /&gt;
==Environment==&lt;br /&gt;
&lt;br /&gt;
1.Live PG server - 192.168.1.133&lt;br /&gt;
&lt;br /&gt;
2.Backup Server - 192.168.1.132&lt;br /&gt;
&lt;br /&gt;
==Software Used==&lt;br /&gt;
&lt;br /&gt;
Barman Backup Software for PostgreSql - http://www.pgbarman.org/&lt;br /&gt;
&lt;br /&gt;
Document Refered - http://docs.pgbarman.org/&lt;br /&gt;
&lt;br /&gt;
==Installation process==&lt;br /&gt;
&lt;br /&gt;
please install barman on backup server i.e 192.168.1.132&lt;br /&gt;
Download the Rpm pakages from Sourceforge&lt;br /&gt;
 wget http://downloads.sourceforge.net/project/pgbarman/1.1.1/barman-1.1.1-1.rhel6.noarch.rpm&lt;br /&gt;
 wget http://downloads.sourceforge.net/project/pgbarman/rhel6-deps/python-argh-0.15.0-1.rhel6.noarch.rpm&lt;br /&gt;
&lt;br /&gt;
Satisfy it dependecies&lt;br /&gt;
 yum install python-argh&lt;br /&gt;
 yum install python-argparse&lt;br /&gt;
 yum install python-psycopg2&lt;br /&gt;
Install the Rpms &lt;br /&gt;
 rpm -Uvh python-argh-0.15.0-1.rhel6.noarch.rpm barman-1.1.1-1.rhel6.noarch.rpm&lt;br /&gt;
&lt;br /&gt;
Build Password less setup&lt;br /&gt;
&lt;br /&gt;
SSH Password less bi-direction setup  for postgres ( 192.168.1.133 ) and barman( 192.168.1.132 )  user &lt;br /&gt;
You should be able to login on ssh from .133 with user postgres to .132 on barman user without password and Visa-Versa&lt;br /&gt;
&lt;br /&gt;
Set the following in /etc/barman.conf &lt;br /&gt;
&lt;br /&gt;
 [barman]&lt;br /&gt;
 ; Main directory&lt;br /&gt;
 barman_home = /var/lib/barman&lt;br /&gt;
 ; System user&lt;br /&gt;
 barman_user = barman&lt;br /&gt;
 ; Log location&lt;br /&gt;
 log_file = /var/log/barman/barman.log&lt;br /&gt;
 ; Default compression level: possible values are None (default), bzip2, gzip or custom&lt;br /&gt;
 compression = gzip&lt;br /&gt;
 ; Pre/post backup hook scripts&lt;br /&gt;
 ;pre_backup_script = env | grep ^BARMAN&lt;br /&gt;
 ;post_backup_script = env | grep ^BARMAN&lt;br /&gt;
 ;; ; &#039;main&#039; PostgreSQL Server configuration&lt;br /&gt;
 [main]&lt;br /&gt;
 ;; ; Human readable description&lt;br /&gt;
 description =  &amp;quot;Main PostgreSQL Database&amp;quot;&lt;br /&gt;
 ;;&lt;br /&gt;
 ;; ; SSH options&lt;br /&gt;
 ssh_command = ssh postgres@192.168.1.133&lt;br /&gt;
 ;;&lt;br /&gt;
 ;; ; PostgreSQL connection string&lt;br /&gt;
 conninfo = host=192.168.1.133 user=postgres&lt;br /&gt;
&lt;br /&gt;
Also Ensure that .132 is trusted on main postgresql server .133 by adding the line in pg_hba.conf &lt;br /&gt;
&lt;br /&gt;
 host    all             all             192.168.1.132/32          trust&lt;br /&gt;
&lt;br /&gt;
and Reload the config via &lt;br /&gt;
&lt;br /&gt;
 pg_ctl reload &lt;br /&gt;
&lt;br /&gt;
Make archieve on postgres server (.133) in postgresql.conf&lt;br /&gt;
&lt;br /&gt;
 archive_mode = on&lt;br /&gt;
 archive_command = &#039;rsync -a %p barman@backup:INCOMING_WALS_DIRECTORY/%f&#039;&lt;br /&gt;
&lt;br /&gt;
Make sure you change the INCOMING_WALS_DIRECTORY placeholder with the value returned by the &#039;&#039;barman show-server main&#039;&#039; command (.132 via barman user) above.&lt;br /&gt;
&lt;br /&gt;
In Our case it is  /var/lib/barman/main/incoming/&lt;br /&gt;
&lt;br /&gt;
Restart the Postgresql Server ( reloading will not help )&lt;br /&gt;
&lt;br /&gt;
Now Check the status on barman server (.132)&lt;br /&gt;
 barman show-server main&lt;br /&gt;
&lt;br /&gt;
It should show something like below  &lt;br /&gt;
 Server main:&lt;br /&gt;
 active: true&lt;br /&gt;
 description: Main PostgreSQL Database&lt;br /&gt;
 ssh_command: ssh postgres@192.168.1.133&lt;br /&gt;
 conninfo: host=192.168.1.133 user=postgres&lt;br /&gt;
 backup_directory: /var/lib/barman/main&lt;br /&gt;
 basebackups_directory: /var/lib/barman/main/base&lt;br /&gt;
 wals_directory: /var/lib/barman/main/wals&lt;br /&gt;
 incoming_wals_directory: /var/lib/barman/main/incoming&lt;br /&gt;
 lock_file: /var/lib/barman/main/main.lock&lt;br /&gt;
 compression: gzip&lt;br /&gt;
 custom_compression_filter: None&lt;br /&gt;
 custom_decompression_filter: None&lt;br /&gt;
 retention_policy: None&lt;br /&gt;
 wal_retention_policy: None&lt;br /&gt;
 pre_backup_script: None&lt;br /&gt;
 post_backup_script: None&lt;br /&gt;
 current_xlog: 00000001000000010000000E&lt;br /&gt;
 last_shipped_wal: None&lt;br /&gt;
 archive_command: rsync -a %p barman@192.168.1.132:/var/lib/barman/main/incoming/%f&lt;br /&gt;
 server_txt_version: 8.4.13&lt;br /&gt;
 data_directory: /var/lib/pgsql/data&lt;br /&gt;
 archive_mode: on&lt;br /&gt;
 config_file: /var/lib/pgsql/data/postgresql.conf&lt;br /&gt;
 hba_file: /var/lib/pgsql/data/pg_hba.conf&lt;br /&gt;
 ident_file: /var/lib/pgsql/data/pg_ident.conf&lt;br /&gt;
&lt;br /&gt;
Checking the barman server &lt;br /&gt;
 barman check main&lt;br /&gt;
 Server main:&lt;br /&gt;
 ssh: OK&lt;br /&gt;
 PostgreSQL: OK&lt;br /&gt;
 archive_mode: OK&lt;br /&gt;
 archive_command: OK&lt;br /&gt;
 directories: OK&lt;br /&gt;
 compression settings: OK&lt;br /&gt;
&lt;br /&gt;
In our case we have linked the main diecrtory of /var/lib/barman to /home/postreg_barman_backup/main as the home partion is very big to hold the backups &lt;br /&gt;
&lt;br /&gt;
 ln -s  /home/postreg_barman_backup/main /var/lib/barman/&lt;br /&gt;
&lt;br /&gt;
==Backup Process==&lt;br /&gt;
As barman User on .132 server , running following command will take the backup &lt;br /&gt;
&lt;br /&gt;
 barman backup main&lt;br /&gt;
&lt;br /&gt;
==Crontab entry==&lt;br /&gt;
To have backup at 1:00 , please have cron entry done via barman user for  &#039;&#039;barman backup main&#039;&#039; command &lt;br /&gt;
&lt;br /&gt;
==Restoration==&lt;br /&gt;
To restore a whole server issue the following command:&lt;br /&gt;
&lt;br /&gt;
 barman@backup$ barman recover main 20110920T185953 /path/to/recover/directory&lt;br /&gt;
&lt;br /&gt;
where 20110920T185953 is the ID of the backup to be restored. When this command completes succesfully, /path/to/recover/directory contains a complete data directory ready to be started as a PostgreSQL database server.&lt;br /&gt;
&lt;br /&gt;
For Remote Recovery&lt;br /&gt;
&lt;br /&gt;
#barman recover main 20110920T185953 --remote-ssh-command postgres@server-ip:/tmp/recover &lt;br /&gt;
&lt;br /&gt;
Here is an example of a command that starts the server:&lt;br /&gt;
&lt;br /&gt;
 barman@backup$ pg_ctl -D /path/to/recover/directory start&lt;br /&gt;
&lt;br /&gt;
#pg_ctl Stop&lt;br /&gt;
#pg_ctl -D /tmp/recover start&lt;br /&gt;
&lt;br /&gt;
==Important Commands ==&lt;br /&gt;
&lt;br /&gt;
You can display the list of active servers that have been configured for your backup system with:&lt;br /&gt;
&lt;br /&gt;
 barman list-server&lt;br /&gt;
&lt;br /&gt;
You can show the configuration parameters for a given server with: we are using &#039;&#039;main&#039;&#039; as the server name , you can have multiple servers too .&lt;br /&gt;
&lt;br /&gt;
 barman show-server main&lt;br /&gt;
&lt;br /&gt;
You can list the catalogue of available backups for a given server with:&lt;br /&gt;
&lt;br /&gt;
 barman list-backup main&lt;br /&gt;
&lt;br /&gt;
You can check if the connection to a given server is properly working with:&lt;br /&gt;
&lt;br /&gt;
 barman check main&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Checking of the barman postgresql Backup== &lt;br /&gt;
&lt;br /&gt;
Login in 192.168.1.132  (the backup server of Muthoot)&lt;br /&gt;
&lt;br /&gt;
 su - barman &lt;br /&gt;
 barman list-backup main &lt;br /&gt;
&lt;br /&gt;
 main 20121225T010001 - Tue Dec 25 01:04:37 2012 - Size: 2.0 GiB - WAL Size: 6.0 MiB&lt;br /&gt;
 main 20121224T010001 - Mon Dec 24 01:04:34 2012 - Size: 2.0 GiB - WAL Size: 52.0 MiB&lt;br /&gt;
 main 20121223T010002 - Sun Dec 23 01:04:35 2012 - Size: 2.0 GiB - WAL Size: 12.0 MiB&lt;br /&gt;
 main 20121222T010001 - Sat Dec 22 01:04:33 2012 - Size: 2.0 GiB - WAL Size: 68.0 MiB&lt;br /&gt;
 main 20121221T010002 - Fri Dec 21 01:04:33 2012 - Size: 2.0 GiB - WAL Size: 47.0 MiB&lt;br /&gt;
 main 20121220T010001 - Thu Dec 20 01:04:31 2012 - Size: 2.0 GiB - WAL Size: 43.0 MiB&lt;br /&gt;
 main 20121219T010001 - Wed Dec 19 01:04:31 2012 - Size: 2.0 GiB - WAL Size: 58.0 MiB&lt;br /&gt;
 main 20121218T010001 - Tue Dec 18 01:04:31 2012 - Size: 2.0 GiB - WAL Size: 27.0 MiB&lt;br /&gt;
&lt;br /&gt;
it should show the last few backups , else raise the alarm &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Delete Last Barman Backup ( as barman user)==&lt;br /&gt;
&lt;br /&gt;
Script for auto deletion (delete-last-backup.sh)&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 VALUE=`barman list-backup main | tail -1 | cut -d&amp;quot; &amp;quot; -f 2`&lt;br /&gt;
 barman delete main $VALUE&lt;br /&gt;
 exit&lt;br /&gt;
&lt;br /&gt;
Make cron entry as barman user&lt;br /&gt;
&lt;br /&gt;
 Crontab -l &lt;br /&gt;
&lt;br /&gt;
 0 1 * * * barman backup main&lt;br /&gt;
 0 6 * * * /var/lib/barman/delete-last-backup.sh&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Bbf_mailbox_Migration&amp;diff=1396</id>
		<title>Bbf mailbox Migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Bbf_mailbox_Migration&amp;diff=1396"/>
		<updated>2013-08-31T15:23:48Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Created page with &amp;quot; category:BBF Group  &amp;#039;&amp;#039;&amp;#039;Migration Mailbox and COS From Mailserver2 To Mailserver .&amp;#039;&amp;#039;&amp;#039;   ==Check Users in particular COS==           1.#zmprov gc bbf_users | grep zimbr...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[[category:BBF Group]]&lt;br /&gt;
&lt;br /&gt;
[[&#039;&#039;&#039;Migration Mailbox and COS From Mailserver2 To Mailserver .&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Check Users in particular COS==&lt;br /&gt;
&lt;br /&gt;
         1.#zmprov gc bbf_users | grep zimbraId&lt;br /&gt;
         2.# zmprov sa zimbraId &amp;gt; /tmp/bbf_user.txt&lt;br /&gt;
&lt;br /&gt;
==Set another COS==&lt;br /&gt;
&lt;br /&gt;
         1.zmprov setAccountCos test123@bbfgroup.com bbf_management&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Migrate Mailbox==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
         1.zmmailboxmove -a test234@bbfgroup.com -t mailserver.bbfgroup.com –force –po&lt;br /&gt;
           -t = target&lt;br /&gt;
           -po= purge old&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Category:Spi_Nagios&amp;diff=1382</id>
		<title>Category:Spi Nagios</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Category:Spi_Nagios&amp;diff=1382"/>
		<updated>2013-07-27T06:19:36Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Created page with &amp;quot;category: Spi Nagios    == Spi Nagios Client Configuration ==  == Client Configuration ==      Install Rpmforge Epelrepo      #mkdir /downloads      #cd /downloads      #w...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category: Spi Nagios ]] &lt;br /&gt;
&lt;br /&gt;
== Spi Nagios Client Configuration ==&lt;br /&gt;
&lt;br /&gt;
== Client Configuration ==&lt;br /&gt;
&lt;br /&gt;
    Install Rpmforge Epelrepo&lt;br /&gt;
&lt;br /&gt;
    #mkdir /downloads&lt;br /&gt;
&lt;br /&gt;
    #cd /downloads&lt;br /&gt;
&lt;br /&gt;
    #wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
    #rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rp&lt;br /&gt;
&lt;br /&gt;
    #wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm&lt;br /&gt;
&lt;br /&gt;
    #wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm&lt;br /&gt;
&lt;br /&gt;
    #rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm&lt;br /&gt;
&lt;br /&gt;
    # vim /etc/yum.repos.d/remi.repo&lt;br /&gt;
      enable 1&lt;br /&gt;
&lt;br /&gt;
    #yum install nrpe nagios-plugins-all&lt;br /&gt;
&lt;br /&gt;
    #vim /etc/nagios/nrpe.cfg&lt;br /&gt;
    allowed_hosts=127.0.0.1, your nagios server ip&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
 command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10&lt;br /&gt;
 command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20&lt;br /&gt;
 command[check_disk_space]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -X tmpfs&lt;br /&gt;
 command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z&lt;br /&gt;
 command[check_cpu]=/usr/lib64/nagios/plugins/check_cpu.sh -w 20 -c 60&lt;br /&gt;
 command[check_zimbra_queue]=/usr/lib64/nagios/plugins/check_zimbra_queue -w 30 -c 60&lt;br /&gt;
 command[check_mem_avail]=/usr/lib64/nagios/plugins/check_mem_avail -w 20 -c 10&lt;br /&gt;
 command[check_pop]=/usr/lib64/nagios/plugins/check_pop -w 10 -c 20 &lt;br /&gt;
 command[check_smtp]=/usr/lib64/nagios/plugins/check_smtp -w 10 -c 20&lt;br /&gt;
 command[check_imap]=/usr/lib64/nagios/plugins/check_imap -w 10 -c 20 &lt;br /&gt;
 command[check_zimbra_lmtp]=/usr/lib64/nagios/plugins/check_smtp -H localhost -p 7025 -e &#039;220 spimail.spi.com Zimbra LMTP server ready&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   Note: define all plugin in above given path.&lt;br /&gt;
&lt;br /&gt;
   # chmod nagios.nagios /usr/lib64/nagios/plugins -R&lt;br /&gt;
&lt;br /&gt;
   Now restart nrpe service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Server configuration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  #vim /usr/local/nagios/etc/objects/linux-box.cfg&lt;br /&gt;
  &lt;br /&gt;
== Define client details ==&lt;br /&gt;
&lt;br /&gt;
  define host{&lt;br /&gt;
             use        linux-server&lt;br /&gt;
             host_name  spimail.spi.com&lt;br /&gt;
             alias      Spi Mail Server&lt;br /&gt;
             address    64.128.141.50&lt;br /&gt;
             hostgroups  Tetra Clients  ; Host groups&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
   #cd ../services&lt;br /&gt;
   #vim spimail.spi.com.cfg &lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Current Users&lt;br /&gt;
               check_command            check_nrpe!check_users&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Cpu Load&lt;br /&gt;
               check_command            check_nrpe!check_load&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Cpu Utilization&lt;br /&gt;
               check_command            check_nrpe!check_cpu&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Memory Utilization&lt;br /&gt;
               check_command            check_nrpe!check_mem_avail&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Disk Check&lt;br /&gt;
               check_command            check_nrpe!check_disk_space&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Zombie Process&lt;br /&gt;
               check_command            check_nrpe!check_zombie_procs&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Mail Queue&lt;br /&gt;
               check_command            check_nrpe!check_zimbra_queue&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
                                                                               }&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Pop&lt;br /&gt;
               check_command            check_nrpe!check_pop&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Smtp&lt;br /&gt;
               check_command            check_nrpe!check_smtp&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Imap&lt;br /&gt;
               check_command            check_nrpe!check_imap&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Http&lt;br /&gt;
               check_command            check_http_spi          // this is not define in client side , check in command.cfg&lt;br /&gt;
               contact_groups           mailtest               &lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Lmtp&lt;br /&gt;
               check_command            check_nrpe!check_zimbra_lmtp&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                                                                                                                                   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuration Of Warning and Critical Mail send by Nagios: ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    #Vim /usr/local/nagios/etc/objects/contacts.cfg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
     DEFINE CONTACT&lt;br /&gt;
&lt;br /&gt;
	define contact{&lt;br /&gt;
        contact_name                   mailtest          ; Short name of user&lt;br /&gt;
        use                             generic-contact         ; Inherit default values from generic-contact template (defined above)&lt;br /&gt;
        alias                           Nagios Admin           ; Full name of user&lt;br /&gt;
&lt;br /&gt;
        email                           test@tetrain.com   ; &amp;lt;&amp;lt;***** CHANGE THIS TO YOUR EMAIL ADDRESS ******&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  define contactgroup{&lt;br /&gt;
        contactgroup_name       client-group&lt;br /&gt;
        alias                   Nagios Administrators&lt;br /&gt;
        members                 mailtest&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Note : Now the client have to see only there services not all clients services for that we made new contact group i.e mailtest and now we want that they can wacth there services but do not change any thing for that we do one entry in below :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   # vim /usr/local/nagios/etc/cgi.cfg&lt;br /&gt;
   #authorized_for_read_only=user1,user2&lt;br /&gt;
   authorized_for_read_only=mailtest&lt;br /&gt;
&lt;br /&gt;
 Note : Set password for user mailtest&lt;br /&gt;
&lt;br /&gt;
  # htpasswd htpasswd.users mailtest&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Then check your mail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TROUBLESHOOTING---------------- &lt;br /&gt;
&lt;br /&gt;
   1. Check nagios port is open on client server&lt;br /&gt;
      #nc -z client ip 5666&lt;br /&gt;
&lt;br /&gt;
   2. check client server is connected or not &lt;br /&gt;
      #./usr/local/nagios/libexec/check_nrpe -n -H spimail.spi.com&lt;br /&gt;
&lt;br /&gt;
   3. check service &lt;br /&gt;
      #/usr/local/nagios/libexec/check_nrpe -n -t 50 -H spimail.spi.com -c check_mem_avail&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Spi-nagiosclient&amp;diff=1381</id>
		<title>Spi-nagiosclient</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Spi-nagiosclient&amp;diff=1381"/>
		<updated>2013-07-27T06:18:38Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category: Spi Nagios ]] &lt;br /&gt;
&lt;br /&gt;
== Spi Nagios Client Configuration ==&lt;br /&gt;
&lt;br /&gt;
== Client Configuration ==&lt;br /&gt;
&lt;br /&gt;
    Install Rpmforge Epelrepo&lt;br /&gt;
&lt;br /&gt;
    #mkdir /downloads&lt;br /&gt;
&lt;br /&gt;
    #cd /downloads&lt;br /&gt;
&lt;br /&gt;
    #wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
    #rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rp&lt;br /&gt;
&lt;br /&gt;
    #wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm&lt;br /&gt;
&lt;br /&gt;
    #wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm&lt;br /&gt;
&lt;br /&gt;
    #rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm&lt;br /&gt;
&lt;br /&gt;
    # vim /etc/yum.repos.d/remi.repo&lt;br /&gt;
      enable 1&lt;br /&gt;
&lt;br /&gt;
    #yum install nrpe nagios-plugins-all&lt;br /&gt;
&lt;br /&gt;
    #vim /etc/nagios/nrpe.cfg&lt;br /&gt;
    allowed_hosts=127.0.0.1, your nagios server ip&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
 command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10&lt;br /&gt;
 command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20&lt;br /&gt;
 command[check_disk_space]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -X tmpfs&lt;br /&gt;
 command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z&lt;br /&gt;
 command[check_cpu]=/usr/lib64/nagios/plugins/check_cpu.sh -w 20 -c 60&lt;br /&gt;
 command[check_zimbra_queue]=/usr/lib64/nagios/plugins/check_zimbra_queue -w 30 -c 60&lt;br /&gt;
 command[check_mem_avail]=/usr/lib64/nagios/plugins/check_mem_avail -w 20 -c 10&lt;br /&gt;
 command[check_pop]=/usr/lib64/nagios/plugins/check_pop -w 10 -c 20 &lt;br /&gt;
 command[check_smtp]=/usr/lib64/nagios/plugins/check_smtp -w 10 -c 20&lt;br /&gt;
 command[check_imap]=/usr/lib64/nagios/plugins/check_imap -w 10 -c 20 &lt;br /&gt;
 command[check_zimbra_lmtp]=/usr/lib64/nagios/plugins/check_smtp -H localhost -p 7025 -e &#039;220 spimail.spi.com Zimbra LMTP server ready&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   Note: define all plugin in above given path.&lt;br /&gt;
&lt;br /&gt;
   # chmod nagios.nagios /usr/lib64/nagios/plugins -R&lt;br /&gt;
&lt;br /&gt;
   Now restart nrpe service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Server configuration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  #vim /usr/local/nagios/etc/objects/linux-box.cfg&lt;br /&gt;
  &lt;br /&gt;
== Define client details ==&lt;br /&gt;
&lt;br /&gt;
  define host{&lt;br /&gt;
             use        linux-server&lt;br /&gt;
             host_name  spimail.spi.com&lt;br /&gt;
             alias      Spi Mail Server&lt;br /&gt;
             address    64.128.141.50&lt;br /&gt;
             hostgroups  Tetra Clients  ; Host groups&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
   #cd ../services&lt;br /&gt;
   #vim spimail.spi.com.cfg &lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Current Users&lt;br /&gt;
               check_command            check_nrpe!check_users&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Cpu Load&lt;br /&gt;
               check_command            check_nrpe!check_load&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Cpu Utilization&lt;br /&gt;
               check_command            check_nrpe!check_cpu&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Memory Utilization&lt;br /&gt;
               check_command            check_nrpe!check_mem_avail&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Disk Check&lt;br /&gt;
               check_command            check_nrpe!check_disk_space&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Zombie Process&lt;br /&gt;
               check_command            check_nrpe!check_zombie_procs&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Mail Queue&lt;br /&gt;
               check_command            check_nrpe!check_zimbra_queue&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
                                                                               }&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Pop&lt;br /&gt;
               check_command            check_nrpe!check_pop&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Smtp&lt;br /&gt;
               check_command            check_nrpe!check_smtp&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Imap&lt;br /&gt;
               check_command            check_nrpe!check_imap&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Http&lt;br /&gt;
               check_command            check_http_spi          // this is not define in client side , check in command.cfg&lt;br /&gt;
               contact_groups           mailtest               &lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Lmtp&lt;br /&gt;
               check_command            check_nrpe!check_zimbra_lmtp&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                                                                                                                                   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuration Of Warning and Critical Mail send by Nagios: ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    #Vim /usr/local/nagios/etc/objects/contacts.cfg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
     DEFINE CONTACT&lt;br /&gt;
&lt;br /&gt;
	define contact{&lt;br /&gt;
        contact_name                   mailtest          ; Short name of user&lt;br /&gt;
        use                             generic-contact         ; Inherit default values from generic-contact template (defined above)&lt;br /&gt;
        alias                           Nagios Admin           ; Full name of user&lt;br /&gt;
&lt;br /&gt;
        email                           test@tetrain.com   ; &amp;lt;&amp;lt;***** CHANGE THIS TO YOUR EMAIL ADDRESS ******&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  define contactgroup{&lt;br /&gt;
        contactgroup_name       client-group&lt;br /&gt;
        alias                   Nagios Administrators&lt;br /&gt;
        members                 mailtest&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Note : Now the client have to see only there services not all clients services for that we made new contact group i.e mailtest and now we want that they can wacth there services but do not change any thing for that we do one entry in below :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   # vim /usr/local/nagios/etc/cgi.cfg&lt;br /&gt;
   #authorized_for_read_only=user1,user2&lt;br /&gt;
   authorized_for_read_only=mailtest&lt;br /&gt;
&lt;br /&gt;
 Note : Set password for user mailtest&lt;br /&gt;
&lt;br /&gt;
  # htpasswd htpasswd.users mailtest&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Then check your mail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TROUBLESHOOTING---------------- &lt;br /&gt;
&lt;br /&gt;
   1. Check nagios port is open on client server&lt;br /&gt;
      #nc -z client ip 5666&lt;br /&gt;
&lt;br /&gt;
   2. check client server is connected or not &lt;br /&gt;
      #./usr/local/nagios/libexec/check_nrpe -n -H spimail.spi.com&lt;br /&gt;
&lt;br /&gt;
   3. check service &lt;br /&gt;
      #/usr/local/nagios/libexec/check_nrpe -n -t 50 -H spimail.spi.com -c check_mem_avail&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Spi-nagiosclient&amp;diff=1380</id>
		<title>Spi-nagiosclient</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Spi-nagiosclient&amp;diff=1380"/>
		<updated>2013-07-27T06:17:13Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Created page with &amp;quot;category: Spi Nagios   == Spi Nagios Client Configuration ==  == Client Configuration ==      Install Rpmforge Epelrepo      #mkdir /downloads      #cd /downloads      #wg...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category: Spi Nagios ]] &lt;br /&gt;
== Spi Nagios Client Configuration ==&lt;br /&gt;
&lt;br /&gt;
== Client Configuration ==&lt;br /&gt;
&lt;br /&gt;
    Install Rpmforge Epelrepo&lt;br /&gt;
&lt;br /&gt;
    #mkdir /downloads&lt;br /&gt;
&lt;br /&gt;
    #cd /downloads&lt;br /&gt;
&lt;br /&gt;
    #wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm&lt;br /&gt;
&lt;br /&gt;
    #rpm -Uvh rpmforge-release-0.5.2-2.el6.rf.x86_64.rp&lt;br /&gt;
&lt;br /&gt;
    #wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm&lt;br /&gt;
&lt;br /&gt;
    #wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm&lt;br /&gt;
&lt;br /&gt;
    #rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm&lt;br /&gt;
&lt;br /&gt;
    # vim /etc/yum.repos.d/remi.repo&lt;br /&gt;
      enable 1&lt;br /&gt;
&lt;br /&gt;
    #yum install nrpe nagios-plugins-all&lt;br /&gt;
&lt;br /&gt;
    #vim /etc/nagios/nrpe.cfg&lt;br /&gt;
    allowed_hosts=127.0.0.1, your nagios server ip&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
 command[check_users]=/usr/lib64/nagios/plugins/check_users -w 5 -c 10&lt;br /&gt;
 command[check_load]=/usr/lib64/nagios/plugins/check_load -w 15,10,5 -c 30,25,20&lt;br /&gt;
 command[check_disk_space]=/usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -X tmpfs&lt;br /&gt;
 command[check_zombie_procs]=/usr/lib64/nagios/plugins/check_procs -w 5 -c 10 -s Z&lt;br /&gt;
 command[check_cpu]=/usr/lib64/nagios/plugins/check_cpu.sh -w 20 -c 60&lt;br /&gt;
 command[check_zimbra_queue]=/usr/lib64/nagios/plugins/check_zimbra_queue -w 30 -c 60&lt;br /&gt;
 command[check_mem_avail]=/usr/lib64/nagios/plugins/check_mem_avail -w 20 -c 10&lt;br /&gt;
 command[check_pop]=/usr/lib64/nagios/plugins/check_pop -w 10 -c 20 &lt;br /&gt;
 command[check_smtp]=/usr/lib64/nagios/plugins/check_smtp -w 10 -c 20&lt;br /&gt;
 command[check_imap]=/usr/lib64/nagios/plugins/check_imap -w 10 -c 20 &lt;br /&gt;
 command[check_zimbra_lmtp]=/usr/lib64/nagios/plugins/check_smtp -H localhost -p 7025 -e &#039;220 spimail.spi.com Zimbra LMTP server ready&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   Note: define all plugin in above given path.&lt;br /&gt;
&lt;br /&gt;
   # chmod nagios.nagios /usr/lib64/nagios/plugins -R&lt;br /&gt;
&lt;br /&gt;
   Now restart nrpe service&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Server configuration ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  #vim /usr/local/nagios/etc/objects/linux-box.cfg&lt;br /&gt;
  &lt;br /&gt;
== Define client details ==&lt;br /&gt;
&lt;br /&gt;
  define host{&lt;br /&gt;
             use        linux-server&lt;br /&gt;
             host_name  spimail.spi.com&lt;br /&gt;
             alias      Spi Mail Server&lt;br /&gt;
             address    64.128.141.50&lt;br /&gt;
             hostgroups  Tetra Clients  ; Host groups&lt;br /&gt;
            }&lt;br /&gt;
&lt;br /&gt;
   #cd ../services&lt;br /&gt;
   #vim spimail.spi.com.cfg &lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Current Users&lt;br /&gt;
               check_command            check_nrpe!check_users&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Cpu Load&lt;br /&gt;
               check_command            check_nrpe!check_load&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Cpu Utilization&lt;br /&gt;
               check_command            check_nrpe!check_cpu&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Memory Utilization&lt;br /&gt;
               check_command            check_nrpe!check_mem_avail&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Disk Check&lt;br /&gt;
               check_command            check_nrpe!check_disk_space&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Zombie Process&lt;br /&gt;
               check_command            check_nrpe!check_zombie_procs&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Mail Queue&lt;br /&gt;
               check_command            check_nrpe!check_zimbra_queue&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
                                                                               }&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Pop&lt;br /&gt;
               check_command            check_nrpe!check_pop&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Smtp&lt;br /&gt;
               check_command            check_nrpe!check_smtp&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Imap&lt;br /&gt;
               check_command            check_nrpe!check_imap&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Http&lt;br /&gt;
               check_command            check_http_spi          // this is not define in client side , check in command.cfg&lt;br /&gt;
               contact_groups           mailtest               &lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
define service{&lt;br /&gt;
               use                      generic-service&lt;br /&gt;
               host_name                spimail.spi.com&lt;br /&gt;
               service_description      Lmtp&lt;br /&gt;
               check_command            check_nrpe!check_zimbra_lmtp&lt;br /&gt;
               contact_groups           mailtest&lt;br /&gt;
               notification_options     w,u,c,r&lt;br /&gt;
               normal_check_interval           3&lt;br /&gt;
              }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                                                                                                                                   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuration Of Warning and Critical Mail send by Nagios: ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    #Vim /usr/local/nagios/etc/objects/contacts.cfg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
     DEFINE CONTACT&lt;br /&gt;
&lt;br /&gt;
	define contact{&lt;br /&gt;
        contact_name                   mailtest          ; Short name of user&lt;br /&gt;
        use                             generic-contact         ; Inherit default values from generic-contact template (defined above)&lt;br /&gt;
        alias                           Nagios Admin           ; Full name of user&lt;br /&gt;
&lt;br /&gt;
        email                           test@tetrain.com   ; &amp;lt;&amp;lt;***** CHANGE THIS TO YOUR EMAIL ADDRESS ******&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  define contactgroup{&lt;br /&gt;
        contactgroup_name       client-group&lt;br /&gt;
        alias                   Nagios Administrators&lt;br /&gt;
        members                 mailtest&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Note : Now the client have to see only there services not all clients services for that we made new contact group i.e mailtest and now we want that they can wacth there services but do not change any thing for that we do one entry in below :&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   # vim /usr/local/nagios/etc/cgi.cfg&lt;br /&gt;
   #authorized_for_read_only=user1,user2&lt;br /&gt;
   authorized_for_read_only=mailtest&lt;br /&gt;
&lt;br /&gt;
 Note : Set password for user mailtest&lt;br /&gt;
&lt;br /&gt;
  # htpasswd htpasswd.users mailtest&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Then check your mail.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
TROUBLESHOOTING---------------- &lt;br /&gt;
&lt;br /&gt;
   1. Check nagios port is open on client server&lt;br /&gt;
      #nc -z client ip 5666&lt;br /&gt;
&lt;br /&gt;
   2. check client server is connected or not &lt;br /&gt;
      #./usr/local/nagios/libexec/check_nrpe -n -H spimail.spi.com&lt;br /&gt;
&lt;br /&gt;
   3. check service &lt;br /&gt;
      #/usr/local/nagios/libexec/check_nrpe -n -t 50 -H spimail.spi.com -c check_mem_avail&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Muthoot_Cluster&amp;diff=1354</id>
		<title>Muthoot Cluster</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Muthoot_Cluster&amp;diff=1354"/>
		<updated>2013-07-04T09:51:06Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--[[User:Abhinav|Abhinav]] 15:20, 4 July 2013 (IST)[[category:Postgresql Cluster Muthoot]]&lt;br /&gt;
                                                           &#039;&#039;&#039;Cluster Of Muthoot&#039;&#039;&#039;&lt;br /&gt;
== Postgresql Cluster ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==IP Details:==&lt;br /&gt;
&lt;br /&gt;
 1.	Live Server ip: 192.168.1.133&lt;br /&gt;
 2.	Secondary Server ip: 192.168.1.132&lt;br /&gt;
 3.	Cluster Ip: 192.168.1.140&lt;br /&gt;
 4.	Mgmt port ip: 192.168.1.126 (liveserver)&lt;br /&gt;
 5.	Mgmt port ip: 192.168.1.127( Secondary)&lt;br /&gt;
 6.	Ip for heartbeat : 10.0.0.1 (node1)&lt;br /&gt;
 7.	Node 2: 10.0.0.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configuration:==&lt;br /&gt;
&lt;br /&gt;
 133# vim /etc/hosts&lt;br /&gt;
 192.168.1.133	liveserver.muthootco.com	liveserver&lt;br /&gt;
 192.168.1.132	liveserver1.muthootco.com	liveserver1&lt;br /&gt;
 10.0.0.1	node1.muthootco.com		node1&lt;br /&gt;
 10.0.0.2	node2.muthootco.com		node2&lt;br /&gt;
 192.168.1.127	node2-imm.muthootco.com		node2-imm&lt;br /&gt;
 192.168.1.126	node1-imm.muthootco.com		node1-imm&lt;br /&gt;
&lt;br /&gt;
 Give  10.0.0.1 ip in eth1 in liveserver And 10.0.0.2 ip in eth1 in secondary server.&lt;br /&gt;
&lt;br /&gt;
 Note : Give Ip to Management port Steps are follow:&lt;br /&gt;
 &lt;br /&gt;
 Step1: On boot Time go to bios&lt;br /&gt;
 Step2: System Settings--&amp;gt;Integrated Management Module --&amp;gt;  Network--&amp;gt;Give Ip&lt;br /&gt;
 &lt;br /&gt;
 133#  yum install cman rgmanager ricci luci&lt;br /&gt;
&lt;br /&gt;
 Note: luci package is only on one system &lt;br /&gt;
 &lt;br /&gt;
 Then open web interface :&lt;br /&gt;
 https://192.168.1.133:8084&lt;br /&gt;
 User: Same as system root details&lt;br /&gt;
 Then Go to Service Group Tab &lt;br /&gt;
 Then Press add button &lt;br /&gt;
 Service Name : Cluster-Service&lt;br /&gt;
 Failover Domain: None&lt;br /&gt;
 Recovery Policy : relocate&lt;br /&gt;
 IP Address: 192.168.1.140                \\ don’t give netmask for this IP&lt;br /&gt;
 &lt;br /&gt;
 133# yum remove libvirt           \\ Due to this package node can’t be add it’s give error&lt;br /&gt;
 &lt;br /&gt;
==Then Go To Node Tab==&lt;br /&gt;
 &lt;br /&gt;
 Add--&amp;gt;&lt;br /&gt;
 Node Name: node1&lt;br /&gt;
 Password: same as system&lt;br /&gt;
 Port: 11111&lt;br /&gt;
 Same Do for node 2&lt;br /&gt;
 Then Go To Fence Device Tab:&lt;br /&gt;
 Press Add&lt;br /&gt;
 Fence Type: IPMI LAN&lt;br /&gt;
 Name : node2-imm&lt;br /&gt;
 Ip add- 192.168.1.127&lt;br /&gt;
 Login: USERID&lt;br /&gt;
 Password:xyz&lt;br /&gt;
 Authentication Type: None&lt;br /&gt;
 Privileges Level: default&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Then Again Press add==&lt;br /&gt;
 Configure same &lt;br /&gt;
 Name – node1-imm&lt;br /&gt;
 Ip – 192.168.1.126&lt;br /&gt;
 Apply&lt;br /&gt;
&lt;br /&gt;
==Then  Go To node TAB==&lt;br /&gt;
&lt;br /&gt;
 Click on node 1--&amp;gt; Add fence method--&amp;gt;Fence_Method--&amp;gt;then Add fence instance --&amp;gt;node1-imm(IPMI LAN)--&amp;gt;Submit &lt;br /&gt;
&lt;br /&gt;
 Same do with node 2 configuration and add node2-imm&lt;br /&gt;
 &lt;br /&gt;
==Then Go To Service Group TAB==&lt;br /&gt;
&lt;br /&gt;
 Failover Domain: Failover&lt;br /&gt;
 Apply&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;Note&#039;&#039;&#039;: Make two LVM Volumes &lt;br /&gt;
 Vol Name: DB ,   Logical Vol : test&lt;br /&gt;
 Vol Name: LogsSpace  , Logical Vol : LogSystem&lt;br /&gt;
&lt;br /&gt;
 Then Go To Resources Tab:&lt;br /&gt;
 Add--&amp;gt; HA LVM--&amp;gt;&lt;br /&gt;
 Name : HA&lt;br /&gt;
 VG Name : DB&lt;br /&gt;
 Add--&amp;gt;Filesystem--&amp;gt;&lt;br /&gt;
 Name: DB File&lt;br /&gt;
 File System Type: ext4&lt;br /&gt;
 Mount point: /home/pgsql/data/base           \\path must be exist&lt;br /&gt;
 Device Name: /dev/mapper/DB-test&lt;br /&gt;
 Force Unmount : check mark&lt;br /&gt;
 Apply&lt;br /&gt;
&lt;br /&gt;
==Add --&amp;gt;HA LVM==&lt;br /&gt;
 Name : Logs&lt;br /&gt;
 Vol Grp Name: LogsSpace&lt;br /&gt;
&lt;br /&gt;
==Add--&amp;gt; Filesystem==&lt;br /&gt;
 Name: Logs_Details&lt;br /&gt;
 File System Type: ext4&lt;br /&gt;
 Mount point: /Logs&lt;br /&gt;
 Device Name:  /dev/mapper/LogsSpace-logSystem    &lt;br /&gt;
&lt;br /&gt;
 Add--&amp;gt;script&lt;br /&gt;
 Name: Sql-Script&lt;br /&gt;
 Full Path to script File: /etc/init.d/postgresql &lt;br /&gt;
 Apply&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Muthoot_Cluster&amp;diff=1353</id>
		<title>Muthoot Cluster</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Muthoot_Cluster&amp;diff=1353"/>
		<updated>2013-07-04T09:50:01Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Created page with &amp;quot;--~~~~category:Postgresql Cluster Muthoot                                                            &amp;#039;&amp;#039;&amp;#039;Cluster Of Muthoot&amp;#039;&amp;#039;&amp;#039; == Postgresql Cluster ==     ==IP Details:== ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;--[[User:Abhinav|Abhinav]] 15:20, 4 July 2013 (IST)[[category:Postgresql Cluster Muthoot]]&lt;br /&gt;
                                                           &#039;&#039;&#039;Cluster Of Muthoot&#039;&#039;&#039;&lt;br /&gt;
== Postgresql Cluster ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==IP Details:==&lt;br /&gt;
&lt;br /&gt;
 1.	Live Server ip: 192.168.1.133&lt;br /&gt;
 2.	Secondary Server ip: 192.168.1.132&lt;br /&gt;
 3.	Cluster Ip: 192.168.1.140&lt;br /&gt;
 4.	Mgmt port ip: 192.168.1.126 (liveserver)&lt;br /&gt;
 5.	Mgmt port ip: 192.168.1.127( Secondary)&lt;br /&gt;
 6.	Ip for heartbeat : 10.0.0.1 (node1)&lt;br /&gt;
 7.	Node 2: 10.0.0.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configuration:==&lt;br /&gt;
&lt;br /&gt;
 133# vim /etc/hosts&lt;br /&gt;
 192.168.1.133	liveserver.muthootco.com	liveserver&lt;br /&gt;
 192.168.1.132	liveserver1.muthootco.com	liveserver1&lt;br /&gt;
 10.0.0.1	node1.muthootco.com		node1&lt;br /&gt;
 10.0.0.2	node2.muthootco.com		node2&lt;br /&gt;
 192.168.1.127	node2-imm.muthootco.com		node2-imm&lt;br /&gt;
 192.168.1.126	node1-imm.muthootco.com		node1-imm&lt;br /&gt;
&lt;br /&gt;
 Give  10.0.0.1 ip in eth1 in liveserver And 10.0.0.2 ip in eth1 in secondary server.&lt;br /&gt;
&lt;br /&gt;
==Note== : Give Ip to Management port Steps are follow:&lt;br /&gt;
 &lt;br /&gt;
 Step1: On boot Time go to bios&lt;br /&gt;
 Step2: System Settings--&amp;gt;Integrated Management Module --&amp;gt;  Network--&amp;gt;Give Ip&lt;br /&gt;
 &lt;br /&gt;
 133#  yum install cman rgmanager ricci luci&lt;br /&gt;
&lt;br /&gt;
 Note: luci package is only on one system &lt;br /&gt;
 &lt;br /&gt;
 Then open web interface :&lt;br /&gt;
 https://192.168.1.133:8084&lt;br /&gt;
 User: Same as system root details&lt;br /&gt;
 Then Go to Service Group Tab &lt;br /&gt;
 Then Press add button &lt;br /&gt;
 Service Name : Cluster-Service&lt;br /&gt;
 Failover Domain: None&lt;br /&gt;
 Recovery Policy : relocate&lt;br /&gt;
 IP Address: 192.168.1.140                \\ don’t give netmask for this IP&lt;br /&gt;
 &lt;br /&gt;
 133# yum remove libvirt           \\ Due to this package node can’t be add it’s give error&lt;br /&gt;
 &lt;br /&gt;
==Then Go To Node Tab==&lt;br /&gt;
 &lt;br /&gt;
 Add--&amp;gt;&lt;br /&gt;
 Node Name: node1&lt;br /&gt;
 Password: same as system&lt;br /&gt;
 Port: 11111&lt;br /&gt;
 Same Do for node 2&lt;br /&gt;
 Then Go To Fence Device Tab:&lt;br /&gt;
 Press Add&lt;br /&gt;
 Fence Type: IPMI LAN&lt;br /&gt;
 Name : node2-imm&lt;br /&gt;
 Ip add- 192.168.1.127&lt;br /&gt;
 Login: USERID&lt;br /&gt;
 Password:xyz&lt;br /&gt;
 Authentication Type: None&lt;br /&gt;
 Privileges Level: default&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Then Again Press add==&lt;br /&gt;
 Configure same &lt;br /&gt;
 Name – node1-imm&lt;br /&gt;
 Ip – 192.168.1.126&lt;br /&gt;
 Apply&lt;br /&gt;
&lt;br /&gt;
==Then  Go To node TAB==&lt;br /&gt;
&lt;br /&gt;
 Click on node 1--&amp;gt; Add fence method--&amp;gt;Fence_Method--&amp;gt;then Add fence instance --&amp;gt;node1-imm(IPMI LAN)--&amp;gt;Submit &lt;br /&gt;
&lt;br /&gt;
 Same do with node 2 configuration and add node2-imm&lt;br /&gt;
 &lt;br /&gt;
==Then Go To Service Group TAB==&lt;br /&gt;
&lt;br /&gt;
 Failover Domain: Failover&lt;br /&gt;
 Apply&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;Note&#039;&#039;&#039;: Make two LVM Volumes &lt;br /&gt;
 Vol Name: DB ,   Logical Vol : test&lt;br /&gt;
 Vol Name: LogsSpace  , Logical Vol : LogSystem&lt;br /&gt;
&lt;br /&gt;
 Then Go To Resources Tab:&lt;br /&gt;
 Add--&amp;gt; HA LVM--&amp;gt;&lt;br /&gt;
 Name : HA&lt;br /&gt;
 VG Name : DB&lt;br /&gt;
 Add--&amp;gt;Filesystem--&amp;gt;&lt;br /&gt;
 Name: DB File&lt;br /&gt;
 File System Type: ext4&lt;br /&gt;
 Mount point: /home/pgsql/data/base           \\path must be exist&lt;br /&gt;
 Device Name: /dev/mapper/DB-test&lt;br /&gt;
 Force Unmount : check mark&lt;br /&gt;
 Apply&lt;br /&gt;
&lt;br /&gt;
==Add --&amp;gt;HA LVM==&lt;br /&gt;
 Name : Logs&lt;br /&gt;
 Vol Grp Name: LogsSpace&lt;br /&gt;
&lt;br /&gt;
==Add--&amp;gt; Filesystem==&lt;br /&gt;
 Name: Logs_Details&lt;br /&gt;
 File System Type: ext4&lt;br /&gt;
 Mount point: /Logs&lt;br /&gt;
 Device Name:  /dev/mapper/LogsSpace-logSystem    &lt;br /&gt;
&lt;br /&gt;
 Add--&amp;gt;script&lt;br /&gt;
 Name: Sql-Script&lt;br /&gt;
 Full Path to script File: /etc/init.d/postgresql &lt;br /&gt;
 Apply&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Category:Phdcci_Migration&amp;diff=1336</id>
		<title>Category:Phdcci Migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Category:Phdcci_Migration&amp;diff=1336"/>
		<updated>2013-05-30T09:57:53Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Created page with &amp;quot;category:Phdcci Migration ==&amp;#039;&amp;#039;&amp;#039;Qmail With Vpopmail To Zimbra 7.2.3 Migration in CentOS 6.3&amp;#039;&amp;#039;&amp;#039;==  ==                                                                        ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Phdcci Migration]]&lt;br /&gt;
==&#039;&#039;&#039;Qmail With Vpopmail To Zimbra 7.2.3 Migration in CentOS 6.3&#039;&#039;&#039;==&lt;br /&gt;
&lt;br /&gt;
==                                                                             For PHDCCI==  &lt;br /&gt;
&lt;br /&gt;
Created by : Abhinav Sharma&lt;br /&gt;
&lt;br /&gt;
TETRA INFORMATION SERVICES PVT. LTD.&lt;br /&gt;
&lt;br /&gt;
SYSTEM CONFIGURATION&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Vim /etc/hosts&lt;br /&gt;
&lt;br /&gt;
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 &lt;br /&gt;
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 &lt;br /&gt;
192.168.1.3 webmail.phdcci.in webmail&lt;br /&gt;
Set Hostname To webmail.phdcci.in&lt;br /&gt;
&lt;br /&gt;
# vi /etc/sysconfig/network&lt;br /&gt;
--------------------------------------------&lt;br /&gt;
HOSTNAME=webmail.phdcci.in&lt;br /&gt;
--------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Save &amp;amp; Close this file.&lt;br /&gt;
&lt;br /&gt;
Make changes to hosts file.&lt;br /&gt;
&lt;br /&gt;
Stop Apache and also make it off at boot time.&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/httpd stop&lt;br /&gt;
     # chkconfig httpd off&lt;br /&gt;
&lt;br /&gt;
Configure DNS.&lt;br /&gt;
 &lt;br /&gt;
      # Yum install bind*&lt;br /&gt;
      Configure  Bind in Jail Environment. &lt;br /&gt;
&lt;br /&gt;
      # vim /var/named/chroot/etc/named.conf&lt;br /&gt;
options {&lt;br /&gt;
	listen-on port 53 { 127.0.0.1; 192.168.0.3; };&lt;br /&gt;
	directory       &amp;quot;/var/named&amp;quot;;&lt;br /&gt;
	dump-file       &amp;quot;/var/named/data/cache_dump.db&amp;quot;;&lt;br /&gt;
	statistics-file &amp;quot;/var/named/data/named_stats.txt&amp;quot;;&lt;br /&gt;
	memstatistics-file &amp;quot;/var/named/data/named_mem_stats.txt&amp;quot;;&lt;br /&gt;
           Allow-Query   {localhost; 192.168.0.0;};&lt;br /&gt;
	recursion yes;&lt;br /&gt;
  };&lt;br /&gt;
&lt;br /&gt;
zone &amp;quot;phdcci.in&amp;quot;{&lt;br /&gt;
    	type master;&lt;br /&gt;
    	file &amp;quot;forward.zone&amp;quot;;&lt;br /&gt;
  };&lt;br /&gt;
&lt;br /&gt;
zone &amp;quot;0.168.192.in-addr.arpa&amp;quot; IN {&lt;br /&gt;
        type master;&lt;br /&gt;
        file &amp;quot;localhostrev.zone&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
Then Do the Entries in Forward Zone&lt;br /&gt;
phdcci.in.	IN	MX 10	webmail.phdcci.in.&lt;br /&gt;
@                               IN NS           ns1.phdcci.in. &lt;br /&gt;
ns1.phdcci.in.             IN A            192.168.0.3 &lt;br /&gt;
webmail.phdcci.in.      IN A            192.168.0.3 &lt;br /&gt;
webmail.                     IN A            192.168.0.3 &lt;br /&gt;
phdcci.in.                    IN A            207.106.22.8             &lt;br /&gt;
cpanel                         IN A            68.233.251.20 &lt;br /&gt;
www.phdcci.in.           IN A            68.233.251.20 &lt;br /&gt;
www2.phdcci.in.         IN A            68.233.251.20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reverse Zone&lt;br /&gt;
&lt;br /&gt;
$TTL 86400&lt;br /&gt;
@	IN SOA	webmail.phdcci.in. root.webmail.phdcci.in.  (&lt;br /&gt;
					20130503	; serial&lt;br /&gt;
					3600	; refresh&lt;br /&gt;
					1800	; retry&lt;br /&gt;
					604800	; expire&lt;br /&gt;
					86400 )	; minimum&lt;br /&gt;
	IN	NS	webmail.phdcci.in.	&lt;br /&gt;
	&lt;br /&gt;
3	IN	PTR	webmail.phdcci.in.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Start named service.&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/named Restart&lt;br /&gt;
Starting named: [  OK  ]&lt;br /&gt;
# chkconfig named on&lt;br /&gt;
# vim /etc/resolv.conf&lt;br /&gt;
--------------------------------------&lt;br /&gt;
nameserver 127.0.0.1&lt;br /&gt;
nameserver 4.2.2.2&lt;br /&gt;
&lt;br /&gt;
Install prerequisites of Zimbra&lt;br /&gt;
yum install sysstat compat-libstdc++-33 nc  -y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zimbra Installation&lt;br /&gt;
Mkdir /downloads&lt;br /&gt;
Cd /downloads&lt;br /&gt;
Extract Package &lt;br /&gt;
Cd zcs&lt;br /&gt;
./install.sh --platform-override&lt;br /&gt;
By This Zimbra Installed in Server.&lt;br /&gt;
&lt;br /&gt;
Now Migration of Users &lt;br /&gt;
&lt;br /&gt;
Step1: Extract User From vpopmail in one file And Cp into new Server tmp location&lt;br /&gt;
Step2: Arrange in Order Like&lt;br /&gt;
Vim User.txt&lt;br /&gt;
createAccount test@phdcci.in root123 displayName &#039;Test Account&#039; givenName Test sn Account zimbraPasswordMustChange True&lt;br /&gt;
&lt;br /&gt;
Step3: su – zimbra&lt;br /&gt;
Step4: zmprov &amp;lt; /tmp/user.txt&lt;br /&gt;
All User Are created by this command&lt;br /&gt;
&lt;br /&gt;
Migration of mails of some user&lt;br /&gt;
Command&lt;br /&gt;
imapsync --nosyncacls --subscribe --syncinternaldates &lt;br /&gt;
   --host1 192.168.0.1 --user1 yourAccount --password1 yourPassword &lt;br /&gt;
   --host2 192.168.0.3 --user2 yourZimbraAccount --password2 yourZimbraPassword&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
View Mail Option In Admin Panal:&lt;br /&gt;
Step1: Download zimlet from&lt;br /&gt;
http://www.zimbra.com/forums/administrators/56332-view-mail-button.html&lt;br /&gt;
Step2: Go to Admin panal then Zimlet then deploy the zimlet.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Phdcci_Migration&amp;diff=1335</id>
		<title>Phdcci Migration</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Phdcci_Migration&amp;diff=1335"/>
		<updated>2013-05-30T09:40:49Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Created page with &amp;quot;category:Phdcci Migration ==&amp;#039;&amp;#039;&amp;#039;Qmail With Vpopmail To Zimbra 7.2.3 Migration in CentOS 6.3&amp;#039;&amp;#039;&amp;#039;==  ==                                                                        ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Phdcci Migration]]&lt;br /&gt;
==&#039;&#039;&#039;Qmail With Vpopmail To Zimbra 7.2.3 Migration in CentOS 6.3&#039;&#039;&#039;==&lt;br /&gt;
&lt;br /&gt;
==                                                                             For PHDCCI==  &lt;br /&gt;
&lt;br /&gt;
Created by : Abhinav Sharma&lt;br /&gt;
&lt;br /&gt;
TETRA INFORMATION SERVICES PVT. LTD.&lt;br /&gt;
&lt;br /&gt;
SYSTEM CONFIGURATION&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Vim /etc/hosts&lt;br /&gt;
&lt;br /&gt;
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 &lt;br /&gt;
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 &lt;br /&gt;
192.168.1.3 webmail.phdcci.in webmail&lt;br /&gt;
Set Hostname To webmail.phdcci.in&lt;br /&gt;
&lt;br /&gt;
# vi /etc/sysconfig/network&lt;br /&gt;
--------------------------------------------&lt;br /&gt;
HOSTNAME=webmail.phdcci.in&lt;br /&gt;
--------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Save &amp;amp; Close this file.&lt;br /&gt;
&lt;br /&gt;
Make changes to hosts file.&lt;br /&gt;
&lt;br /&gt;
Stop Apache and also make it off at boot time.&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/httpd stop&lt;br /&gt;
     # chkconfig httpd off&lt;br /&gt;
&lt;br /&gt;
Configure DNS.&lt;br /&gt;
 &lt;br /&gt;
      # Yum install bind*&lt;br /&gt;
      Configure  Bind in Jail Environment. &lt;br /&gt;
&lt;br /&gt;
      # vim /var/named/chroot/etc/named.conf&lt;br /&gt;
options {&lt;br /&gt;
	listen-on port 53 { 127.0.0.1; 192.168.0.3; };&lt;br /&gt;
	directory       &amp;quot;/var/named&amp;quot;;&lt;br /&gt;
	dump-file       &amp;quot;/var/named/data/cache_dump.db&amp;quot;;&lt;br /&gt;
	statistics-file &amp;quot;/var/named/data/named_stats.txt&amp;quot;;&lt;br /&gt;
	memstatistics-file &amp;quot;/var/named/data/named_mem_stats.txt&amp;quot;;&lt;br /&gt;
           Allow-Query   {localhost; 192.168.0.0;};&lt;br /&gt;
	recursion yes;&lt;br /&gt;
  };&lt;br /&gt;
&lt;br /&gt;
zone &amp;quot;phdcci.in&amp;quot;{&lt;br /&gt;
    	type master;&lt;br /&gt;
    	file &amp;quot;forward.zone&amp;quot;;&lt;br /&gt;
  };&lt;br /&gt;
&lt;br /&gt;
zone &amp;quot;0.168.192.in-addr.arpa&amp;quot; IN {&lt;br /&gt;
        type master;&lt;br /&gt;
        file &amp;quot;localhostrev.zone&amp;quot;;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
Then Do the Entries in Forward Zone&lt;br /&gt;
phdcci.in.	IN	MX 10	webmail.phdcci.in.&lt;br /&gt;
@                               IN NS           ns1.phdcci.in. &lt;br /&gt;
ns1.phdcci.in.             IN A            192.168.0.3 &lt;br /&gt;
webmail.phdcci.in.      IN A            192.168.0.3 &lt;br /&gt;
webmail.                     IN A            192.168.0.3 &lt;br /&gt;
phdcci.in.                    IN A            207.106.22.8             &lt;br /&gt;
cpanel                         IN A            68.233.251.20 &lt;br /&gt;
www.phdcci.in.           IN A            68.233.251.20 &lt;br /&gt;
www2.phdcci.in.         IN A            68.233.251.20 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reverse Zone&lt;br /&gt;
&lt;br /&gt;
$TTL 86400&lt;br /&gt;
@	IN SOA	webmail.phdcci.in. root.webmail.phdcci.in.  (&lt;br /&gt;
					20130503	; serial&lt;br /&gt;
					3600	; refresh&lt;br /&gt;
					1800	; retry&lt;br /&gt;
					604800	; expire&lt;br /&gt;
					86400 )	; minimum&lt;br /&gt;
	IN	NS	webmail.phdcci.in.	&lt;br /&gt;
	&lt;br /&gt;
3	IN	PTR	webmail.phdcci.in.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Start named service.&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/named Restart&lt;br /&gt;
Starting named: [  OK  ]&lt;br /&gt;
# chkconfig named on&lt;br /&gt;
# vim /etc/resolv.conf&lt;br /&gt;
--------------------------------------&lt;br /&gt;
nameserver 127.0.0.1&lt;br /&gt;
nameserver 4.2.2.2&lt;br /&gt;
&lt;br /&gt;
Install prerequisites of Zimbra&lt;br /&gt;
yum install sysstat compat-libstdc++-33 nc  -y&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zimbra Installation&lt;br /&gt;
Mkdir /downloads&lt;br /&gt;
Cd /downloads&lt;br /&gt;
Extract Package &lt;br /&gt;
Cd zcs&lt;br /&gt;
./install.sh --platform-override&lt;br /&gt;
By This Zimbra Installed in Server.&lt;br /&gt;
&lt;br /&gt;
Now Migration of Users &lt;br /&gt;
&lt;br /&gt;
Step1: Extract User From vpopmail in one file And Cp into new Server tmp location&lt;br /&gt;
Step2: Arrange in Order Like&lt;br /&gt;
Vim User.txt&lt;br /&gt;
createAccount test@phdcci.in root123 displayName &#039;Test Account&#039; givenName Test sn Account zimbraPasswordMustChange True&lt;br /&gt;
&lt;br /&gt;
Step3: su – zimbra&lt;br /&gt;
Step4: zmprov &amp;lt; /tmp/user.txt&lt;br /&gt;
All User Are created by this command&lt;br /&gt;
&lt;br /&gt;
Migration of mails of some user&lt;br /&gt;
Command&lt;br /&gt;
imapsync --nosyncacls --subscribe --syncinternaldates &lt;br /&gt;
   --host1 192.168.0.1 --user1 yourAccount --password1 yourPassword &lt;br /&gt;
   --host2 192.168.0.3 --user2 yourZimbraAccount --password2 yourZimbraPassword&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
View Mail Option In Admin Panal:&lt;br /&gt;
Step1: Download zimlet from&lt;br /&gt;
http://www.zimbra.com/forums/administrators/56332-view-mail-button.html&lt;br /&gt;
Step2: Go to Admin panal then Zimlet then deploy the zimlet.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Hero_Moto_Corp_Mail_Architecture&amp;diff=1148</id>
		<title>Hero Moto Corp Mail Architecture</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Hero_Moto_Corp_Mail_Architecture&amp;diff=1148"/>
		<updated>2013-01-22T13:11:48Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Heromotocorp]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Architecture ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Heromotocorp&#039;s_Mail_Architecture.png|700px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Architecture In Brief:==&lt;br /&gt;
&lt;br /&gt;
 1. Qmail2 Introduce in both server. Becauese of Disclaimer i.e&lt;br /&gt;
    a)Heromotocorp.com&lt;br /&gt;
    b)Herofincorp.com&lt;br /&gt;
&lt;br /&gt;
 2. Now mails first go to qmail then if mails are local then it deliver And if mail are remote then forward to qmail2 i.e on 900 port.&lt;br /&gt;
    For this check smtproute of &lt;br /&gt;
    a)qmail point to :127.0.0.1:900&lt;br /&gt;
    b)qmail2 point to :tetra ip:25&lt;br /&gt;
&lt;br /&gt;
 3. Qmail2 check automatically that whether it is heromotocorp.com or herofincorp.com . And then attach Diclaimer according to domain.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Eltek_Mail-Deliver_Problem&amp;diff=1087</id>
		<title>Eltek Mail-Deliver Problem</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Eltek_Mail-Deliver_Problem&amp;diff=1087"/>
		<updated>2013-01-18T14:57:41Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Tetra Clients]]&lt;br /&gt;
&lt;br /&gt;
==Eltek==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Issue==&lt;br /&gt;
&lt;br /&gt;
 MAils are not deliver to pop id(through jbindia server) , mail send from it@eltek.in to outer domian get deliver but when send mail to   pop in &lt;br /&gt;
 west@eltek.in (pop id).            &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Observation== &lt;br /&gt;
&lt;br /&gt;
 Check the local mail server . qmail running properly. MAils are deliver as shown in logs but it  actually not deliver. Then check the Jbindia in   &lt;br /&gt;
 which spamdyke(spam filter)  is not allowed eltek ip to deliver mail at there local pop user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Resolution:==&lt;br /&gt;
&lt;br /&gt;
 Whitelist eltek domain&lt;br /&gt;
 &lt;br /&gt;
 Path: /var/qmail/spamdyke/rdns-whitelist&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Eltek_Mail-Deliver_Problem&amp;diff=1086</id>
		<title>Eltek Mail-Deliver Problem</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Eltek_Mail-Deliver_Problem&amp;diff=1086"/>
		<updated>2013-01-18T14:54:05Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Created page with &amp;quot;category:Tetra Clients  ==Eltek==   ==Issue==   MAils are not deliver to pop id(through jbindia server) , mail send from it@eltek.in to outer domian get deliver but when s...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Tetra Clients]]&lt;br /&gt;
&lt;br /&gt;
==Eltek==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Issue==&lt;br /&gt;
&lt;br /&gt;
 MAils are not deliver to pop id(through jbindia server) , mail send from it@eltek.in to outer domian get deliver but when send mail to pop id      west@eltek.in (pop id).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Observation== &lt;br /&gt;
&lt;br /&gt;
 Check the local mail server . qmail running properly. MAils are deliver as shown in logs but it  actually not deliver. Then check the Jbindia in which spamdyke(spam filter)  is not allowed eltek ip to deliver mail at there local pop user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Resolution:==&lt;br /&gt;
&lt;br /&gt;
 Whitelist eltek domain&lt;br /&gt;
 &lt;br /&gt;
 Path: /var/qmail/spamdyke/rdns-whitelist&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Create_VM_By_Running_Vmimage&amp;diff=809</id>
		<title>Create VM By Running Vmimage</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Create_VM_By_Running_Vmimage&amp;diff=809"/>
		<updated>2013-01-03T14:55:08Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Created page with &amp;quot;category:Tetra Local    ==Create VM Through Running VM Image: ==   1. Let suppose running VM is Centos And creating Vm name is Centos-1  2. xm list   3. If Vm is running t...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Tetra Local]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 ==Create VM Through Running VM Image: ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. Let suppose running VM is Centos And creating Vm name is Centos-1&lt;br /&gt;
&lt;br /&gt;
2. xm list &lt;br /&gt;
&lt;br /&gt;
3. If Vm is running then it&#039;s ok Otherwise use this command to up Centos&lt;br /&gt;
&lt;br /&gt;
4. # xm create Centos&lt;br /&gt;
&lt;br /&gt;
5. # xm restore Centos    &lt;br /&gt;
&lt;br /&gt;
6. # xm list&lt;br /&gt;
&lt;br /&gt;
7. Once a vm running then use this command&lt;br /&gt;
&lt;br /&gt;
8. # xm shutdown Centos&lt;br /&gt;
&lt;br /&gt;
9. cp -pvr  /data/Centos /data/centos-1&lt;br /&gt;
&lt;br /&gt;
  vim  /etc/xen/Centos-1&lt;br /&gt;
&lt;br /&gt;
 name = &amp;quot;Centos-1&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 uuid = &amp;quot;967b2dd3-15b5-f72d-0527-046e30e209ba&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 maxmem = 512&lt;br /&gt;
 &lt;br /&gt;
 memory = 512&lt;br /&gt;
 &lt;br /&gt;
 vcpus = 1&lt;br /&gt;
 &lt;br /&gt;
 bootloader = &amp;quot;/usr/bin/pygrub&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 on_poweroff = &amp;quot;destroy&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 on_reboot = &amp;quot;restart&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 on_crash = &amp;quot;restart&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 vfb = [ &amp;quot;type=vnc,vncunused=1,keymap=en-us&amp;quot; ]&lt;br /&gt;
 &lt;br /&gt;
 disk = [ &amp;quot;tap:aio:/data/centos6.img,xvda,w&amp;quot; ]&lt;br /&gt;
 &lt;br /&gt;
 vif = [ &amp;quot;mac=00:16:36:2b:bb:9e,bridge=xenbr0,script=vif-bridge&amp;quot; ]&lt;br /&gt;
 &lt;br /&gt;
11.  # xm create Centos-1&lt;br /&gt;
 &lt;br /&gt;
12.  # xm list&lt;br /&gt;
 &lt;br /&gt;
13. virt-manager&lt;br /&gt;
&lt;br /&gt;
14. open Cenos-1 vm &lt;br /&gt;
 &lt;br /&gt;
15. And add NIC card in it. &lt;br /&gt;
&lt;br /&gt;
16. Login with Centos details. &lt;br /&gt;
&lt;br /&gt;
17. Change ip and see the updated Hardware address&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Witalsee_details&amp;diff=764</id>
		<title>Witalsee details</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Witalsee_details&amp;diff=764"/>
		<updated>2013-01-01T11:35:40Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Tetra Clients]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Witalsee Mail Server Details(PACL): ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Server Details: ==&lt;br /&gt;
&lt;br /&gt;
There has two leased lines:&lt;br /&gt;
 &lt;br /&gt;
 Reliance – 124.124.221.167/26 , 5mbps line. &lt;br /&gt;
&lt;br /&gt;
 Tata – 115.112.96.103/26 , Backup leased line,5mbps line &lt;br /&gt;
-----------------------------------------------------------------------------------  &lt;br /&gt;
 Global Ip: 115.112.96.103 (active), eth0 port&lt;br /&gt;
&lt;br /&gt;
 Local Ip:   192.168.7.19  (active), eth0 port&lt;br /&gt;
&lt;br /&gt;
 Backup Sever : 192.168.7.16&lt;br /&gt;
&lt;br /&gt;
 Achive Sever  : 192.168.7.18&lt;br /&gt;
&lt;br /&gt;
 Archive Backup Server: 192.168.7.17&lt;br /&gt;
&lt;br /&gt;
 Hardware Firewall : 192.168.7.15&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Architecture Of Mail Server: ==&lt;br /&gt;
&lt;br /&gt;
1. There is one Zimbra mail Server, Where one main domain called groupmailadmin.com (with shorewall server(Iptables) configured )&lt;br /&gt;
&lt;br /&gt;
2. Subdomain of groupmailadmin is witasee.com&lt;br /&gt;
&lt;br /&gt;
3. There is one backup server Which is 24/7 Sync of zimbra server.&lt;br /&gt;
&lt;br /&gt;
4. One Achive Server.&lt;br /&gt;
&lt;br /&gt;
5. One Backup server of Archive server.&lt;br /&gt;
&lt;br /&gt;
== Flow of witalsee mail server ==&lt;br /&gt;
&lt;br /&gt;
Step1. Mails Directly land to there mail server. One Copy of mail is go to Achive Server.&lt;br /&gt;
&lt;br /&gt;
Step2. One mail backup server which is 24/7 Synchronize.&lt;br /&gt;
&lt;br /&gt;
Step3. One More backup server of archive server.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Witalsee_details&amp;diff=763</id>
		<title>Witalsee details</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Witalsee_details&amp;diff=763"/>
		<updated>2013-01-01T11:26:46Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Tetra Clients]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Witalsee Mail Server Details(PACL): ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Server Details: ==&lt;br /&gt;
&lt;br /&gt;
There has two leased lines:&lt;br /&gt;
 &lt;br /&gt;
 Reliance – 124.124.221.167/26 , 5mbps line. &lt;br /&gt;
&lt;br /&gt;
 Tata – 115.112.96.103/26 , Backup leased line,5mbps line &lt;br /&gt;
-----------------------------------------------------------------------------------  &lt;br /&gt;
 Global Ip: 115.112.96.103 (active), eth0 port&lt;br /&gt;
&lt;br /&gt;
 Local Ip:   192.168.7.19  (active), eth0 port&lt;br /&gt;
&lt;br /&gt;
 Backup Sever : 192.168.7.16&lt;br /&gt;
&lt;br /&gt;
 Achive Sever  : 192.168.7.18&lt;br /&gt;
&lt;br /&gt;
 Archive Backup Server: 192.168.7.17&lt;br /&gt;
 &lt;br /&gt;
 Hardware Firewall : 192.168.7.15&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Architecture Of Mail Server: ==&lt;br /&gt;
&lt;br /&gt;
1. There is one Zimbra mail Server, Where one main domain called groupmailadmin.com (with shorewall server(Iptables) configured )&lt;br /&gt;
&lt;br /&gt;
2. Subdomain of groupmailadmin is witasee.com&lt;br /&gt;
&lt;br /&gt;
3. There is one backup server Which is 24/7 Sync of zimbra server.&lt;br /&gt;
&lt;br /&gt;
4. One Achive Server.&lt;br /&gt;
&lt;br /&gt;
5. One Backup server of Archive server.&lt;br /&gt;
&lt;br /&gt;
== Flow of witalsee mail server ==&lt;br /&gt;
&lt;br /&gt;
Step1. Mails Directly land to there mail server. One Copy of mail is go to Achive Server.&lt;br /&gt;
&lt;br /&gt;
Step2. One mail backup server which is 24/7 Synchronize.&lt;br /&gt;
&lt;br /&gt;
Step3. One More backup server of archive server.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Witalsee_details&amp;diff=761</id>
		<title>Witalsee details</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Witalsee_details&amp;diff=761"/>
		<updated>2013-01-01T11:19:55Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Created page with &amp;quot;category:Tetra Clients   == Witalsee Mail Server Details(PACL): ==   == Server Details: ==  There has two leased lines:    Reliance – 124.124.221.167/26 , 5mbps line.   ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Tetra Clients]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Witalsee Mail Server Details(PACL): ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Server Details: ==&lt;br /&gt;
&lt;br /&gt;
There has two leased lines:&lt;br /&gt;
 &lt;br /&gt;
 Reliance – 124.124.221.167/26 , 5mbps line. &lt;br /&gt;
&lt;br /&gt;
 Tata – 115.112.96.103/26 , Backup leased line,5mbps line &lt;br /&gt;
-----------------------------------------------------------------------------------  &lt;br /&gt;
 Global Ip: 115.112.96.103 (active), eth0 port&lt;br /&gt;
&lt;br /&gt;
 Local Ip:   192.168.7.19  (active), eth0 port&lt;br /&gt;
&lt;br /&gt;
 Backup Sever : 192.168.7.16&lt;br /&gt;
&lt;br /&gt;
 Achive Sever  : 192.168.7.18&lt;br /&gt;
&lt;br /&gt;
 Archive Backup Server: 192.168.7.17 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Architecture Of Mail Server: ==&lt;br /&gt;
&lt;br /&gt;
1. There is one Zimbra mail Server, Where one main domain called groupmailadmin.com&lt;br /&gt;
&lt;br /&gt;
2. Subdomain of groupmailadmin is witasee.com&lt;br /&gt;
&lt;br /&gt;
3. There is one backup server Which is 24/7 Sync of zimbra server.&lt;br /&gt;
&lt;br /&gt;
4. One Achive Server.&lt;br /&gt;
&lt;br /&gt;
5. One Backup server of Archive server.&lt;br /&gt;
&lt;br /&gt;
6. One shorewall server.&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
== Flow of witalsee mail server ==&lt;br /&gt;
&lt;br /&gt;
Step1. Mails Directly land to there mail server. One Copy of mail is go to Achive Server.&lt;br /&gt;
&lt;br /&gt;
Step2. One mail backup server which is 24/7 Synchronize.&lt;br /&gt;
&lt;br /&gt;
Step3. One More backup server of archive server.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=INDORAMA_BACKUP_PROCESS&amp;diff=640</id>
		<title>INDORAMA BACKUP PROCESS</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=INDORAMA_BACKUP_PROCESS&amp;diff=640"/>
		<updated>2012-12-29T15:11:07Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
[[category:Tetra Clients‏‎]]&lt;br /&gt;
&lt;br /&gt;
==Indorama Backup Process==&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
I) &#039;&#039;&#039;Gurgaon:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Log on to Gurgaon&lt;br /&gt;
 # tar cvzf etc_16_04_11.tar.gz /etc&lt;br /&gt;
 # tar cvzf named_16_04_11.tar.gz /var/named/&lt;br /&gt;
 # tar cvzf trend_16_04_11.tar.gz /opt/trend/&lt;br /&gt;
 # tar cvzf momsbin_16_04_11.tar.gz /usr/.momsbin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
II) &#039;&#039;&#039;Mumbai:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
From Gurgaon,&lt;br /&gt;
 # ssh mumbai&lt;br /&gt;
 # tar cvzf etc_16_04_11.tar.gz /etc&lt;br /&gt;
 # tar cvzf named_16_04_11.tar.gz /var/named/&lt;br /&gt;
 # tar cvzf trend_16_04_11.tar.gz /opt/trend/&lt;br /&gt;
 # tar cvzf momsbin_16_04_11.tar.gz /usr/.momsbin&lt;br /&gt;
&lt;br /&gt;
From Mumbai,&lt;br /&gt;
 #ssh mumproxy&lt;br /&gt;
 # tar cvzf etc_16_04_11.tar.gz /etc&lt;br /&gt;
 # tar cvzf named_16_04_11.tar.gz /var/named/&lt;br /&gt;
 # tar cvzf trend_16_04_11.tar.gz /opt/trend/&lt;br /&gt;
  Scp to mumbai then mumbai to gurgaon&lt;br /&gt;
&lt;br /&gt;
III) &#039;&#039;&#039;Nagpur:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
From Gurgaon,&lt;br /&gt;
 # ssh nagpur&lt;br /&gt;
 # tar cvzf etc_16_04_11.tar.gz /etc&lt;br /&gt;
 # tar cvzf named_16_04_11.tar.gz /var/named/&lt;br /&gt;
 # tar cvzf trend_16_04_11.tar.gz /opt/trend/&lt;br /&gt;
 # tar cvzf momsbin_16_04_11.tar.gz /usr/.momsbin&lt;br /&gt;
&lt;br /&gt;
Nagpur Proxy Server,&lt;br /&gt;
 #ssh 192.128.91.13&lt;br /&gt;
 #tar cvzf etc_16_04_11.tar.gz /etc&lt;br /&gt;
 #tar cvzf named_16_04_11.tar.gz /var/named/&lt;br /&gt;
 &lt;br /&gt;
 #ssh 192.168.94.13&lt;br /&gt;
 #tar cvzf etc_16_04_11.tar.gz /etc&lt;br /&gt;
 #tar cvzf named_16_04_11.tar.gz /var/named/&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
IV) &#039;&#039;&#039;Surat:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
From Gurgaon,&lt;br /&gt;
 # ssh surat&lt;br /&gt;
 # tar cvzf etc_16_04_11.tar.gz /etc&lt;br /&gt;
 # tar cvzf named_16_04_11.tar.gz /var/named/&lt;br /&gt;
 # tar cvzf trend_16_04_11.tar.gz /opt/trend/&lt;br /&gt;
 # tar cvzf momsbin_16_04_11.tar.gz /usr/.momsbin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
V) &#039;&#039;&#039;Transferring files:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 scp files from Mumbai,  Surat and Nagpur onto Gurgaon server.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=CCAT_DOCS&amp;diff=605</id>
		<title>CCAT DOCS</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=CCAT_DOCS&amp;diff=605"/>
		<updated>2012-12-22T11:24:14Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Tetra Clients]]&lt;br /&gt;
&lt;br /&gt;
== CCAT  DETAILS:==&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
== DNS Servers Details ==&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
Primary Server:&lt;br /&gt;
 1. Server Ip / Global Ip: 58.64.162.10&lt;br /&gt;
 2. Server Name: CCATSRV1.ccatgroup.com&lt;br /&gt;
 3. Active Port: eth0&lt;br /&gt;
 4. Local Ip : None&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
Secondary Server:&lt;br /&gt;
 1. Server Ip: 58.64.162.11&lt;br /&gt;
 2. Server Name: CCATSRV2.ccatgroup.com&lt;br /&gt;
 3. Active Port: eth0&lt;br /&gt;
&lt;br /&gt;
Summary About Dns Server Of CCAT:&lt;br /&gt;
&lt;br /&gt;
 1. In these Two server One is Primary Dns server( Tiny Dns). And second One is Secondary server. &lt;br /&gt;
 2. When Primary server is busy or traffic is more then Secondary server handle the Queries.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
== Zimbra Server Detail: ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Server Ip: 58.64.162.12&lt;br /&gt;
  Server Name: CCATSRV3.ccatgroup.com&lt;br /&gt;
  Active Port: eth0&lt;br /&gt;
&lt;br /&gt;
  Zimbra Admin Panal- https://58.64.162.12:7071/zimbraAdmin/&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== Qmail With Vpopmail Server: ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Server Ip: 58.64.162.13&lt;br /&gt;
   Server Name: CCATINDIA.IN&lt;br /&gt;
   Active Port: eth0&lt;br /&gt;
   Hostname: beedeemcsrv1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. In this server 5 domain are hosted And mails of that Domain Users Exist Here:&lt;br /&gt;
     A) beedeemc.com  &lt;br /&gt;
     B) candy-king.net&lt;br /&gt;
     C) ccatindia.in  &lt;br /&gt;
     D) pasha.hk&lt;br /&gt;
     E) supriltd.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Default Gateway Ip:   58.64.162.1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== MySql Database Login Detail  ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
myslq -uroot for 10(NO PASSWORD)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CCAT Group ==&lt;br /&gt;
&lt;br /&gt;
we used the below links for webmail access.&lt;br /&gt;
https://rathsworld.com:8889&lt;br /&gt;
https://pibl.com.hk:8889&lt;br /&gt;
&lt;br /&gt;
for the domain piblhk.com they are using exchange server hosting outside.&lt;br /&gt;
Admin panel for Zimbra is as below.&lt;br /&gt;
https://113.28.42.81:7071&lt;br /&gt;
	OR&lt;br /&gt;
https://rathsworld.com:7071&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zimbra tetratesting account: &lt;br /&gt;
e-mail id: tetratest@rathsworld.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other 2 server details i will send you soon. For all the servers and&lt;br /&gt;
domains 210.17.247.96 &amp;amp; 97 is the name server.&lt;br /&gt;
&lt;br /&gt;
We dont have any standrad control panel. We use the below link for domain&lt;br /&gt;
controls.&lt;br /&gt;
&lt;br /&gt;
http://ccatsrv1.ccatgroup.com/vhsadmin&lt;br /&gt;
http://ccatsrv2.ccatgroup.com/vhsadmin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
look into this ticket: 2011090110001174 ] CCAT : Need to configure domain pacificexcel.net in CCATSRV1[..] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
domain added in &lt;br /&gt;
&lt;br /&gt;
cd /service/tinydns/root/&lt;br /&gt;
  578  ls&lt;br /&gt;
  579  ls -l&lt;br /&gt;
  580  ./add-ns e-lflash.com 210.17.247.96&lt;br /&gt;
  581  ./add-ns e-lflash.com 210.17.247.97&lt;br /&gt;
  582  cat data&lt;br /&gt;
  583  ls -l&lt;br /&gt;
  584  cat data&lt;br /&gt;
  585  ls -l&lt;br /&gt;
  586  cat data&lt;br /&gt;
  587  ls &lt;br /&gt;
  588  ./add-mx e-lflash.com 210.17.247.96&lt;br /&gt;
  589  ./add-mx e-lflash.com 210.17.247.97&lt;br /&gt;
  590  ./add-alias www.e-lflash.com 210.17.247.96 &lt;br /&gt;
  592  ./add-alias pop.e-lflash.com 210.17.247.96 &lt;br /&gt;
  593  ./add-alias e-lflash.com 210.17.247.96 &lt;br /&gt;
  594  ./add-alias mailadmin.e-lflash.com 210.17.247.96 &lt;br /&gt;
&lt;br /&gt;
RCA .&lt;br /&gt;
&lt;br /&gt;
rcpthosts.cdb was created on both the server by \&lt;br /&gt;
&lt;br /&gt;
/var/qmail/bin/qmail-cdb rcpthosts.cdb rcpthost.tmp &amp;lt; rcpthosts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CCAT CONFIGURE NEW DOMAIN IN CCAT SERVER 1 FOR MAIL SERVER:&lt;br /&gt;
  ===============================================================================&lt;br /&gt;
QUERY:&lt;br /&gt;
Need to configure the domain e-lflash.com in ccatsrv1. Pls do the&lt;br /&gt;
necessery setting for this doman in the server and send us the details. We&lt;br /&gt;
will change the name server setting in the register.&lt;br /&gt;
  ===============================================================================&lt;br /&gt;
&lt;br /&gt;
SOLUTION:&lt;br /&gt;
&lt;br /&gt;
RCA:&lt;br /&gt;
&lt;br /&gt;
********************************************************************************************&lt;br /&gt;
Note:Firstly take backup of all files which you want to edit.&lt;br /&gt;
&lt;br /&gt;
1. Create directory &amp;quot;www.e-lflash.com&amp;quot; in &amp;quot;/var/www/vhosts/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Add domain alias &amp;quot;e-lflash.com&amp;quot; in /etc/squirrelmail/apache.conf on ccatsrv1&lt;br /&gt;
   add this line in file:&lt;br /&gt;
  &amp;quot;ServerAlias pop.e-lflash.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
for website &lt;br /&gt;
&lt;br /&gt;
cd /etc/apache2/sites-available/&lt;br /&gt;
create file domain.com &lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
    ServerName blmintl.com&lt;br /&gt;
    ServerAlias www.blmintl.com&lt;br /&gt;
    DocumentRoot /var/www/vhosts/www.blmintl.com/www&lt;br /&gt;
    CustomLog /var/log/apache2/vhosts/blmintl.com.log combined&lt;br /&gt;
    ErrorLog /var/log/apache2/vhosts/blmintl.com-error&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ln -s /etc/apache2/sites-available/blmintl.com /etc/apache2/sites-enabled/blmintl.com&lt;br /&gt;
&lt;br /&gt;
reload apache2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. This steps applies on ccatsrv1 and ccatsrv2:&lt;br /&gt;
   cd /service/tinydns/root/&lt;br /&gt;
   ./add-ns e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-ns e-lflash.com 210.17.247.97&lt;br /&gt;
   ./add-mx e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-mx e-lflash.com 210.17.247.97&lt;br /&gt;
   ./add-alias www.e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-alias pop.e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-alias e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-alias mailadmin.e-lflash.com 210.17.247.96&lt;br /&gt;
&lt;br /&gt;
after this step execute &amp;quot;make&amp;quot; command to compile &amp;quot;data&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
4. rcpthosts.cdb was created on both servers:&lt;br /&gt;
add domain &amp;quot;e-lflash.com&amp;quot; in /var/qmail/control/rcpthosts &lt;br /&gt;
#/var/qmail/bin/qmail-cdb rcpthosts.cdb rcpthost.tmp &amp;lt; rcpthosts&lt;br /&gt;
&lt;br /&gt;
add into locals files in which server mailbox is exist.&lt;br /&gt;
#/var/qmail/bin/qmail-cdb locals.cdb locals.tmp &amp;lt; locals&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. add domain in &amp;quot;/var/qmail/control/smtproutes&amp;quot; file: (check mail box of e-lflash.com on both server before this step.)&lt;br /&gt;
e-lflash.com:210.17.247.96:25&lt;br /&gt;
&lt;br /&gt;
6. Restart apache2 service.&lt;br /&gt;
#/etc/init.d/apache2 restart|reload&lt;br /&gt;
********************************************************&lt;br /&gt;
&lt;br /&gt;
./add-ns indiadesk.com.hk 210.17.247.96&lt;br /&gt;
./add-ns galaxymarine.com.hk 210.17.247.97&lt;br /&gt;
&lt;br /&gt;
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br /&gt;
&lt;br /&gt;
 210.17.247.39 &lt;br /&gt;
&lt;br /&gt;
Bee.Dee#@!mc &lt;br /&gt;
beedeemc.com&lt;br /&gt;
&lt;br /&gt;
Please find the vqadmin login Details.&lt;br /&gt;
&lt;br /&gt;
    URL:  &amp;lt;http://ccatindia.in/cgi-bin/vqadmin/vqadmin.cgi&amp;gt;&lt;br /&gt;
http://beedeemc.com/cgi-bin/vqadmin/vqadmin.cgi&lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
&amp;lt;http://ccatindia.in/cgi-bin/qmailadmin&amp;gt;&lt;br /&gt;
http://beedeemc.com/cgi-bin/qmailadmin&lt;br /&gt;
&lt;br /&gt;
Domain:  &amp;lt;http://beedeemc.com/&amp;gt; beedeemc.com&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------&lt;br /&gt;
SKYPE DETAILS&lt;br /&gt;
tetra.service&lt;br /&gt;
sysop0603&lt;br /&gt;
--[[User:Subhash|Subhash]] 16:15, 29 September 2012 (IST)&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=CCAT_DOCS&amp;diff=604</id>
		<title>CCAT DOCS</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=CCAT_DOCS&amp;diff=604"/>
		<updated>2012-12-22T11:23:17Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Tetra Clients]]&lt;br /&gt;
&lt;br /&gt;
== CCAT  DETAILS:==&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
== DNS Servers Details ==&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
Primary Server:&lt;br /&gt;
 1. Server Ip / Global Ip: 58.64.162.10&lt;br /&gt;
 2. Server Name: CCATSRV1.ccatgroup.com&lt;br /&gt;
 3. Active Port: eth0&lt;br /&gt;
 4. Local Ip : None&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
Secondary Server:&lt;br /&gt;
 1. Server Ip: 58.64.162.11&lt;br /&gt;
 2. Server Name: CCATSRV2.ccatgroup.com&lt;br /&gt;
 3. Active Port: eth0&lt;br /&gt;
&lt;br /&gt;
Summary About Dns Server Of CCAT:&lt;br /&gt;
&lt;br /&gt;
 1. In these Two server One is Primary Dns server( Tiny Dns). And second One is Secondary server. &lt;br /&gt;
 2. When Primary server is busy or traffic is more then Secondary server handle the Queries.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
== Zimbra Server Detail: ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Server Ip: 58.64.162.12&lt;br /&gt;
  Server Name: CCATSRV3.ccatgroup.com&lt;br /&gt;
  Active Port: eth0&lt;br /&gt;
&lt;br /&gt;
  Zimbra Admin Panal- https://58.64.162.12:7071/zimbraAdmin/&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== Qmail With Vpopmail Server: ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Server Ip: 58.64.162.13&lt;br /&gt;
   Server Name: CCATINDIA.IN&lt;br /&gt;
   Active Port: eth0&lt;br /&gt;
   Hostname: beedeemcsrv1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. In this server 5 domain are hosted And mails of that Domain Users Exist Here:&lt;br /&gt;
     A) beedeemc.com  &lt;br /&gt;
     B) candy-king.net&lt;br /&gt;
     C) ccatindia.in  &lt;br /&gt;
     D) pasha.hk&lt;br /&gt;
     E) supriltd.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Default Gateway Ip:   58.64.162.1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== MySql Database Login Detail  ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
myslq -uroot for 10(NO PASSWORD)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CCAT Group ==&lt;br /&gt;
&lt;br /&gt;
we used the below links for webmail access.&lt;br /&gt;
https://rathsworld.com:8889&lt;br /&gt;
https://pibl.com.hk:8889&lt;br /&gt;
&lt;br /&gt;
for the domain piblhk.com they are using exchange server hosting outside.&lt;br /&gt;
Admin panel for Zimbra is as below.&lt;br /&gt;
https://113.28.42.81:7071&lt;br /&gt;
	OR&lt;br /&gt;
https://rathsworld.com:7071&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zimbra tetratesting account: &lt;br /&gt;
e-mail id: tetratest@rathsworld.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other 2 server details i will send you soon. For all the servers and&lt;br /&gt;
domains 210.17.247.96 &amp;amp; 97 is the name server.&lt;br /&gt;
&lt;br /&gt;
We dont have any standrad control panel. We use the below link for domain&lt;br /&gt;
controls.&lt;br /&gt;
&lt;br /&gt;
http://ccatsrv1.ccatgroup.com/vhsadmin&lt;br /&gt;
http://ccatsrv2.ccatgroup.com/vhsadmin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
look into this ticket: 2011090110001174 ] CCAT : Need to configure domain pacificexcel.net in CCATSRV1[..] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
domain added in &lt;br /&gt;
&lt;br /&gt;
cd /service/tinydns/root/&lt;br /&gt;
  578  ls&lt;br /&gt;
  579  ls -l&lt;br /&gt;
  580  ./add-ns e-lflash.com 210.17.247.96&lt;br /&gt;
  581  ./add-ns e-lflash.com 210.17.247.97&lt;br /&gt;
  582  cat data&lt;br /&gt;
  583  ls -l&lt;br /&gt;
  584  cat data&lt;br /&gt;
  585  ls -l&lt;br /&gt;
  586  cat data&lt;br /&gt;
  587  ls &lt;br /&gt;
  588  ./add-mx e-lflash.com 210.17.247.96&lt;br /&gt;
  589  ./add-mx e-lflash.com 210.17.247.97&lt;br /&gt;
  590  ./add-alias www.e-lflash.com 210.17.247.96 &lt;br /&gt;
  592  ./add-alias pop.e-lflash.com 210.17.247.96 &lt;br /&gt;
  593  ./add-alias e-lflash.com 210.17.247.96 &lt;br /&gt;
  594  ./add-alias mailadmin.e-lflash.com 210.17.247.96 &lt;br /&gt;
&lt;br /&gt;
RCA .&lt;br /&gt;
&lt;br /&gt;
rcpthosts.cdb was created on both the server by \&lt;br /&gt;
&lt;br /&gt;
/var/qmail/bin/qmail-cdb rcpthosts.cdb rcpthost.tmp &amp;lt; rcpthosts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CCAT CONFIGURE NEW DOMAIN IN CCAT SERVER 1 FOR MAIL SERVER:&lt;br /&gt;
  ===============================================================================&lt;br /&gt;
QUERY:&lt;br /&gt;
Need to configure the domain e-lflash.com in ccatsrv1. Pls do the&lt;br /&gt;
necessery setting for this doman in the server and send us the details. We&lt;br /&gt;
will change the name server setting in the register.&lt;br /&gt;
  ===============================================================================&lt;br /&gt;
&lt;br /&gt;
SOLUTION:&lt;br /&gt;
&lt;br /&gt;
RCA:&lt;br /&gt;
&lt;br /&gt;
********************************************************************************************&lt;br /&gt;
Note:Firstly take backup of all files which you want to edit.&lt;br /&gt;
&lt;br /&gt;
1. Create directory &amp;quot;www.e-lflash.com&amp;quot; in &amp;quot;/var/www/vhosts/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Add domain alias &amp;quot;e-lflash.com&amp;quot; in /etc/squirrelmail/apache.conf on ccatsrv1&lt;br /&gt;
   add this line in file:&lt;br /&gt;
  &amp;quot;ServerAlias pop.e-lflash.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
for website &lt;br /&gt;
&lt;br /&gt;
cd /etc/apache2/sites-available/&lt;br /&gt;
create file domain.com &lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
    ServerName blmintl.com&lt;br /&gt;
    ServerAlias www.blmintl.com&lt;br /&gt;
    DocumentRoot /var/www/vhosts/www.blmintl.com/www&lt;br /&gt;
    CustomLog /var/log/apache2/vhosts/blmintl.com.log combined&lt;br /&gt;
    ErrorLog /var/log/apache2/vhosts/blmintl.com-error&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ln -s /etc/apache2/sites-available/blmintl.com /etc/apache2/sites-enabled/blmintl.com&lt;br /&gt;
&lt;br /&gt;
reload apache2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. This steps applies on ccatsrv1 and ccatsrv2:&lt;br /&gt;
   cd /service/tinydns/root/&lt;br /&gt;
   ./add-ns e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-ns e-lflash.com 210.17.247.97&lt;br /&gt;
   ./add-mx e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-mx e-lflash.com 210.17.247.97&lt;br /&gt;
   ./add-alias www.e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-alias pop.e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-alias e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-alias mailadmin.e-lflash.com 210.17.247.96&lt;br /&gt;
&lt;br /&gt;
after this step execute &amp;quot;make&amp;quot; command to compile &amp;quot;data&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
4. rcpthosts.cdb was created on both servers:&lt;br /&gt;
add domain &amp;quot;e-lflash.com&amp;quot; in /var/qmail/control/rcpthosts &lt;br /&gt;
#/var/qmail/bin/qmail-cdb rcpthosts.cdb rcpthost.tmp &amp;lt; rcpthosts&lt;br /&gt;
&lt;br /&gt;
add into locals files in which server mailbox is exist.&lt;br /&gt;
#/var/qmail/bin/qmail-cdb locals.cdb locals.tmp &amp;lt; locals&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. add domain in &amp;quot;/var/qmail/control/smtproutes&amp;quot; file: (check mail box of e-lflash.com on both server before this step.)&lt;br /&gt;
e-lflash.com:210.17.247.96:25&lt;br /&gt;
&lt;br /&gt;
6. Restart apache2 service.&lt;br /&gt;
#/etc/init.d/apache2 restart|reload&lt;br /&gt;
********************************************************&lt;br /&gt;
&lt;br /&gt;
./add-ns indiadesk.com.hk 210.17.247.96&lt;br /&gt;
./add-ns galaxymarine.com.hk 210.17.247.97&lt;br /&gt;
&lt;br /&gt;
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br /&gt;
&lt;br /&gt;
 210.17.247.39 &lt;br /&gt;
&lt;br /&gt;
Bee.Dee#@!mc &lt;br /&gt;
beedeemc.com&lt;br /&gt;
&lt;br /&gt;
Please find the vqadmin login Details.&lt;br /&gt;
&lt;br /&gt;
    URL:  &amp;lt;http://ccatindia.in/cgi-bin/vqadmin/vqadmin.cgi&amp;gt;&lt;br /&gt;
http://beedeemc.com/cgi-bin/vqadmin/vqadmin.cgi&lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
&amp;lt;http://ccatindia.in/cgi-bin/qmailadmin&amp;gt;&lt;br /&gt;
http://beedeemc.com/cgi-bin/qmailadmin&lt;br /&gt;
&lt;br /&gt;
Domain:  &amp;lt;http://beedeemc.com/&amp;gt; beedeemc.com&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------&lt;br /&gt;
SKYPE DETAILS&lt;br /&gt;
tetra.service&lt;br /&gt;
sysop0603&lt;br /&gt;
--[[User:Subhash|Subhash]] 16:15, 29 September 2012 (IST)&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=CCAT_DOCS&amp;diff=602</id>
		<title>CCAT DOCS</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=CCAT_DOCS&amp;diff=602"/>
		<updated>2012-12-22T10:54:34Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Tetra Clients]]&lt;br /&gt;
&lt;br /&gt;
== CCAT  DETAILS:==&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
== DNS Servers Details ==&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
Primary Server:&lt;br /&gt;
 1. Server Ip / Global Ip: 58.64.162.10&lt;br /&gt;
 2. Server Name: CCATSRV1.ccatgroup.com&lt;br /&gt;
 3. Active Port: eth0&lt;br /&gt;
 4. Local Ip : None&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
Secondary Server:&lt;br /&gt;
 1. Server Ip: 58.64.162.11&lt;br /&gt;
 2. Server Name: CCATSRV2.ccatgroup.com&lt;br /&gt;
 3. Active Port: eth0&lt;br /&gt;
&lt;br /&gt;
Summary About Dns Server Of CCAT:&lt;br /&gt;
&lt;br /&gt;
 1. In these Two server One is Primary Dns server( Tiny Dns). And second One is Secondary server. &lt;br /&gt;
 2. When Primary server is busy or traffic is more then Secondary server handle the Queries.&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
  &lt;br /&gt;
== Zimbra Server Detail: ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Server Ip: 58.64.162.12&lt;br /&gt;
  Server Name: CCATSRV3.ccatgroup.com&lt;br /&gt;
  Active Port: eth0&lt;br /&gt;
&lt;br /&gt;
  Zimbra Admin Panal- https://58.64.162.12:7071/zimbraAdmin/&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
== Qmail With Vpopmail Server: ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  Server Ip: 58.64.162.13&lt;br /&gt;
   Server Name: CCATINDIA.IN&lt;br /&gt;
   Active Port: eth0&lt;br /&gt;
   Hostname: beedeemcsrv1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1. In this server 5 domain are hosted And mails of that Domain Users Exist Here:&lt;br /&gt;
     A) beedeemc.com  &lt;br /&gt;
     B) candy-king.net&lt;br /&gt;
     C) ccatindia.in  &lt;br /&gt;
     D) pasha.hk&lt;br /&gt;
     E) supriltd.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Default Gateway Ip:   58.64.162.1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==CCAT Group ==&lt;br /&gt;
&lt;br /&gt;
Pls see our server login and ip details as below.&lt;br /&gt;
&lt;br /&gt;
myslq -uroot for 96(NO PASSWORD)&lt;br /&gt;
2 Main servers and 1 Zimbra server.&lt;br /&gt;
&lt;br /&gt;
1) Zimbra Server details.&lt;br /&gt;
IP : 210.17.247.36&lt;br /&gt;
ssh port: 22&lt;br /&gt;
&lt;br /&gt;
 Server name 		Old IP		New IP&lt;br /&gt;
&lt;br /&gt;
 CCATSRV1.ccatgroup.com	210.17.247.96	58.64.162.10&lt;br /&gt;
&lt;br /&gt;
 CCATSRV2.ccatgroup.com	210.17.247.97	58.64.162.11&lt;br /&gt;
&lt;br /&gt;
 CCATSRV3.ccatgroup.com	210.17.247.36	58.64.162.12&lt;br /&gt;
&lt;br /&gt;
 CCATINDIA.IN		210.17.247.39 	58.64.162.13&lt;br /&gt;
&lt;br /&gt;
3) Second Zimbra Server details.   &lt;br /&gt;
ip : 113.28.42.81&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
we used the below links for webmail access.&lt;br /&gt;
https://rathsworld.com:8889&lt;br /&gt;
https://pibl.com.hk:8889&lt;br /&gt;
&lt;br /&gt;
for the domain piblhk.com they are using exchange server hosting outside.&lt;br /&gt;
Admin panel for Zimbra is as below.&lt;br /&gt;
https://113.28.42.81:7071&lt;br /&gt;
	OR&lt;br /&gt;
https://rathsworld.com:7071&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zimbra tetratesting account: &lt;br /&gt;
e-mail id: tetratest@rathsworld.com&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Other 2 server details i will send you soon. For all the servers and&lt;br /&gt;
domains 210.17.247.96 &amp;amp; 97 is the name server.&lt;br /&gt;
&lt;br /&gt;
We dont have any standrad control panel. We use the below link for domain&lt;br /&gt;
controls.&lt;br /&gt;
&lt;br /&gt;
http://ccatsrv1.ccatgroup.com/vhsadmin&lt;br /&gt;
http://ccatsrv2.ccatgroup.com/vhsadmin&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
look into this ticket: 2011090110001174 ] CCAT : Need to configure domain pacificexcel.net in CCATSRV1[..] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
domain added in &lt;br /&gt;
&lt;br /&gt;
cd /service/tinydns/root/&lt;br /&gt;
  578  ls&lt;br /&gt;
  579  ls -l&lt;br /&gt;
  580  ./add-ns e-lflash.com 210.17.247.96&lt;br /&gt;
  581  ./add-ns e-lflash.com 210.17.247.97&lt;br /&gt;
  582  cat data&lt;br /&gt;
  583  ls -l&lt;br /&gt;
  584  cat data&lt;br /&gt;
  585  ls -l&lt;br /&gt;
  586  cat data&lt;br /&gt;
  587  ls &lt;br /&gt;
  588  ./add-mx e-lflash.com 210.17.247.96&lt;br /&gt;
  589  ./add-mx e-lflash.com 210.17.247.97&lt;br /&gt;
  590  ./add-alias www.e-lflash.com 210.17.247.96 &lt;br /&gt;
  592  ./add-alias pop.e-lflash.com 210.17.247.96 &lt;br /&gt;
  593  ./add-alias e-lflash.com 210.17.247.96 &lt;br /&gt;
  594  ./add-alias mailadmin.e-lflash.com 210.17.247.96 &lt;br /&gt;
&lt;br /&gt;
RCA .&lt;br /&gt;
&lt;br /&gt;
rcpthosts.cdb was created on both the server by \&lt;br /&gt;
&lt;br /&gt;
/var/qmail/bin/qmail-cdb rcpthosts.cdb rcpthost.tmp &amp;lt; rcpthosts&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
CCAT CONFIGURE NEW DOMAIN IN CCAT SERVER 1 FOR MAIL SERVER:&lt;br /&gt;
  ===============================================================================&lt;br /&gt;
QUERY:&lt;br /&gt;
Need to configure the domain e-lflash.com in ccatsrv1. Pls do the&lt;br /&gt;
necessery setting for this doman in the server and send us the details. We&lt;br /&gt;
will change the name server setting in the register.&lt;br /&gt;
  ===============================================================================&lt;br /&gt;
&lt;br /&gt;
SOLUTION:&lt;br /&gt;
&lt;br /&gt;
RCA:&lt;br /&gt;
&lt;br /&gt;
********************************************************************************************&lt;br /&gt;
Note:Firstly take backup of all files which you want to edit.&lt;br /&gt;
&lt;br /&gt;
1. Create directory &amp;quot;www.e-lflash.com&amp;quot; in &amp;quot;/var/www/vhosts/&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. Add domain alias &amp;quot;e-lflash.com&amp;quot; in /etc/squirrelmail/apache.conf on ccatsrv1&lt;br /&gt;
   add this line in file:&lt;br /&gt;
  &amp;quot;ServerAlias pop.e-lflash.com&amp;quot;&lt;br /&gt;
&lt;br /&gt;
for website &lt;br /&gt;
&lt;br /&gt;
cd /etc/apache2/sites-available/&lt;br /&gt;
create file domain.com &lt;br /&gt;
&amp;lt;VirtualHost *:80&amp;gt;&lt;br /&gt;
    ServerName blmintl.com&lt;br /&gt;
    ServerAlias www.blmintl.com&lt;br /&gt;
    DocumentRoot /var/www/vhosts/www.blmintl.com/www&lt;br /&gt;
    CustomLog /var/log/apache2/vhosts/blmintl.com.log combined&lt;br /&gt;
    ErrorLog /var/log/apache2/vhosts/blmintl.com-error&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
ln -s /etc/apache2/sites-available/blmintl.com /etc/apache2/sites-enabled/blmintl.com&lt;br /&gt;
&lt;br /&gt;
reload apache2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. This steps applies on ccatsrv1 and ccatsrv2:&lt;br /&gt;
   cd /service/tinydns/root/&lt;br /&gt;
   ./add-ns e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-ns e-lflash.com 210.17.247.97&lt;br /&gt;
   ./add-mx e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-mx e-lflash.com 210.17.247.97&lt;br /&gt;
   ./add-alias www.e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-alias pop.e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-alias e-lflash.com 210.17.247.96&lt;br /&gt;
   ./add-alias mailadmin.e-lflash.com 210.17.247.96&lt;br /&gt;
&lt;br /&gt;
after this step execute &amp;quot;make&amp;quot; command to compile &amp;quot;data&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
4. rcpthosts.cdb was created on both servers:&lt;br /&gt;
add domain &amp;quot;e-lflash.com&amp;quot; in /var/qmail/control/rcpthosts &lt;br /&gt;
#/var/qmail/bin/qmail-cdb rcpthosts.cdb rcpthost.tmp &amp;lt; rcpthosts&lt;br /&gt;
&lt;br /&gt;
add into locals files in which server mailbox is exist.&lt;br /&gt;
#/var/qmail/bin/qmail-cdb locals.cdb locals.tmp &amp;lt; locals&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. add domain in &amp;quot;/var/qmail/control/smtproutes&amp;quot; file: (check mail box of e-lflash.com on both server before this step.)&lt;br /&gt;
e-lflash.com:210.17.247.96:25&lt;br /&gt;
&lt;br /&gt;
6. Restart apache2 service.&lt;br /&gt;
#/etc/init.d/apache2 restart|reload&lt;br /&gt;
********************************************************&lt;br /&gt;
&lt;br /&gt;
./add-ns indiadesk.com.hk 210.17.247.96&lt;br /&gt;
./add-ns galaxymarine.com.hk 210.17.247.97&lt;br /&gt;
&lt;br /&gt;
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;br /&gt;
&lt;br /&gt;
 210.17.247.39 &lt;br /&gt;
&lt;br /&gt;
Bee.Dee#@!mc &lt;br /&gt;
beedeemc.com&lt;br /&gt;
&lt;br /&gt;
Please find the vqadmin login Details.&lt;br /&gt;
&lt;br /&gt;
    URL:  &amp;lt;http://ccatindia.in/cgi-bin/vqadmin/vqadmin.cgi&amp;gt;&lt;br /&gt;
http://beedeemc.com/cgi-bin/vqadmin/vqadmin.cgi&lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
&amp;lt;http://ccatindia.in/cgi-bin/qmailadmin&amp;gt;&lt;br /&gt;
http://beedeemc.com/cgi-bin/qmailadmin&lt;br /&gt;
&lt;br /&gt;
Domain:  &amp;lt;http://beedeemc.com/&amp;gt; beedeemc.com&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------&lt;br /&gt;
SKYPE DETAILS&lt;br /&gt;
tetra.service&lt;br /&gt;
sysop0603&lt;br /&gt;
--[[User:Subhash|Subhash]] 16:15, 29 September 2012 (IST)&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients&amp;diff=559</id>
		<title>Category:Tetra Clients</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients&amp;diff=559"/>
		<updated>2012-12-18T11:19:17Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Replaced content with &amp;quot;category:Phdcci &amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Phdcci ]]&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients&amp;diff=558</id>
		<title>Category:Tetra Clients</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients&amp;diff=558"/>
		<updated>2012-12-18T11:18:08Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Phdcci ]]&lt;br /&gt;
&lt;br /&gt;
Phdcci Architecture And Details:&lt;br /&gt;
&lt;br /&gt;
Server Details:&lt;br /&gt;
&lt;br /&gt;
 Global IP : 210.7.75.146   (active), eth0 port&lt;br /&gt;
 Local Ip : 192.168.0.1 , eth1 port&lt;br /&gt;
 In phdcci, one mail server contains :&lt;br /&gt;
  a) Iptables&lt;br /&gt;
  b)Squid&lt;br /&gt;
  c)Qmail + 2 Instance &lt;br /&gt;
   &lt;br /&gt;
   1. mails are directly land to the mail server.&lt;br /&gt;
   2. When phdcci user send a mail then first check whether it is local or not this work is         done by 1st instance and when user not exist then it passes to 2nd instance and  2nd instance of qmail attach a disclaimer in it and send it.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients&amp;diff=557</id>
		<title>Category:Tetra Clients</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients&amp;diff=557"/>
		<updated>2012-12-18T11:06:25Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients&amp;diff=556</id>
		<title>Category:Tetra Clients</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients&amp;diff=556"/>
		<updated>2012-12-18T11:05:52Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Tetra Clients]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Phdcci Architecture And Details:&lt;br /&gt;
&lt;br /&gt;
Server Details:&lt;br /&gt;
&lt;br /&gt;
 Global IP : 210.7.75.146   (active), eth0 port&lt;br /&gt;
 Local Ip : 192.168.0.1 , eth1 port&lt;br /&gt;
 In phdcci, one mail server contains :&lt;br /&gt;
  a) Iptables&lt;br /&gt;
  b)Squid&lt;br /&gt;
  c)Qmail + 2 Instance &lt;br /&gt;
   &lt;br /&gt;
   1. mails are directly land to the mail server.&lt;br /&gt;
   2. When phdcci user send a mail then first check whether it is local or not this work is         done by 1st instance and when user not exist then it passes to 2nd instance and  2nd instance of qmail attach a disclaimer in it and send it.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients&amp;diff=552</id>
		<title>Category:Tetra Clients</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients&amp;diff=552"/>
		<updated>2012-12-18T10:58:38Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients&amp;diff=551</id>
		<title>Category:Tetra Clients</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients&amp;diff=551"/>
		<updated>2012-12-18T10:57:35Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Phdcci Structure &amp;amp; Details]]&lt;br /&gt;
[[category:Tetra Clients]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Phdcci Architecture And Details:&lt;br /&gt;
&lt;br /&gt;
Server Details:&lt;br /&gt;
&lt;br /&gt;
 Global IP : 210.7.75.146   (active), eth0 port&lt;br /&gt;
 Local Ip : 192.168.0.1 , eth1 port&lt;br /&gt;
 In phdcci, one mail server contains :&lt;br /&gt;
  a) Iptables&lt;br /&gt;
  b)Squid&lt;br /&gt;
  c)Qmail + 2 Instance &lt;br /&gt;
   &lt;br /&gt;
 1. mails are directly land to the mail server.&lt;br /&gt;
 2. When phdcci user send a mail then first check whether it is local or not this work is done by 1st instance and when user not exist then it  passes to  2nd instance and  2nd instance of qmail attach a disclaimer in it and send it.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=File:Training_doc_new.pdf&amp;diff=466</id>
		<title>File:Training doc new.pdf</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=File:Training_doc_new.pdf&amp;diff=466"/>
		<updated>2012-12-04T08:59:44Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Tetra Training Doc PDF]]&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients/Web_Hosting_Of_BJP_In_Godaddy_Server&amp;diff=465</id>
		<title>Category:Tetra Clients/Web Hosting Of BJP In Godaddy Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients/Web_Hosting_Of_BJP_In_Godaddy_Server&amp;diff=465"/>
		<updated>2012-12-04T08:57:31Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Tetra_Clients]] &lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
                                    BJP WEB HOSTING ON GODADDY SERVER:&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 1. Login to Godaddy server.&lt;br /&gt;
&lt;br /&gt;
 2. Open that given host file and paste it to:&lt;br /&gt;
            &lt;br /&gt;
    # mv hostfile  /home/public_html/hostfile &lt;br /&gt;
&lt;br /&gt;
 3.Go to configuration  file of Apache server i.e :&lt;br /&gt;
               &lt;br /&gt;
    #vim /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;VirtualHost ip:80&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    DocumentRoot /home/public_ html/bjpinloksabha/&lt;br /&gt;
    ServerName bjpls.tetra.in&lt;br /&gt;
    ErrorLog logs/bjpinloksabha-error_log&lt;br /&gt;
    CustomLog logs/bjpinloksabha-access_log &amp;quot;%h %l %u %t \&amp;quot;%r\&amp;quot; %&amp;gt;s %b \&amp;quot;%{Referer}i\&amp;quot; \&amp;quot;%{User-Agent}i\&amp;quot;&amp;quot;&lt;br /&gt;
    &amp;lt;Directory /home/public_html/bjpinloksabha&amp;gt;&lt;br /&gt;
    DirectoryIndex index.php&lt;br /&gt;
    AllowOverride All&lt;br /&gt;
    Order allow,deny&lt;br /&gt;
    Allow from all&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
    &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    # Go to sql command promt using :&lt;br /&gt;
&lt;br /&gt;
 1. mysql&amp;gt;mysql -u{username} -p{password}&lt;br /&gt;
&lt;br /&gt;
 2. mysql&amp;gt;show databases;&lt;br /&gt;
&lt;br /&gt;
 3. mysql&amp;gt;create database db_name;&lt;br /&gt;
&lt;br /&gt;
 4. mysql&amp;gt; CREATE USER &#039;tetra&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;some_pass&#039;;&lt;br /&gt;
 &lt;br /&gt;
 5. mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO &#039;tetra&#039;@&#039;localhost&#039; WITH GRANT OPTION;&lt;br /&gt;
         &lt;br /&gt;
 6. quit&lt;br /&gt;
&lt;br /&gt;
 # Store the dump that you have :&lt;br /&gt;
&lt;br /&gt;
    #mysql -u{username} -p{password} db_name &amp;lt; /path/db.sql&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 // GO TO FILE WHERE YOU CAN CONNECT DATABASE TO HOSTFILE // &lt;br /&gt;
 &lt;br /&gt;
  1. vim /home/public_html/admin/connect.php&lt;br /&gt;
  2. Where you can enter the created database user name and password.&lt;br /&gt;
  &lt;br /&gt;
  3. When Website run then some Notices and Error are shown to you For that we make entry in one file:&lt;br /&gt;
                          &lt;br /&gt;
     # vim /etc/php.ini&lt;br /&gt;
  &lt;br /&gt;
  4. Uncomment this line OR write this line &lt;br /&gt;
   &lt;br /&gt;
              error_reporting = E_ALL &amp;amp; ~E_NOTICE &lt;br /&gt;
&lt;br /&gt;
  5. Comment this line &lt;br /&gt;
              error_reporting = E_ALL &amp;amp; ~E_NOTICE | E_STRICT &lt;br /&gt;
  &lt;br /&gt;
  6. Reload the apache server&lt;br /&gt;
             &lt;br /&gt;
              /etc/init.d/httpd reload&lt;br /&gt;
&lt;br /&gt;
  7. Please check the site.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients/Web_Hosting_Of_BJP_In_Godaddy_Server&amp;diff=464</id>
		<title>Category:Tetra Clients/Web Hosting Of BJP In Godaddy Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients/Web_Hosting_Of_BJP_In_Godaddy_Server&amp;diff=464"/>
		<updated>2012-12-04T08:56:14Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:BJP WEB HOSTING ON GODADDY SERVER]] &lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
                                    BJP WEB HOSTING ON GODADDY SERVER:&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 1. Login to Godaddy server.Tetra_Clients&lt;br /&gt;
&lt;br /&gt;
 2. Open that given host file and paste it to:&lt;br /&gt;
            &lt;br /&gt;
    # mv hostfile  /home/public_html/hostfile &lt;br /&gt;
&lt;br /&gt;
 3.Go to configuration  file of Apache server i.e :&lt;br /&gt;
               &lt;br /&gt;
    #vim /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;VirtualHost ip:80&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    DocumentRoot /home/public_ html/bjpinloksabha/&lt;br /&gt;
    ServerName bjpls.tetra.in&lt;br /&gt;
    ErrorLog logs/bjpinloksabha-error_log&lt;br /&gt;
    CustomLog logs/bjpinloksabha-access_log &amp;quot;%h %l %u %t \&amp;quot;%r\&amp;quot; %&amp;gt;s %b \&amp;quot;%{Referer}i\&amp;quot; \&amp;quot;%{User-Agent}i\&amp;quot;&amp;quot;&lt;br /&gt;
    &amp;lt;Directory /home/public_html/bjpinloksabha&amp;gt;&lt;br /&gt;
    DirectoryIndex index.php&lt;br /&gt;
    AllowOverride All&lt;br /&gt;
    Order allow,deny&lt;br /&gt;
    Allow from all&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
    &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    # Go to sql command promt using :&lt;br /&gt;
&lt;br /&gt;
 1. mysql&amp;gt;mysql -u{username} -p{password}&lt;br /&gt;
&lt;br /&gt;
 2. mysql&amp;gt;show databases;&lt;br /&gt;
&lt;br /&gt;
 3. mysql&amp;gt;create database db_name;&lt;br /&gt;
&lt;br /&gt;
 4. mysql&amp;gt; CREATE USER &#039;tetra&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;some_pass&#039;;&lt;br /&gt;
 &lt;br /&gt;
 5. mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO &#039;tetra&#039;@&#039;localhost&#039; WITH GRANT OPTION;&lt;br /&gt;
         &lt;br /&gt;
 6. quit&lt;br /&gt;
&lt;br /&gt;
 # Store the dump that you have :&lt;br /&gt;
&lt;br /&gt;
    #mysql -u{username} -p{password} db_name &amp;lt; /path/db.sql&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 // GO TO FILE WHERE YOU CAN CONNECT DATABASE TO HOSTFILE // &lt;br /&gt;
 &lt;br /&gt;
  1. vim /home/public_html/admin/connect.php&lt;br /&gt;
  2. Where you can enter the created database user name and password.&lt;br /&gt;
  &lt;br /&gt;
  3. When Website run then some Notices and Error are shown to you For that we make entry in one file:&lt;br /&gt;
                          &lt;br /&gt;
     # vim /etc/php.ini&lt;br /&gt;
  &lt;br /&gt;
  4. Uncomment this line OR write this line &lt;br /&gt;
   &lt;br /&gt;
              error_reporting = E_ALL &amp;amp; ~E_NOTICE &lt;br /&gt;
&lt;br /&gt;
  5. Comment this line &lt;br /&gt;
              error_reporting = E_ALL &amp;amp; ~E_NOTICE | E_STRICT &lt;br /&gt;
  &lt;br /&gt;
  6. Reload the apache server&lt;br /&gt;
             &lt;br /&gt;
              /etc/init.d/httpd reload&lt;br /&gt;
&lt;br /&gt;
  7. Please check the site.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients/Web_Hosting_Of_BJP_In_Godaddy_Server&amp;diff=463</id>
		<title>Category:Tetra Clients/Web Hosting Of BJP In Godaddy Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients/Web_Hosting_Of_BJP_In_Godaddy_Server&amp;diff=463"/>
		<updated>2012-12-04T08:39:30Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:Tetra_Clients]] &lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
                                    BJP WEB HOSTING ON GODADDY SERVER:&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 1. Login to Godaddy server.&lt;br /&gt;
&lt;br /&gt;
 2. Open that given host file and paste it to:&lt;br /&gt;
            &lt;br /&gt;
    # mv hostfile  /home/public_html/hostfile &lt;br /&gt;
&lt;br /&gt;
 3.Go to configuration  file of Apache server i.e :&lt;br /&gt;
               &lt;br /&gt;
    #vim /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;VirtualHost ip:80&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    DocumentRoot /home/public_ html/bjpinloksabha/&lt;br /&gt;
    ServerName bjpls.tetra.in&lt;br /&gt;
    ErrorLog logs/bjpinloksabha-error_log&lt;br /&gt;
    CustomLog logs/bjpinloksabha-access_log &amp;quot;%h %l %u %t \&amp;quot;%r\&amp;quot; %&amp;gt;s %b \&amp;quot;%{Referer}i\&amp;quot; \&amp;quot;%{User-Agent}i\&amp;quot;&amp;quot;&lt;br /&gt;
    &amp;lt;Directory /home/public_html/bjpinloksabha&amp;gt;&lt;br /&gt;
    DirectoryIndex index.php&lt;br /&gt;
    AllowOverride All&lt;br /&gt;
    Order allow,deny&lt;br /&gt;
    Allow from all&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
    &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    # Go to sql command promt using :&lt;br /&gt;
&lt;br /&gt;
 1. mysql&amp;gt;mysql -u{username} -p{password}&lt;br /&gt;
&lt;br /&gt;
 2. mysql&amp;gt;show databases;&lt;br /&gt;
&lt;br /&gt;
 3. mysql&amp;gt;create database db_name;&lt;br /&gt;
&lt;br /&gt;
 4. mysql&amp;gt; CREATE USER &#039;tetra&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;some_pass&#039;;&lt;br /&gt;
 &lt;br /&gt;
 5. mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO &#039;tetra&#039;@&#039;localhost&#039; WITH GRANT OPTION;&lt;br /&gt;
         &lt;br /&gt;
 6. quit&lt;br /&gt;
&lt;br /&gt;
 # Store the dump that you have :&lt;br /&gt;
&lt;br /&gt;
    #mysql -u{username} -p{password} db_name &amp;lt; /path/db.sql&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 // GO TO FILE WHERE YOU CAN CONNECT DATABASE TO HOSTFILE // &lt;br /&gt;
 &lt;br /&gt;
  1. vim /home/public_html/admin/connect.php&lt;br /&gt;
  2. Where you can enter the created database user name and password.&lt;br /&gt;
  &lt;br /&gt;
  3. When Website run then some Notices and Error are shown to you For that we make entry in one file:&lt;br /&gt;
                          &lt;br /&gt;
     # vim /etc/php.ini&lt;br /&gt;
  &lt;br /&gt;
  4. Uncomment this line OR write this line &lt;br /&gt;
   &lt;br /&gt;
              error_reporting = E_ALL &amp;amp; ~E_NOTICE &lt;br /&gt;
&lt;br /&gt;
  5. Comment this line &lt;br /&gt;
              error_reporting = E_ALL &amp;amp; ~E_NOTICE | E_STRICT &lt;br /&gt;
  &lt;br /&gt;
  6. Reload the apache server&lt;br /&gt;
             &lt;br /&gt;
              /etc/init.d/httpd reload&lt;br /&gt;
&lt;br /&gt;
  7. Please check the site.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=File:Training_doc_new.pdf&amp;diff=461</id>
		<title>File:Training doc new.pdf</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=File:Training_doc_new.pdf&amp;diff=461"/>
		<updated>2012-12-04T07:54:39Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
	<entry>
		<id>https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients/Web_Hosting_Of_BJP_In_Godaddy_Server&amp;diff=460</id>
		<title>Category:Tetra Clients/Web Hosting Of BJP In Godaddy Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.tetrain.com/index.php?title=Category:Tetra_Clients/Web_Hosting_Of_BJP_In_Godaddy_Server&amp;diff=460"/>
		<updated>2012-12-04T07:49:47Z</updated>

		<summary type="html">&lt;p&gt;Abhinav: Created page with &amp;quot;------------------------------------------------------------------------------------------------------------------------------------------------------------                   ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
                                    BJP WEB HOSTING ON GODADDY SERVER:&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 1. Login to Godaddy server.&lt;br /&gt;
&lt;br /&gt;
 2. Open that given host file and paste it to:&lt;br /&gt;
            &lt;br /&gt;
    # mv hostfile  /home/public_html/hostfile &lt;br /&gt;
&lt;br /&gt;
 3.Go to configuration  file of Apache server i.e :&lt;br /&gt;
               &lt;br /&gt;
    #vim /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;VirtualHost ip:80&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    DocumentRoot /home/public_ html/bjpinloksabha/&lt;br /&gt;
    ServerName bjpls.tetra.in&lt;br /&gt;
    ErrorLog logs/bjpinloksabha-error_log&lt;br /&gt;
    CustomLog logs/bjpinloksabha-access_log &amp;quot;%h %l %u %t \&amp;quot;%r\&amp;quot; %&amp;gt;s %b \&amp;quot;%{Referer}i\&amp;quot; \&amp;quot;%{User-Agent}i\&amp;quot;&amp;quot;&lt;br /&gt;
    &amp;lt;Directory /home/public_html/bjpinloksabha&amp;gt;&lt;br /&gt;
    DirectoryIndex index.php&lt;br /&gt;
    AllowOverride All&lt;br /&gt;
    Order allow,deny&lt;br /&gt;
    Allow from all&lt;br /&gt;
    &amp;lt;/Directory&amp;gt;&lt;br /&gt;
    &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    # Go to sql command promt using :&lt;br /&gt;
&lt;br /&gt;
 1. mysql&amp;gt;mysql -u{username} -p{password}&lt;br /&gt;
&lt;br /&gt;
 2. mysql&amp;gt;show databases;&lt;br /&gt;
&lt;br /&gt;
 3. mysql&amp;gt;create database db_name;&lt;br /&gt;
&lt;br /&gt;
 4. mysql&amp;gt; CREATE USER &#039;tetra&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;some_pass&#039;;&lt;br /&gt;
 &lt;br /&gt;
 5. mysql&amp;gt; GRANT ALL PRIVILEGES ON *.* TO &#039;tetra&#039;@&#039;localhost&#039; WITH GRANT OPTION;&lt;br /&gt;
         &lt;br /&gt;
 6. quit&lt;br /&gt;
&lt;br /&gt;
 # Store the dump that you have :&lt;br /&gt;
&lt;br /&gt;
    #mysql -u{username} -p{password} db_name &amp;lt; /path/db.sql&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 // GO TO FILE WHERE YOU CAN CONNECT DATABASE TO HOSTFILE // &lt;br /&gt;
 &lt;br /&gt;
  1. vim /home/public_html/admin/connect.php&lt;br /&gt;
  2. Where you can enter the created database user name and password.&lt;br /&gt;
  &lt;br /&gt;
  3. When Website run then some Notices and Error are shown to you For that we make entry in one file:&lt;br /&gt;
                          &lt;br /&gt;
     # vim /etc/php.ini&lt;br /&gt;
  &lt;br /&gt;
  4. Uncomment this line OR write this line &lt;br /&gt;
   &lt;br /&gt;
              error_reporting = E_ALL &amp;amp; ~E_NOTICE &lt;br /&gt;
&lt;br /&gt;
  5. Comment this line &lt;br /&gt;
              error_reporting = E_ALL &amp;amp; ~E_NOTICE | E_STRICT &lt;br /&gt;
  &lt;br /&gt;
  6. Reload the apache server&lt;br /&gt;
             &lt;br /&gt;
              /etc/init.d/httpd reload&lt;br /&gt;
&lt;br /&gt;
  7. Please check the site.&lt;/div&gt;</summary>
		<author><name>Abhinav</name></author>
	</entry>
</feed>