Solved

How to add new host to NIS+ using nistbladm

Posted on 2007-04-10
4
654 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 3

Expert Comment

by:swerves
ID: 18885944
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
ID: 18886096
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
ID: 18886731
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
ID: 19053016
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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
This article explains the fundamentals of industrial networking which ultimately is the backbone network which is providing communications for process devices like robots and other not so interesting stuff.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Suggested Courses

632 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