Sponsored Content
Operating Systems Solaris List of Hostname under NIS Domain Post 302117131 by blowtorch on Friday 11th of May 2007 12:02:30 AM
Old 05-11-2007
We have a table named hosts under org_dir. Try searching for something like that. Then you can use 'niscat hosts.org_dir'
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

add linux to NIS (unix) domain

I've set up a NIS domain with unix as master-server, slave server and clients. right now i wish to add linux client to the NIS domain. the linux client has got username and password in it. how do i go about it? :confused: (1 Reply)
Discussion started by: legato
1 Replies

2. Solaris

Change hostname, NIS stops

All, I have changed my machine name from A202 to B205. All I modified was /etc/hosts, /etc/nodename, hostname.ce0, /etc/net/<stuff needed to change>. But for some reason now NIS does not work. This is not the NIS server. When I telnet in I get "No directory! Logging in with home=/" when I... (4 Replies)
Discussion started by: kjbaumann
4 Replies

3. Ubuntu

How To Join NIS Domain to an Ubuntu workstation

Hi guys, i am having a problem :confused:actually i never did this before,so please help me to join nis domain to an ubuntu workstation. As i have configured and running NIS Server on RedHat 4.0 in my network and want to set an ubuntu workstation as client. please tell all steps......looking for... (2 Replies)
Discussion started by: daya.pandit
2 Replies

4. UNIX for Dummies Questions & Answers

My domain name as my IRC hostname?

When I connect to any IRC server, it's usually my ISP IP address/hostname. I own a domain, but I'm not using it for anything (no web hosting service or server). Is it possible for me to use my domain as my IRC hostname instead of my regular ISP hostname? (0 Replies)
Discussion started by: guitarscn
0 Replies

5. Shell Programming and Scripting

FQDN into domain name and hostname

I'm working on a rather large script atm (it already takes 9 arguments). As such, I need to obtain both a server name and domain from the FQDN. From this, I want to both populate the hostname of the server, as well as the domain line in the /etc/resolv.conf file. Obviously, this isn't working. I... (10 Replies)
Discussion started by: msarro
10 Replies

6. Shell Programming and Scripting

Trying to extract domain and tld from list of urls.

I have done a fair amount of searching the threads, but I have not been able to cobble together a solution to my challenge. What I am trying to do is to line edit a file that will leave behind only the domain and tld of a long list of urls. The list looks something like this: www.google.com... (3 Replies)
Discussion started by: chamb1
3 Replies

7. UNIX for Dummies Questions & Answers

nLocal sendmail issues when hostname not set in official domain name

Hi, I'm having issues with sendmail when I try to send host to host mail. I've had to change the "my official domain name" line to mycompany.com to get the mails through the external spam filter, when a mail was sent with hostname.mycompany.com it was blocked. I had to change the Dj macro... (0 Replies)
Discussion started by: elcounto
0 Replies

8. UNIX for Dummies Questions & Answers

Postfix Configuration:Hostname/Domain Name Doubts

I have a RHEL server where I want to create a mail server so I can send myself alerts whenever X process have problems. Disclaimer: Im a programmer thats been forced to do IT. So I'm trying my best here. The problem: While configuring Postfix it asks for $myhostname which apparently must be... (2 Replies)
Discussion started by: RedSpyder
2 Replies

9. Red Hat

List domain groups

Hi Need to list all gid for particular domain user. Actually in database getting error like one of the gid that user belongs is invalid. please suggest. thanks Paul (1 Reply)
Discussion started by: Mathew_paul
1 Replies

10. Solaris

How to list physical CPU on primary domain?

How to list physical CPU on primary domain? Sparc SPARC T5-4 psrinfo -p 1 in ILOM I see Processors: 4 / 4 (2 Replies)
Discussion started by: thomasj
2 Replies
niscat(1)							   User Commands							 niscat(1)

NAME
niscat - display NIS+ tables and objects SYNOPSIS
niscat [-AhLMv] [-s sep] tablename... niscat [-ALMP] -o name... DESCRIPTION
In the first synopsis, niscat displays the contents of the NIS+ tables named by tablename. In the second synopsis, it displays the inter- nal representation of the NIS+ objects named by name. Columns without values in the table are displayed by two adjacent separator characters. OPTIONS
The following options are supported: -A Displays the data within the table and all of the data in tables in the initial table's concatenation path. -h Displays the header line prior to displaying the table. The header consists of the `#' (hash) character followed by the name of each column. The column names are separated by the table separator character. -L Follows links. When this option is specified, if tablename or name names a LINK type object, the link is followed and the object or table named by the link is displayed. -M Master server only. This option specifies that the request should be sent to the master server of the named data. This guarantees that the most up-to-date information is seen at the possible expense of increasing the load on the master server and increasing the possibility of the NIS+ server being unavailable or busy for updates. -o name Displays the internal representation of the named NIS+ object(s). If name is an indexed name (see nismatch(1)), then each of the matching entry objects is displayed. This option is used to display access rights and other attributes of individual columns. -P Follows concatenation path. This option specifies that the request should follow the concatenation path of a table if the initial search is unsuccessful. This option is only useful when using an indexed name for name and the -o option. -s sep This option specifies the character to use to separate the table columns. If no character is specified, the default separa- tor for the table is used. -v Displays binary data directly. This option displays columns containing binary data on the standard output. Without this option binary data is displayed as the string *BINARY*. EXAMPLES
Example 1: Displaying the contents of the hosts table example% niscat -h hosts.org_dir # cname name addr comment client1 client1 192.168.201.100 Joe Smith crunchy crunchy 192.168.201.44 Jane Smith crunchy softy 192.168.201.44 The string *NP* is returned in those fields where the user has insufficient access rights. Example 2: Displaying on the standard output Display the passwd.org_dir on the standard output. example% niscat passwd.org_dir Example 3: Displaying table contents Display the contents of table frodo and the contents of all tables in its concatenation path. example% niscat -A frodo Example 4: Displaying table entries Display the entries in the table groups.org_dir as NIS+ objects. Notice that the brackets are protected from the shell by single quotes. example% niscat -o '[ ]groups.org_dir' Example 5: Displaying the table object Display the table object of the passwd.org_dir table. example% niscat -o passwd.org_dir The previous example displays the passwd table object and not the passwd table. The table object includes information such as the number of columns, column type, searchable or not searchable separator, access rights, and other defaults. Example 6: Displaying the directory object Display the directory object for org_dir, which includes information such as the access rights and replica information. example% niscat -o org_dir ENVIRONMENT VARIABLES
NIS_PATH If this variable is set, and the NIS+ table name is not fully qualified, each directory specified will be searched until the table is found (see nisdefaults(1)). EXIT STATUS
niscat returns the following values: 0 Successful completion 1 An error occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWnisu | +-----------------------------+-----------------------------+ SEE ALSO
nis+(1), nisdefaults(1), nismatch(1), nistbladm(1), nis_objects(3NSL), nis_tables(3NSL), attributes(5) NOTES
NIS+ might not be supported in future releases of the SolarisTM Operating Environment. Tools to aid the migration from NIS+ to LDAP are available in the Solaris 9 operating environment. For more information, visit http://www.sun.com/directory/nisplus/transition.html. SunOS 5.10 10 Dec 2001 niscat(1)
All times are GMT -4. The time now is 09:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy