Re: Problem Binding to Nis server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



HOW TO Setup Slave Server NIS/YP "The Basics"
	CHECK OUT the WEB for Other NIS/YP HOW-TOs.

> This Sets up a NIS/YP Slave Server fail over Senario.
> Note: Turn-off Wirewalls with:
# service iptables stop

NISDOMAIN=yournisdomainname

 vi /etc/sysconfig/network <ADD> {{
NISDOMAIN=yournisdomainname
}}

 vi /etc/rc.d/init.d/ypbind <CHANGE> {{
OTHER_YPBIND_OPTS="-ypsetme"
}}

 vi /etc/nsswitch.conf <CHANGES> add 'nis' to lines {{
hosts:      files nis dns
passwd:     files nis
group:      files nis
files nis dns
netgroup:   files nis
publickey:  files nis

}}


<Execute from Shell>

# /usr/lib/yp/ypinit -s 'YP_MASTER_SERVER_HOSTNAME'

# ypset `hostname`

# chkconfig --add ypbind
# chkconfig --add ypserv

# ypwhich {Shows who your machine is bound too}

#ypwhich -m {Shows where YP/NIS maps are from}

# ls -altr /var/yp/`nisdomainname`   {Lists file maps copied from NIS/YP
Domain Master Server}

-----------------------------------------------------------------------
Bryan L. Sawyer
Senior Clinical Systems Administrator
Application Systems
University Health System
4502 Medical Drive
San Antonio, TX 78229
210-358-2139  Pager 210-756-0042  Fax 210-358-0260
UHS Business:  bryan.sawyer@xxxxxxxxxx
Technical:  bryan.sawyer@xxxxxxx


-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx]
On Behalf Of redhat-list-request@xxxxxxxxxx
Sent: Wednesday, February 09, 2005 11:01 AM
To: redhat-list@xxxxxxxxxx
Subject: redhat-list Digest, Vol 12, Issue 11


Send redhat-list mailing list submissions to
	redhat-list@xxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
	https://www.redhat.com/mailman/listinfo/redhat-list
or, via email, send a message with subject or body 'help' to
	redhat-list-request@xxxxxxxxxx

You can reach the person managing the list at
	redhat-list-owner@xxxxxxxxxx

When replying, please edit your Subject line so it is more specific than
"Re: Contents of redhat-list digest..."


Today's Topics:

   1. Re: Problem Binding to Nis server (Steve Buehler)
   2. RE: Problem Binding to Nis server (Schott, Erik J Mr ANOSC/FCBS)
   3. Re: Problem Binding to Nis server (Rigler, Stephen C.)
   4. Re: How do you check the network speed of a Redhat machine.
      (evdhn@xxxxxxxxxxx)
   5. RE: How do you check the network speed of a Redhat machine.
      (Rigler, Stephen C.)


----------------------------------------------------------------------

Message: 1
Date: Wed, 09 Feb 2005 09:42:25 -0600
From: Steve Buehler <steve@xxxxxxxxx>
Subject: Re: Problem Binding to Nis server
To: General Red Hat Linux discussion list <redhat-list@xxxxxxxxxx>,
	wang_zc@xxxxxxxxxxx
Message-ID: <6.2.1.2.2.20050209091446.09ce4778@xxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"; format=flowed

At 07:22 AM 2/9/2005, Andrew.Bridgeman@xxxxxxxxxxxxxx wrote:


>Using one machine as an example it says none when i do type domainname
>it should say bsaeg. Below are a few files if you see something wrong
>anybody let me know. Also does anyone know how i can get the machines
>that have hung back to a command line so i can make changes if needed.
>
>[root@lin5 sysconfig]# domainname
>(none)

I have never used that command before.  I use hostname.  "domainname comes
up with the same results as you get on all of our servers.  A "man
domainname" says this:
domainname - show or set the system's NIS/YP domain name
So I would say that if you are trying to show or set your system's NIS/YP
domain name, then just type "domainname bsaeg" to set it and then when you
type "domainname", it should give you what you are looking for.  To get it
to come up when your machine boots, put the "domainname bsaeg" command in
your systems startup script.  For mine I would put it in /etc/rc.d/rc.local
at the end with the following line:
/bin/domainname bsaeg

Steve



------------------------------

Message: 2
Date: Wed, 9 Feb 2005 08:43:39 -0700
From: "Schott, Erik J Mr ANOSC/FCBS"
	<erik.schott-FCBS@xxxxxxxxxxxxxxx>
Subject: RE: Problem Binding to Nis server
To: General Red Hat Linux discussion list <redhat-list@xxxxxxxxxx>
Message-ID:
	<1E6A811986F80743838DF4C64D45891909923237@xxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain;	charset="iso-8859-1"

Hi Andrew.  Type "domainname bsaeg", minus the quotes, at the command prompt
and see if your NIS clients can bind.  You may have to stop and start ypbind
to accomplish this.

After that, run ypwhich to make sure you are communicating with the NIS
server.

Good luck.

-----Original Message-----
From: Andrew.Bridgeman@xxxxxxxxxxxxxx
[mailto:Andrew.Bridgeman@xxxxxxxxxxxxxx]
Sent: Wednesday, February 09, 2005 6:22 AM
To: wang_zc@xxxxxxxxxxx; General Red Hat Linux discussion list
Subject: Re: Problem Binding to Nis server



Using one machine as an example it says none when i do type domainname it
should say bsaeg. Below are a few files if you see something wrong anybody
let me know. Also does anyone know how i can get the machines that have hung
back to a command line so i can make changes if needed.

[root@lin5 sysconfig]# domainname
(none)


/etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
106.30.30.25 saruman
106.30.30.26 gandalf
106.30.19.9   ukcov1cluster
106.30.19.5   corusnode-1.ukcov1.com
106.30.19.8   asu1
106.30.19.10  asu2
106.30.19.11  asu3

/etc/fstab

LABEL=/                 /                       ext2    defaults        1 1
LABEL=/local_scratch    /local_scratch          ext2    defaults        1 2
/dev/fd0                /mnt/floppy             auto    noauto,owner    0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/pts                devpts  gid=5,mode=620  0 0
/dev/sda2               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              iso9660
noauto,owner,kudzu,ro 0
asu2:/H/General/Exchange /scratch nfs rsize=8192,wsize=8192,bg,intr 0 0
asu2:/E/Unix /user nfs  rsize=8192,wsize=8192,bg,intr 0 0 asu1:/J/Projects
/projects  nfs rsize=8192,wsize=8192,bg,intr 0 0 asu2:/G/Apps/Linux
/software nfs rsize=8192,wsize=8192,bg,intr 0 0

/etc/yp.conf

domain bsaeg server gandalf
ypserver gandalf

/etc/resolv.conf

domain bsaeg

/etc/nsswitch.conf

passwd: files nis
shadow: files nis
group:  files nis
hosts:  files nis dns
bootparams:     nisplus [NOTFOUND=return] files
ethers: files
netmasks:       files
networks:       files
protocols:      files
rpc:    files
services:       files
netgroup:       files
publickey:      nisplus
automount:      files
aliases:        files

/etc/sysconfig

NETWORKING=yes
GATEWAYDEV=""
NISDOMAIN=bsaeg
HOSTNAME=lin5
GATEWAY=106.30.16.1

Any help is much appreciated.

Regards

(Embedded image moved to file: pic05535.jpg)


|---------+------------------------------>
|         |           zhicheng wang      |
|         |           <wang_zc@xxxxxxxxxx|
|         |           k>                 |
|         |           Sent by:           |
|         |           redhat-list-bounces|
|         |           @redhat.com        |
|         |                              |
|         |                              |
|         |           09/02/2005 10:06   |
|         |           Please respond to  |
|         |           wang_zc; Please    |
|         |           respond to General |
|         |           Red Hat Linux      |
|         |           discussion list    |
|         |                              |
|---------+------------------------------>

>-----------------------------------------------------------------------
>----
---------------------------------------------------|
  |
|
  |       To:       General Red Hat Linux discussion list
<redhat-list@xxxxxxxxxx>                                               |
  |       cc:
|
  |       Subject:  Re: Problem Binding to Nis server
|

>-----------------------------------------------------------------------
>----
---------------------------------------------------|




if you type domainname on both server and client, what
do you get?

 --- Andrew.Bridgeman@xxxxxxxxxxxxxx wrote:
> I have a problem with all of machines not binding to
> NIS on Boot and the
> boot stops at this point and will go no further. Can
> someone advise me on
> what to check. ie what files etc and how i can get
> to a point to change
> what ever i have changed to cause this issue. As
> much advice ASAP would be
> much appreciated.
>
> Regards
>
> (Embedded image moved to file: pic21718.jpg)> --
> redhat-list mailing list
> unsubscribe
>
mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list

=====
Best wishes
Z C Wang





___________________________________________________________
ALL-NEW Yahoo! Messenger - all new features - even more fun!
http://uk.messenger.yahoo.com

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
 https://www.redhat.com/mailman/listinfo/redhat-list



------------------------------

Message: 3
Date: Wed, 09 Feb 2005 09:50:22 -0600
From: "Rigler, Stephen C." <srigler@xxxxxxxxxxxxxxx>
Subject: Re: Problem Binding to Nis server
To: General Red Hat Linux discussion list <redhat-list@xxxxxxxxxx>
Message-ID: <1107964222.15304.1.camel@houuc8>
Content-Type: text/plain

On Wed, 2005-02-09 at 07:22 -0600, Andrew.Bridgeman@xxxxxxxxxxxxxx
wrote:
>
> Using one machine as an example it says none when i do type domainname
> it should say bsaeg. Below are a few files if you see something wrong
> anybody
> let me know. Also does anyone know how i can get the machines that
> have
> hung back to a command line so i can make changes if needed.
>

How are these machine being set up?  I usually don't worry about editing
the files individually and let "authconfig" handle that all for me.

For your hung machines, I'd boot in single-user-mode, disable ypbind
"chkconfig ypbind off", boot the rest of the way up and then verify the
config with "authconfig".

-Steve



------------------------------

Message: 4
Date: Wed, 9 Feb 2005 17:33:24 +0100 (CET)
From: evdhn@xxxxxxxxxxx
Subject: Re: How do you check the network speed of a Redhat machine.
To: redhat-list@xxxxxxxxxx
Message-ID: <21314.134.58.253.113.1107966804.squirrel@xxxxxxxxxxxxxx>
Content-Type: text/plain;charset=iso-8859-1

That's bizar. Red Hat AS 2.1

This is from dmesg:
# dmesg|grep eth0
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth0: e1000_watchdog: NIC Link is Up 1000 Mbps Full Duplex

And this is from mii-tool:
# mii-tool eth0
eth0: negotiated 100baseTx-FD, link ok

Red Hat AS 2.1

Any idea?

emma

Manuel Arostegui Ramirez wrote:
> El Lunes 07 Febrero 2005 12:40, Andrew.Bridgeman@xxxxxxxxxxxxxx escribió:
>
>>I need to check to see if my Redhat machines are running on 100 Half/Full
>>or 1000 Half/Full, can someone tell me how to check this from the command
>>line. I have tried ifconfig but it does not tell you the speed. Any help
is
>>much appreciated.
>>
>>Regards
>>
>>(Embedded image moved to file: pic23199.jpg)
>
>
> You can use the mii-tool which is in the net-tools package.
> You must use mii-tool eth0 (for example) as root.
> For more information look at it's manual.
>
> Cheers
>


----------------------------------------------------------------------------
------
Plaats je zoekertjes GRATIS op AdValvas
Placez votre petite annonce GRATUITEMENT sur AdValvas
http://www.advalvas.be



------------------------------

Message: 5
Date: Wed, 9 Feb 2005 10:22:27 -0600
From: "Rigler, Stephen C." <srigler@xxxxxxxxxxxxxxx>
Subject: RE: How do you check the network speed of a Redhat machine.
To: "General Red Hat Linux discussion list" <redhat-list@xxxxxxxxxx>
Message-ID:
	<C3CDA0E3AC8B4E438E94F37D0A20FE7101BBD9E1@xxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain;	charset="us-ascii"

Google suggests that the E1000 is not supported by mii-tool.

-Steve

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of evdhn@xxxxxxxxxxx
Sent: Wednesday, February 09, 2005 10:33 AM
To: redhat-list@xxxxxxxxxx
Subject: Re: How do you check the network speed of a Redhat machine.

That's bizar. Red Hat AS 2.1

This is from dmesg:
# dmesg|grep eth0
e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
e1000: eth0: e1000_watchdog: NIC Link is Up 1000 Mbps Full Duplex

And this is from mii-tool:
# mii-tool eth0
eth0: negotiated 100baseTx-FD, link ok

Red Hat AS 2.1

Any idea?

emma





------------------------------

__
redhat-list mailing list
Unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

End of redhat-list Digest, Vol 12, Issue 11
*******************************************



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux