dbm file in NIS


 
Thread Tools Search this Thread
Operating Systems Solaris dbm file in NIS
# 1  
Old 12-18-2008
dbm file in NIS

Can anyone tell what is the exact use of dbm file in NIS? would be much appreciable if explain in good way.
# 2  
Old 12-29-2008
NIS stores its information in DBM files. These are key-value databases. (Every key is unique and has one value). NIS does this so that the information is retained across process restarts. There are some programs to read from a DBM file. Usually, one can use perl to do more interesting things to the data:
Code:
#!/usr/bin/perl
dbmopen(%NISDAT,$ARGV[0],0444) || die "Cannot open $ARGV[0] : $!";
while (($key,$val) = each %NISDAT) {
   print $key, '=', $val,"\n";
}
dbmclose(%NISDAT);

# 3  
Old 12-30-2008
It's a wonderful reply. I really appreciate this. Thanks a ton.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Validating that the NIS and NIS+ services are disabled

I'm creating a scrip for auditing our AIX box's to ensure that they are built according to our system standards. I'm not sure on the logic for checking to see if the NIS and NIS+ services are disabled. any idea's? (2 Replies)
Discussion started by: sport
2 Replies

2. UNIX for Dummies Questions & Answers

Nis

Hello i have some account already defined on NIS server. I would like to use this account on my machine. What do i have to do ? Only create the home directory then use the account ?? If the user defined is using the korn shell, and i want to use bash, how can i change it ?? (2 Replies)
Discussion started by: dolphin06
2 Replies

3. UNIX for Dummies Questions & Answers

DBM database conversion?

I have a DBM database back up file I'd like to convert to mySQL or even to a .CSV, but....... How can I do it? The big problem is I have no idea about scripts, how to install them etc. so these methods are basically useless to me. I guess is there a data base migration software for dummies? (1 Reply)
Discussion started by: ash33
1 Replies

4. Solaris

NIS password file update issue

Hi Our nis server running on Sun solaris 8 operating system. I have added a new user in the nis passwd file & when I am trying to update the file from nis server by using following command: # cd /var/yp # make updated passwd It updates the passwd file but does not come back to command... (3 Replies)
Discussion started by: dolphin
3 Replies

5. Solaris

How to configure a NIS client bound to the NIS server in another subnet?

Hi, all. I have a Solaris client here needs to bind to NIS server in another subnet. Following is the configuration i made on the client, 1) edit /etc/inet/hosts to add an entry of the NIS server -- nserver01 2) execute `domainname` to set local NIS domain to the domain of the NIS server.... (1 Reply)
Discussion started by: sn_wukong
1 Replies

6. UNIX for Advanced & Expert Users

SUSE 9 and 10 NIS clients with RedHat 8.0 NIS server not working

We have a RedHat 8.0 NIS master, with a RedHat 8.0 NIS Slave. We also have a small number of SUSE 9.1 and SUSE 10 machines here for evaluation. However, no matter what i do, the SUSE machines will not talk to the NIS Servers. If i broadcast for NIS Servers for the specified NIS domain, it... (1 Reply)
Discussion started by: fishsponge
1 Replies

7. UNIX for Dummies Questions & Answers

NIS map mail.aliases specified, but NIS not running

Hi all, I just took over the admin role from someone and I wanna setup sendmail (just to send mail from the host) however, after I config all the resolv.conf, nssitch.conf, hosts file and when I try to send a mail out, after I punched ctl-D, it returned he following, "NIS map mail.aliases... (2 Replies)
Discussion started by: stancwong
2 Replies

8. UNIX for Dummies Questions & Answers

DBM View

Can someone please recommend a UNIX based utility (Not Web) to view a DBM file? Michael (1 Reply)
Discussion started by: schafferm
1 Replies

9. IP Networking

differences nis nis+

Hello together. Is there someone who is able to explain me the differences between NIS and NIS+. thanks in advance joerg (2 Replies)
Discussion started by: joerg
2 Replies

10. UNIX for Advanced & Expert Users

Solaris NIS+ and RedHat NIS+

Hello all, I'm not sure if this is the right forum, but I would like to know if Redhat running NIS ( not NIS +) would have conflict with Solaris running NIS+. Currently I am running NIS+ on Solaris but will be adding RedHat to the network. I seem to be unable to find and information regarding... (2 Replies)
Discussion started by: larry
2 Replies
Login or Register to Ask a Question