<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NIS in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775822#M75944</link>
    <description>Hi Ben,&lt;BR /&gt;It's not a must but recommended for a "cleaner" startup. However you should be able to use the startup script in /sbin/init.d. I would recommend stop nis.client also.&lt;BR /&gt;# /sbin/init.d/nis.client stop&lt;BR /&gt;Now start it up like so ..&lt;BR /&gt;# /sbin/init.d/nis.server start&lt;BR /&gt;# /sbin/init.d/nis.client start</description>
    <pubDate>Mon, 28 Oct 2002 20:42:30 GMT</pubDate>
    <dc:creator>S.K. Chan</dc:creator>
    <dc:date>2002-10-28T20:42:30Z</dc:date>
    <item>
      <title>NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775802#M75924</link>
      <description>Hi There:&lt;BR /&gt;&lt;BR /&gt;  We have 1 NIS Master and 3 Slaves. We are planning for a scenario where if the Master is down we should be able to add the users. We cannot add any users to the /etc/passwd so the only choice would be to make the next slave server as master. My questions would be&lt;BR /&gt;1. what are the steps that we should do to make one of the 3 slaves as master.&lt;BR /&gt;2. what are the steps that we should do when the master is up again.&lt;BR /&gt;3.Is it possible to automate the steps.&lt;BR /&gt;4.Implications.&lt;BR /&gt;Can someone help please.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Tue, 30 Jul 2002 16:26:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775802#M75924</guid>
      <dc:creator>ben_43</dc:creator>
      <dc:date>2002-07-30T16:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775803#M75925</link>
      <description>This is what I think you need to do to convert your slave to master. I have not try it before but I think it's very close. Please test it by setting a separate domainname in your environment before you do this on your "real" NIS domain. OK .. assumptions made ..&lt;BR /&gt;- Slave and master are in the same subnet.&lt;BR /&gt;- No additional maps are configured (eg: automounter maps), means no edits are needed for files like /usr/sbin/ypinit,/var/yp/Makefile and /var/yp/ypmake.&lt;BR /&gt;- Backups of latest map files on master exists.&lt;BR /&gt;- Master is now down and all your clients are binding to the existing slaves.&lt;BR /&gt;&lt;BR /&gt;On one of your slave&lt;BR /&gt;=====================&lt;BR /&gt;# domainname&lt;BR /&gt;==&amp;gt; Double check, make sure domainname is correct.&lt;BR /&gt;# vi /etc/rc.config.d/namesvrs&lt;BR /&gt;==&amp;gt; Enable "NIS_MASTER_SERVER" bit.&lt;BR /&gt;&lt;BR /&gt;Restore all the files that NIS manages from tape. Some of those files are/may-be ..&lt;BR /&gt;/etc/passwd&lt;BR /&gt;/etc/group&lt;BR /&gt;/etc/hosts&lt;BR /&gt;/etc/protocols&lt;BR /&gt;/etc/netgroup&lt;BR /&gt;/etc/networks&lt;BR /&gt;/etc/services&lt;BR /&gt;.....&lt;BR /&gt;&lt;BR /&gt;# cd /var/yp&lt;BR /&gt;# mv engr engr.org&lt;BR /&gt;==&amp;gt; Say "engr" is your domainname. What you're doing here is saving/renaming the NIS DB directory.&lt;BR /&gt;# cd /&lt;BR /&gt;# /usr/sbin/ypinit -m&lt;BR /&gt;==&amp;gt; Initializing and rebuild the NIS DB. I think it'll prompt for you to enter the hostnames of all your slaves. After this you should see /var/yp/engr created with all your maps in it.&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/nis.server stop&lt;BR /&gt;# /sbin/init.d/nis.client stop&lt;BR /&gt;# /sbin/init.d/nis.server start&lt;BR /&gt;# /sbin/init.d/nis.client start&lt;BR /&gt;==&amp;gt; Restart client and server processes.&lt;BR /&gt;# ypwhich&lt;BR /&gt;==&amp;gt; Should show that it's bindind to itself because this is now the master. If it shows that it is binding to another slave, you need to restart "nis.server" on that slave. Then restart "nis.server" on this server (the master).&lt;BR /&gt;&lt;BR /&gt;That's all !! Now when your "dead" master wakes up just turn it into slave first. Once verified everything runs fine, you can take your own time to swap both of them later. Just follow the same steps above. As far as automating it, I suppose you can write a script based on the above.</description>
      <pubDate>Tue, 30 Jul 2002 17:00:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775803#M75925</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-07-30T17:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775804#M75926</link>
      <description>Thanks SK:&lt;BR /&gt;&lt;BR /&gt;The only point on when the dead master comes up it would try to become master. So when it comes up should i go into single user mode and make these changes.(to have it as slave). Also what will happen to the maps that were created when the master was down?? I mean how will the master be in sync with the standby master?? before it becomes the master?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ben J</description>
      <pubDate>Tue, 30 Jul 2002 17:17:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775804#M75926</guid>
      <dc:creator>ben_43</dc:creator>
      <dc:date>2002-07-30T17:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775805#M75927</link>
      <description>The only point on when the dead master comes up it would try to become master. So when it comes up should i go into single user mode and make these changes.(to have it as slave).&lt;BR /&gt;==&amp;gt; Yes, I'm assuming worst case scenario whereby your master server had some hardware problem and needs manually intervention when it's back in operation.&lt;BR /&gt;&lt;BR /&gt;Also what will happen to the maps that were created when the master was down?? &lt;BR /&gt;==&amp;gt; These maps will reside in your "used-to-be-slave-now-master" server. All files (eg: /etc/passwd, etc, etc) will get updated here.&lt;BR /&gt;&lt;BR /&gt;I mean how will the master be in sync with the standby master?? before it becomes the master?&lt;BR /&gt;==&amp;gt; When the "original-master" becomes a slave the NIS DB will always get updated (/var/yp/&lt;DOMAINNAME&gt;). Is those files that were managed by NIS that needs to be transferred over when you decide to swap the two servers. &lt;BR /&gt; &lt;BR /&gt;&lt;/DOMAINNAME&gt;</description>
      <pubDate>Tue, 30 Jul 2002 17:29:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775805#M75927</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-07-30T17:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775806#M75928</link>
      <description>Thanks again.&lt;BR /&gt;1. What was the purpose of creating a new NIS DB directory on the used-to-be-slave?&lt;BR /&gt;&lt;BR /&gt;2. After the master comes up what NIS DB would it use. I am not clear of what it is doing?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ben J</description>
      <pubDate>Tue, 30 Jul 2002 17:46:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775806#M75928</guid>
      <dc:creator>ben_43</dc:creator>
      <dc:date>2002-07-30T17:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775807#M75929</link>
      <description>1. What was the purpose of creating a new NIS DB directory on the used-to-be-slave?&lt;BR /&gt;==&amp;gt; If you look at the difference in /var/yp/&lt;DOMAINNAME&gt; between the master and the slave, you will see for each map (take for example "passwd" map) there is an additional file in the master not found in the slave, that file is "passwd.time". Other DB files..&lt;BR /&gt;passwd.byname.dir&lt;BR /&gt;passwd.byname.pag&lt;BR /&gt;passwd.byuid.dir&lt;BR /&gt;passwd.byuid.pag&lt;BR /&gt;are the same in size and timestamp. So to answer you question, everytime a "new" master is setup the NIS DB has to be re-created ("ypinit -m"). You cannot use the existing /var/yp/&lt;DOMAINNAME&gt; which is used for the slave.&lt;BR /&gt;&lt;BR /&gt;2. After the master comes up what NIS DB would it use. I am not clear of what it is doing?&lt;BR /&gt;==&amp;gt; It would use the DB that you have re-created from all the "latest" files that are managed by NIS. By running "ypinit -m" it rebuilt the NIS DB in /var/yp/&lt;DOMAINNAME&gt;.&lt;BR /&gt;&lt;/DOMAINNAME&gt;&lt;/DOMAINNAME&gt;&lt;/DOMAINNAME&gt;</description>
      <pubDate>Tue, 30 Jul 2002 18:00:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775807#M75929</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-07-30T18:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775808#M75930</link>
      <description>Hi SK:&lt;BR /&gt;&lt;BR /&gt;  Sorry for the delay in reply. I needed some clarification on the "tape" part.&lt;BR /&gt;&lt;BR /&gt;1. Is it even possible to recover files from one machine to a different one thru tape?&lt;BR /&gt;2. What would be an alternate solution if the tape devices are not connected to the current slaves?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ben J</description>
      <pubDate>Fri, 09 Aug 2002 16:35:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775808#M75930</guid>
      <dc:creator>ben_43</dc:creator>
      <dc:date>2002-08-09T16:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775809#M75931</link>
      <description>Hi Joe, please no apology :)&lt;BR /&gt;=&amp;gt; In my 1st reply I'm assuming you have some kind of backup on your NIS master. What I do here is (on top of the regular backup-to-tape process) I backed up those files managed by NIS and all other NIS related config files (eg: /usr/sbin/ypinit,/var/yp/Makefile and /var/yp/ypmake, /etc/rc.config/namesvrs) to a separate location on another server. That way I can get them faster when needed. When you convert one of your slave to master all you need are the files mentioned, so the recovery-from-tape will be a partial recovery. As long as you have a tape drive conected on any Unix box, you can always remotely access it. The drive does not need to be local. For eg:&lt;BR /&gt;# frecover -f venus:/dev/rmt/0m -I /tmp/index&lt;BR /&gt;==&amp;gt; Recover "index" file from a tape drive attached to host "venus".&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Aug 2002 16:56:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775809#M75931</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-08-09T16:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775810#M75932</link>
      <description>Thanks SK. This has been a wonderful NIS walkthru, but i still have some clarifications to make. Here are my questions below....&lt;BR /&gt;&lt;BR /&gt;1. I think this is the way (the steps that you provided) the NIS was setup initially (thru manual effort). Is there a way to "promote" the slave to master w/o the manual work???&lt;BR /&gt;&lt;BR /&gt;2. About the frecover...I think we are running the make_recovery_A (back up og vg00) on the master. So the files you mentioned for NIS i think ahould be covered is it not?&lt;BR /&gt;&lt;BR /&gt;3. Can you go thru all the files required to be copied from tape on the slave. I mean each file for what purpose..&lt;BR /&gt;&lt;BR /&gt;4. Will the tape be accessable if the master is down?????&lt;BR /&gt;&lt;BR /&gt;Thanks SK once again,&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ben J</description>
      <pubDate>Mon, 12 Aug 2002 12:16:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775810#M75932</guid>
      <dc:creator>ben_43</dc:creator>
      <dc:date>2002-08-12T12:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775811#M75933</link>
      <description>S.K. Are you there???? Pl. Advise.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ben J</description>
      <pubDate>Mon, 12 Aug 2002 15:24:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775811#M75933</guid>
      <dc:creator>ben_43</dc:creator>
      <dc:date>2002-08-12T15:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775812#M75934</link>
      <description>1. Yeah, you're right it does look like the procedure that you would take to setup the master manually. Frankly I do not know of any other way to do this easily except for translating your steps into a script. I do not have that script since I have documented the recovery procedure quite thoroughly on my site.&lt;BR /&gt;&lt;BR /&gt;2. Yes (provided all your files are in vg00 which I think they should be, if you leave all those files that NIS manages in their original location). You can try to extract some files (eg: /etc/group, /etc/passwd) from the tape on a different machine just to mke sure. For example (say the tape drive is /dev/rmt/0m)..&lt;BR /&gt;# mt -f /dev/rmt/0mn rew &lt;BR /&gt;==&amp;gt; Remember ..use "no rewind device 0mn". First rewind the tape t the beginning. This step may not be necessary.&lt;BR /&gt;# mkdir /tmp/testarea&lt;BR /&gt;# cd /tmp/testarea&lt;BR /&gt;# tar -xvf /dev/rmt/0mn etc/passwd&lt;BR /&gt;==&amp;gt; That should just extract "passwd" file and put it in /tmp/testarea.&lt;BR /&gt;&lt;BR /&gt;3. Lets start with files that are managed by NIS. By default (meaning if you do not add any additional map into NIS to manage) you can look at /usr/sbin/ypinit, the "MASTER_MAPS" definition list and those files are ..&lt;BR /&gt;/etc/mail/aliases&lt;BR /&gt;/etc/auto_master&lt;BR /&gt;/etc/group&lt;BR /&gt;/etc/hosts&lt;BR /&gt;/etc/netgroup&lt;BR /&gt;/etc/netid&lt;BR /&gt;/etc/networks&lt;BR /&gt;/etc/passwd&lt;BR /&gt;/etc/protocols&lt;BR /&gt;/etc/publickey&lt;BR /&gt;/etc/rpc&lt;BR /&gt;/etc/services&lt;BR /&gt;/etc/vhe_list&lt;BR /&gt;/etc/ethers&lt;BR /&gt;/etc/netmasks&lt;BR /&gt;Now I'm sure not all files are used even though they are distributed when you pushed the maps. It does not matter. For example /etc/auto_master (for Automounter). If you do not use automounter then this map is not used.&lt;BR /&gt;Next (this may/may-not applies to your environment), are the NIS config files. &lt;BR /&gt;/etc/rc.config/namesvrs&lt;BR /&gt;==&amp;gt; If all you need to enable te NIS_MASTER bit then you may just decide to manually change it instead of recovering it from tape.&lt;BR /&gt;/usr/sbin/ypmake&lt;BR /&gt;/var/yp/ypmake&lt;BR /&gt;/var/yp/Makefile&lt;BR /&gt;==&amp;gt; These 3 files are only needed if you have modified them before to add additional maps that were not in the above list. For example, in my case I added /etc/auto_users (used for automounting) on top of the list of files that I need NIS to manage for me. So I will need those 3 files when I rebuild my master server.&lt;BR /&gt;&lt;BR /&gt;4. Yes. See 2.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Aug 2002 15:51:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775812#M75934</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-08-12T15:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775813#M75935</link>
      <description>Hi again,&lt;BR /&gt;I forgot to include an additional step after you rewind the tape. Sorry ! That step is ..&lt;BR /&gt;# mt -f /dev/rmt/0mn fsf 1&lt;BR /&gt;Now you can do your tar extract from the recovery tape.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Aug 2002 15:57:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775813#M75935</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-08-12T15:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775814#M75936</link>
      <description>Thanks SK. Real Help. But my guys here are looking for a process which should be an automated process of converting a slave to master. Let us see.&lt;BR /&gt;&lt;BR /&gt;Thanks &amp;amp; Regards&lt;BR /&gt;Ben J</description>
      <pubDate>Mon, 12 Aug 2002 17:23:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775814#M75936</guid>
      <dc:creator>ben_43</dc:creator>
      <dc:date>2002-08-12T17:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775815#M75937</link>
      <description>SK&lt;BR /&gt;&lt;BR /&gt;One more question. In the steps that you mentioned...&lt;BR /&gt;&lt;BR /&gt;Do we need to re-start the NIS clients on the slave servers? If so why?? Please explain.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ben J</description>
      <pubDate>Fri, 23 Aug 2002 15:00:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775815#M75937</guid>
      <dc:creator>ben_43</dc:creator>
      <dc:date>2002-08-23T15:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775816#M75938</link>
      <description>Hi Ben,&lt;BR /&gt;On the slave server that you have just converted to NIS master, the answer is yes because you want it to force it to bind to itself. On the other slaves the answer is "most probably no" because  those slaves would know how to "self-adjust" if any of them is binding to the slave-that-was-converted-to-master. You can do this to confirm, after the conversion of your slave to a master, check the binding on the rest of the remaining slaves (do ypwhich), if they behave well you don't have to do anything. Hope that answer your question.</description>
      <pubDate>Fri, 23 Aug 2002 15:49:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775816#M75938</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-08-23T15:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775817#M75939</link>
      <description>Hi SK:&lt;BR /&gt;&lt;BR /&gt; Hope you see this question!!!&lt;BR /&gt;&lt;BR /&gt;We have decided to have the dead master (after it comes up) to be the slave permanently, so that the used-to-be-slave-now-master would be the permanent master. with that in mind let me know if the following steps would be OK when the dead master comes alive...&lt;BR /&gt;&lt;BR /&gt;1. Go to single user mode.&lt;BR /&gt;2. edit /etc/rc.config.d/namesvrs file to change NIS_SLAVE_SERVER to 1 and NIS_MASTER_SERVER to 0&lt;BR /&gt;3. exit and save.&lt;BR /&gt;4. reboot.&lt;BR /&gt;Is this OK. Is the reboot required? Any other points i am missing. what about the maps???Kindly confirm the steps. It would be very useful&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ben.</description>
      <pubDate>Thu, 17 Oct 2002 17:05:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775817#M75939</guid>
      <dc:creator>ben_43</dc:creator>
      <dc:date>2002-10-17T17:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775818#M75940</link>
      <description>Hi Ben, &lt;BR /&gt;Not quite. It needs more work than that. First in the single user mode, lets set it up as NIS client first (ie in "namesvrs" file only set NIS_CLIENT="1"). Also make sure the escape sequence is added to /etc/passwd and /etc/group files. The reason is I'm NOT going to assume all the NIS DB files are intact.&lt;BR /&gt;&lt;BR /&gt;Now when it comes up, verify that's is running as an NIS client ..&lt;BR /&gt;# ypwhich&lt;BR /&gt;# ps -ef|grep bind&lt;BR /&gt;==&amp;gt; It should only have one process ie "ypbind".&lt;BR /&gt;Once that's ok, you can proceed to configure this machine as a slave. First you might want to rename the NIS DB directory ..(say your domain name is "engr") because we want to create a fresh one.&lt;BR /&gt;# cd /var/yp&lt;BR /&gt;# mv engr engr.old&lt;BR /&gt;&lt;BR /&gt;Now proceed with these steps to set it up as an NIS slave..&lt;BR /&gt;# domainname engr&lt;BR /&gt;# /usr/sbin/ypinit -s &lt;NIS-MASTER-HOSTNAME&gt;&lt;BR /&gt;=&amp;gt; This will copy the NIS DBs from Master.&lt;BR /&gt;# ll /var/yp/engr&lt;BR /&gt;=&amp;gt; Verify it.&lt;BR /&gt;# vi /etc/rc.config.d/namesvrs&lt;BR /&gt;=&amp;gt; Set NIS_SLAVE_SERVER=1,NIS_DOMAIN=engr&lt;BR /&gt;# /etc/shutdown -r -y 0&lt;BR /&gt;=&amp;gt; Reboot it.&lt;BR /&gt;&lt;BR /&gt;When it comes, verify thst this is now a slave.&lt;BR /&gt;# ps -ef|grep bind&lt;BR /&gt;==&amp;gt; You should see 3 processes(ypserv,ypxfrd and ypbind)&lt;BR /&gt;Now you got it up and running !!&lt;BR /&gt;&lt;BR /&gt;One final step (this may be optional but do it anyway). On the NIS master ..&lt;BR /&gt;&lt;BR /&gt;# cd /var/yp/engr&lt;BR /&gt;# makedbm -u ypservers &amp;gt; ../nis-server-list&lt;BR /&gt;==&amp;gt; This extract the data from "ypservers". We need to check if the hostname of the slave server that you just configured is in here or not.&lt;BR /&gt;# vi ../nis-server-list&lt;BR /&gt;==&amp;gt; If not add the hostname of the slave.&lt;BR /&gt;# makedbm ../nis-server-list ypservers&lt;BR /&gt;==&amp;gt; Update the DB.&lt;BR /&gt;# /var/yp/ypmake  &lt;BR /&gt;==&amp;gt; After this login to the Slave and make sure these files got updated (check its timestamp).&lt;BR /&gt;/var/yp/engr/ypservers.dir&lt;BR /&gt;/var/yp/engr/ypservers.pag&lt;BR /&gt;If they are not updated, push it again from the Master.&lt;BR /&gt;# yppush -v ypservers&lt;BR /&gt;&lt;BR /&gt;Let me know if you need more help ..&lt;BR /&gt;&lt;/NIS-MASTER-HOSTNAME&gt;</description>
      <pubDate>Thu, 17 Oct 2002 17:37:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775818#M75940</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-10-17T17:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775819#M75941</link>
      <description>Thanks SK,&lt;BR /&gt;&lt;BR /&gt;Three more doubts..&lt;BR /&gt;&lt;BR /&gt;1. Also make sure the escape sequence is added to /etc/passwd and /etc/group files&lt;BR /&gt;&lt;BR /&gt;  I do not Understand the meaning of this statement.&lt;BR /&gt;&lt;BR /&gt;2. makedbm -u ypservers &amp;gt; ../nis-server-list &lt;BR /&gt;&lt;BR /&gt;what is ../nis-server-list ? i mean the ..?&lt;BR /&gt;&lt;BR /&gt;3. After we change it to client from the single user mode should i press ctrl D to make the machine come up?&lt;BR /&gt;&lt;BR /&gt;Thanks again,&lt;BR /&gt;Ben</description>
      <pubDate>Thu, 17 Oct 2002 18:18:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775819#M75941</guid>
      <dc:creator>ben_43</dc:creator>
      <dc:date>2002-10-17T18:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775820#M75942</link>
      <description>1. This is the entry that looks like this ..(right at the end of the file)&lt;BR /&gt;in passwd file&lt;BR /&gt;--------------&lt;BR /&gt;+::0:0:::&lt;BR /&gt;in group file&lt;BR /&gt;-------------&lt;BR /&gt;+:&lt;BR /&gt;Take a look at your existing clients. In the passwd file it may also look like this instead..&lt;BR /&gt;+::-2:60001:::&lt;BR /&gt;OR&lt;BR /&gt;+::-2:-2:::&lt;BR /&gt;The first one (ie +::-2:60001:::) is the most secure one.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2. I'm just creating the "nis-server-list" file one level up from the current directory you're at. It does not matter, you can run it like so ..&lt;BR /&gt;# makedbm -u ypservers &amp;gt; /tmp/nis-server-list&lt;BR /&gt;and later&lt;BR /&gt;# makedbm /tmp/nis-server-list ypservers &lt;BR /&gt;&lt;BR /&gt;3. Yes let it boot up as NIS client.</description>
      <pubDate>Thu, 17 Oct 2002 18:27:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775820#M75942</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-10-17T18:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: NIS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775821#M75943</link>
      <description>Hi SK:&lt;BR /&gt;&lt;BR /&gt;  Now proceed with these steps to set it up as an NIS slave.. &lt;BR /&gt;# domainname engr &lt;BR /&gt;# /usr/sbin/ypinit -s &lt;NIS-MASTER-HOSTNAME&gt; &lt;BR /&gt;=&amp;gt; This will copy the NIS DBs from Master. &lt;BR /&gt;# ll /var/yp/engr &lt;BR /&gt;=&amp;gt; Verify it. &lt;BR /&gt;# vi /etc/rc.config.d/namesvrs &lt;BR /&gt;=&amp;gt; Set NIS_SLAVE_SERVER=1,NIS_DOMAIN=engr &lt;BR /&gt;# /etc/shutdown -r -y 0 &lt;BR /&gt;=&amp;gt; Reboot it. (IS THIS REQUIRED?????)&lt;BR /&gt;&lt;BR /&gt;When it comes, verify thst this is now a slave. &lt;BR /&gt;# ps -ef|grep bind &lt;BR /&gt;==&amp;gt; You should see 3 processes(ypserv,ypxfrd and ypbind) &lt;BR /&gt;Now you got it up and running !! &lt;BR /&gt;&lt;BR /&gt;SK..The reboot above is it a must. OR will a stop and start of nis.server will do?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ben.&lt;BR /&gt;&lt;BR /&gt;&lt;/NIS-MASTER-HOSTNAME&gt;</description>
      <pubDate>Mon, 28 Oct 2002 20:21:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis/m-p/2775821#M75943</guid>
      <dc:creator>ben_43</dc:creator>
      <dc:date>2002-10-28T20:21:09Z</dc:date>
    </item>
  </channel>
</rss>

