Solved

How to add new host to NIS+ using nistbladm

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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Losing network connectivity 8 73
SBS 2011 wireless nic? & dynamic VPN. 3 64
Router assigned IP addresses 18 69
What Can't I Connect by FTP??? 27 55
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

911 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

22 Experts available now in Live!

Get 1:1 Help Now