<?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 Command/Script help. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752065#M70482</link>
    <description>You could try to do it this way:&lt;BR /&gt;ypcat -k ypservers &lt;BR /&gt;&lt;BR /&gt;&lt;OUTPUT&gt;&lt;BR /&gt;donald&lt;BR /&gt;daffy&lt;BR /&gt;buggs&lt;BR /&gt;&lt;BR /&gt;remsh donald "cat /etc/rc.config.d/namesrvs" |egrep "SLAVE|MASTER"&lt;BR /&gt;&lt;BR /&gt;This will tell you which one is what.&lt;BR /&gt;slave = 1&lt;BR /&gt;master = 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;/OUTPUT&gt;</description>
    <pubDate>Tue, 25 Jun 2002 21:08:58 GMT</pubDate>
    <dc:creator>D. Jackson_1</dc:creator>
    <dc:date>2002-06-25T21:08:58Z</dc:date>
    <item>
      <title>NIS Command/Script help.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752060#M70477</link>
      <description>Hi There:&lt;BR /&gt;&lt;BR /&gt;  I am installing a fileset on a hp-ux 11.0 box which would have to go and check the box on which it is installed and then pick out the master and the slave servers from that.(I have one master and 3 slaves) What would be the best way to accomplish this. ypwhich returns tha master name. But how would i extract the master and all the slave names out of a NIS box. Please Help.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Tue, 25 Jun 2002 18:22:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752060#M70477</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-06-25T18:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: NIS Command/Script help.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752061#M70478</link>
      <description>You are probably looking for ypcat -k ypservers.</description>
      <pubDate>Tue, 25 Jun 2002 18:40:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752061#M70478</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-06-25T18:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: NIS Command/Script help.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752062#M70479</link>
      <description>On NIS client I don;t think you can do this but on an NIS slave or NIS master box, I use this method whenever I add additional NIS slaves to the domain. The same method can be used to find out the list of hostnames that were your NIS slaves and masters.&lt;BR /&gt;On NIS master or slave (assuming your NIS domain name is "engr")&lt;BR /&gt;# cd /var/yp/engr&lt;BR /&gt;# makedbm -u ypservers &amp;gt; /tmp/nis-list&lt;BR /&gt;Take a look at the file /tmp/nis-list, at the last line it should say ..&lt;BR /&gt;YP_MASTER_NAME &lt;HOSTNAME&gt;&lt;BR /&gt;and all the other lines before that shows the list of master and slaves. Extract it accordingly.&lt;BR /&gt;&lt;/HOSTNAME&gt;</description>
      <pubDate>Tue, 25 Jun 2002 18:42:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752062#M70479</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-06-25T18:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: NIS Command/Script help.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752063#M70480</link>
      <description>Silly me .. yes ..&lt;BR /&gt;# ypcat -k ypservers&lt;BR /&gt;but I'm not sure how to distinguish which is the master server.</description>
      <pubDate>Tue, 25 Jun 2002 18:45:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752063#M70480</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-06-25T18:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: NIS Command/Script help.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752064#M70481</link>
      <description>Hi :&lt;BR /&gt;&lt;BR /&gt;  Thanks Clay. But yes, how do i identify the master and the slave from that list. Please advise.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Joe.</description>
      <pubDate>Tue, 25 Jun 2002 18:53:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752064#M70481</guid>
      <dc:creator>joe_91</dc:creator>
      <dc:date>2002-06-25T18:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: NIS Command/Script help.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752065#M70482</link>
      <description>You could try to do it this way:&lt;BR /&gt;ypcat -k ypservers &lt;BR /&gt;&lt;BR /&gt;&lt;OUTPUT&gt;&lt;BR /&gt;donald&lt;BR /&gt;daffy&lt;BR /&gt;buggs&lt;BR /&gt;&lt;BR /&gt;remsh donald "cat /etc/rc.config.d/namesrvs" |egrep "SLAVE|MASTER"&lt;BR /&gt;&lt;BR /&gt;This will tell you which one is what.&lt;BR /&gt;slave = 1&lt;BR /&gt;master = 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;/OUTPUT&gt;</description>
      <pubDate>Tue, 25 Jun 2002 21:08:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752065#M70482</guid>
      <dc:creator>D. Jackson_1</dc:creator>
      <dc:date>2002-06-25T21:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: NIS Command/Script help.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752066#M70483</link>
      <description>You could try to do it this way:&lt;BR /&gt;ypcat -k ypservers &lt;BR /&gt;&lt;BR /&gt;&lt;OUTPUT&gt;&lt;BR /&gt;donald&lt;BR /&gt;daffy&lt;BR /&gt;buggs&lt;BR /&gt;&lt;BR /&gt;remsh donald "cat /etc/rc.config.d/namesrvs" |egrep "SLAVE|MASTER"&lt;BR /&gt;&lt;BR /&gt;This will tell you which one is what.&lt;BR /&gt;slave = 1&lt;BR /&gt;master = 0&lt;BR /&gt;&lt;BR /&gt;Donald is a slave.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;/OUTPUT&gt;</description>
      <pubDate>Tue, 25 Jun 2002 21:09:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752066#M70483</guid>
      <dc:creator>D. Jackson_1</dc:creator>
      <dc:date>2002-06-25T21:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: NIS Command/Script help.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752067#M70484</link>
      <description>You can use ypcat -k ypservers to identify the slave servers;&lt;BR /&gt;&lt;BR /&gt;MASTER=$(ypwhich -m ypservers)&lt;BR /&gt;echo "Master NIS Server is ${MASTER}"&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Jun 2002 21:44:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752067#M70484</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-06-25T21:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: NIS Command/Script help.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752068#M70485</link>
      <description>Hey try this&lt;BR /&gt;&lt;BR /&gt;# rpcinfo -p &lt;HOSTNAME&gt; |grep ypserv&lt;BR /&gt;&lt;BR /&gt;if you get the ypserv running on the server that means the server is a NIS Master server.&lt;BR /&gt;&lt;BR /&gt;you can have a small script to check this on the &lt;BR /&gt;&lt;BR /&gt;# ypcat -k ypserves &lt;BR /&gt;&lt;BR /&gt;result&lt;BR /&gt;&lt;BR /&gt;-Niraj&lt;/HOSTNAME&gt;</description>
      <pubDate>Wed, 26 Jun 2002 04:15:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/nis-command-script-help/m-p/2752068#M70485</guid>
      <dc:creator>Niraj Kumar Verma</dc:creator>
      <dc:date>2002-06-26T04:15:24Z</dc:date>
    </item>
  </channel>
</rss>

