Solved

How to add new host to NIS+ using nistbladm

Posted on 2007-04-10
4
639 Views
Last Modified: 2013-12-21
Hi, I want to add a new host to our NIS+ setup (NIS+ server is on a Solaris 8 system) from the
command line using nistbladm.  Does anyone know the exact syntax for this?

Regards,
0
Comment
Question by:Patrick_Baldwin
4 Comments
 
LVL 3

Expert Comment

by:swerves
Comment Utility
Something like
nistbladm -a cname=ricky.bobby.Com name=ricky.bobby.Com \
addr=12.34.56.78 comment= hosts.org_dir
0
 

Author Comment

by:Patrick_Baldwin
Comment Utility
When you say "something like", do you mean you're sure that's the exact syntax, minus
system names and IPs?
0
 
LVL 38

Accepted Solution

by:
yuzh earned 500 total points
Comment Utility
swerves's comment is very close, the correct syntax is:

eg:
your hostname is: mybox, IP=4.3.2.1
Full hostname: mybox.abc.com

you login to the NIS+ master server as root, type in:

nistbladm -a cname="mybox" name="mybox.abc.com" addr=4.3.2.1  hosts.org_dir

PS: they all in oneline

To check the NIS+ object struct, you can use "niscat -o"
eg:
niscat -o hosts.org_dir

I suggest you to install Solostice adm suite to your NIS+ master server, which enable you to use GUI to manage the NIS+ database.

also print a copy of NIS+ FAQ (it can help you to solve most
of your NIS+ problem):
http://www.eng.auburn.edu/~rayh/solaris/NIS+_FAQ.html
0
 
LVL 14

Expert Comment

by:arthurjb
Comment Utility
Be careful installing Solstice admin suite, since minor errors can wipe out your data and cause you many hours of work.

The commands given above are good, but I find that the man page for nistbladm is very good, since it has several examples of adding and deleting objects.

man nistbladm

The nis man page
man nis  
is very long, but is good in that it lists all the nis comands so that it gets you headed in the general direction if you are not sure which command is needed.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

What’s a web proxy server? A proxy server is a server that goes between clients and web servers, used in corporate to enforce corporate browsing policy and ensure security. Proxy servers are commonly used in three modes. A)    Forward proxy …
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now