Solved

How to add new host to NIS+ using nistbladm

Posted on 2007-04-10
4
646 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Archiving and Removal of old files AIX 7.1 2 31
Low ampere 10 119
patch status tool - free 9 61
Configuring Cisco EtherChannel on SG350xg switch and VMWare 5 21
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

710 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