eDir not registering its services with OpenSLP, It takes an Hour to register, Cache Only, DA Backup and Sync
This document (7001449) is provided subject to the disclaimer at the end of this document.
SUSE LINUX Enterprise Server 9
SUSE LINUX Enterprise Server 10
eDir 8.7.3 and eDir 126.96.36.199
Novell Open Enterprise Server 2 (OES 2) Linux Support Pack 3
Cannot browse for the tree or server
Can login via IP address without problems
eDir taking an hour to register its NDAP and Bindery services
OpenSLP comes up with no services initially
OpenSLP does not keep a back up of services
OpenSLP does not sync information with other DA's
eDir 188.8.131.52 and 184.108.40.206 do register with OpenSLP so updating older eDir versions that are not registering their services with OpenSLP to either of these versions of eDir or later versions could be considered a solution.
You can change the reregistration timer in eDir for the NDAP and BINDERY services on eDir 8.8.5 with the following commands.
1. ndsconfig get | grep -i n4u.nds.advertise-life-time
Note: ndsconfig get will give you
the nds configuration parameters. (Adding the grep -i
n4u.nds.advertise-life-time displays for you (case insensitive)
just the matches for the parameter you listed.)
The parameter you are looking for is
n4u.nds.advertise-life-time which by default is set to 3600 seconds
( 1 hour ) and has a settable range of 1 - 65535 seconds. If
clustered see TID# 7007479 before setting this value below
2. ndsconfig set
Note: This will allow you to set an nds parameter.
Example to change the advertise life time for SLP to 10 minutes you would do the following
ndsconfig set n4u.nds.advertise-life-time=600Note: You can verify that eDir is using this new setting by going into iMonitor > Agent Activity> Background Process Schedule. On this screen the RNRAdvertise item will show you a "Waiting" status and the amount of Hours:Minutes:seconds until the next advertisement of the eDir service types, Bindery and NDAP.
OpenSLP's DA is a cache-only DA
OpenSLP stores service registrations in cache.
When the SLP daemon is first loaded it has an empty cache. In other words there are no dynamic services registered yet.
OpenSLP must wait for registrations from external service providers (servers/applications) to be sent in order for those services to be added to the cache.
NOTE: OpenSLP can work around either of the eDir issues (not registering, or taking an hour to do so) by manually registering these services at start up. This is not the recommended solution as the service exists in the SLP cache regardless of whether or not eDir or the server hosting the services is actually available. (See the Additional Information section for more details)
OES2 SP3 - New additions to SLP
net.slp.isDABackup = true
Which enables the DA to backup service registrations to the /etc/slp.reg.d/slpd/DABackup file.
What this means is that services will be backed up to a file on the DA's file system so that when the cache-only OpenSLP DA starts up it can read this backup file and immediately populate its cache with services that were previously registered and backed up by this DA.
That means no waiting for services to register on the applications registration interval after an SLP restart.
net.slp.DABackupInterval = 900
This is a 32 bit integer giving the number of seconds between DABackup file updates.
The default is 15 minutes (900 seconds).
This setting is ignored if net.slp.isDA = false.
net.slp.DABackupLocalReg = true
This setting tells the DA to include its own local service registrations in the backup file.
The default is false because at start up the DA will notify the local applications/service providers that it is now a DA and those local applications / service providers should register quite quickly.
net.slp.DASyncReg = true
This setting enables slpd to sync service registrations between its configured DA's on startup. (See net.slp.DAAddresses which contains a list of IP addresses or resolvable names of DA's)
The default is false.
While it is possible to manually register services with SLP, that manual registration defeats the dynamic nature of SLP. Manual registrations will always be available whether or not the service is in fact available. If a URL for a service is given out by the DA to a UA when the service is really not available, it will cause the UA to try to contact the unavailable service and delays will be the result. Therefore it is not recommended to Manually register services in SLP or in DNS.
To manually register a bindery.novell and ndap.novell service in SLP the slp.reg file has to be modified with the following information.
NOTE - the 0a0a0a0a is the hex value for the servers IP address. Carriage returns are important.
NOTE- with an ndap.novell service it is possible to have multiple server addresses in the attribute svcaddr-ws. Separated with a comma and begin with 2-1-6 for the TCP address and 2-2-17 for the UDP address.
The 65535 portion of the service registration tells the DA that
the service lifetime is permanent or never dies.
SLP needs to be restarted to have it read the slp.reg file and
register the service. (example: rcslpd restart)
TID# 7007479 talks about the fact that clustered Bindery and NDAP services re-register by default every 60 minutes (3600 seconds) and have a minimum setting of 30 minutes (1800 seconds). Therefore, setting the "ndsconfig set n4u.nds.advertise-life-time=" to a value of less than 1800 seconds as discussed above can cause these clustered services to appear and disappear. Please see TID#7007479 for a more detailed explanation.
This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7001449
- Creation Date:29-SEP-08
- Modified Date:24-OCT-13
- NovellOpen Enterprise Server
- SUSESUSE Linux Enterprise Server
Did this document solve your problem? Provide Feedback