HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 95

To Modify an NIS Map

Page 95 highlights

NIS # cd /var/yp/ domainname 3. Issue the following command to create an editable ASCII text file from the ypservers map: # /usr/sbin/makedbm -u ypservers > tempfile 4. Use a text editor to add the name of the new server to the ASCII file tempfile. 5. Issue the following command to regenerate the ypservers map from the ASCII file: # /usr/sbin/makedbm tempfile ypservers 6. Login as root to the new slave server, and configure it as an NIS slave server. To Remove a Slave Server from Your NIS Domain Follow these steps to remove a slave server from your NIS domain: 1. Login as root to the NIS master server. 2. Issue the following commands to create an editable ASCII text file from the ypservers map: # cd /var/yp/ domainname # /usr/sbin/makedbm -u ypservers > tempfile 3. Use a text editor to remove the name of the slave server from the ASCII file tempfile. 4. Issue the following command to regenerate the ypservers map from the ASCII file: # /usr/sbin/makedbm tempfile ypservers 5. Login as root to the slave server. 6. Remove all the map files from the map directory, and remove the map directory. The directory is called /var/yp/ domainname, where domainname is the name of your NIS domain. For example, if you were removing a slave server from the Finance domain, you would issue the following commands: # cd /var/yp/Finance # rm * # cd .. # rmdir Finance 7. If the slave is not a slave server in any other NIS domain, use a text editor to set the NIS_SLAVE_SERVER variable to 0 in the /etc/rc.config.d/namesvrs file, as in the following example: NIS_SLAVE_SERVER=0 8. If the slave is not a server in any other NIS domain, issue the following command to turn off NIS server capability: # /sbin/init.d/nis.server stop To Modify an NIS Map Follow these steps to modify an NIS map: 90

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

NIS
90
# cd /var/yp/
domainname
3.
Issue the following command to create an editable ASCII text file from the
ypservers
map:
# /usr/sbin/makedbm -u ypservers > tempfile
4.
Use a text editor to add the name of the new server to the ASCII
file
tempfile
.
5.
Issue the following command to regenerate the
ypservers
map from the ASCII file:
# /usr/sbin/makedbm tempfile ypservers
6.
Login as
root
to the new slave server, and configure it as an NIS slave server.
To Remove a Slave Server from Your NIS Domain
Follow these steps to remove a slave server from your NIS domain:
1.
Login as
root
to the NIS master server.
2.
Issue the following commands to create an editable ASCII text file from the
ypservers
map:
# cd /var/yp/ domainname
# /usr/sbin/makedbm -u ypservers > tempfile
3.
Use a text editor to remove the name of the slave server from the ASCII file tempfile.
4.
Issue the following command to regenerate the
ypservers
map from the ASCII file:
# /usr/sbin/makedbm tempfile ypservers
5.
Login as
root
to the slave server.
6.
Remove all the map files from the map directory, and remove the map directory. The directory is called
/var/yp/ domainname
, where
domainname
is the name of your NIS domain.
For example, if you were
removing a slave server from the
Finance
domain, you would issue the following commands:
# cd /var/yp/Finance
# rm *
# cd ..
# rmdir Finance
7.
If the slave is not a slave server in any other NIS domain, use a text editor to set the
NIS_SLAVE_SERVER
variable to
0
in the
/etc/rc.config.d/namesvrs
file, as in the following
example:
NIS_SLAVE_SERVER=0
8.
If the slave is not a server in any other NIS domain, issue the following command to turn off NIS
server capability:
# /sbin/init.d/nis.server stop
To Modify an NIS Map
Follow these steps to modify an NIS map: