This section describes how to use the shownode command for the following operations:
Displaying All Services |
 |
The shownode servers command displays the service configuration for all nodes. The command output lists the services alphabetically and displays the corresponding services in a format consistent with the nodelist parameter:
# shownode servers
cmf: n3
compute_engine: n[1-3]
dbserver: n3
dhcp: n3
gather_data: n[1-3]
gmmon: n3
hpasm: n[1-3]
hptc-lm: n3
hptc_cluster_fs: n3
hptc_cluster_fs_client: n[1-3]
httpd: n3
imageserver: n3
iptables: n[1-3]
lkcd: n[1-3]
lsf: n3
mpiic: n3
munge: n[1-3]
nagios: n3
nagios_monitor: n3
nat: n3
network: n[1-3]
nfs_server: n3
nrpe: n[1-3]
nsca: n3
ntp: n3
pdsh: n[1-3]
pwrmgmtserver: n3
slurm: n3
supermond: n3
swmlogger: n3
syslogng_forward: n3 |
For more information, see shownode(8)
You can obtain an extensive list of all services running on a given node by invoking the following command:
Displaying the Nodes That Provide a Specified Service |
 |
You can use the shownode servers command to display the node or nodes that provide a specific service to a given node. You do not need to be superuser to use this command.
This example shows how to determine which nodes provide the supermon service:
# shownode servers supermon
n3 |
The command output indicates that only the node n3 supplies the supermon service.
You can also use the shownode servers command to display the node name of the node that provides a specific service to a given node:
# shownode servers ntp n3
n3 |
This command output indicates that only the node n3 supplies the ntp service for itself.
For more information, see shownode(8).
Displaying the Services Provided by a Specified Node |
 |
The shownode services command displays the services that a given node provides. You do not need to be superuser to use this command.
The following example shows the services provided by node n3:
# shownode services n3
network lkcd nagios_monitor nfs_server hptc-lm nagios nsca
ntp dbserver compute_engine hptc_cluster_fs httpd pwrmgmtserver
iptables mpiic hptc_cluster_fs_client gather_data pdsh nrpe
gmmon imageserver hpasm swmlogger dhcp syslogng_forward cmf
nat supermond munge slurm lsf |
In a variation of this command that uses the clients keyword, you can display the services the specified node provides and to which nodes it provides them. In the following example, node n3 supplies the nagios service, among others, to nodes n1 and n2:
# shownode services n3 clients
cmf: n[1-3]
dhcp: n3
hptc_cluster_fs: n[1-2]
lsf: n[1-3]
munge: n3
nagios: n3
nagios_monitor: n[1-3]
nat: n[1-2]
nsca: n3
ntp: n[1-3]
slurm: n[1-3]
supermond: n[1-3]
syslogng_forward: n[1-3] |
The shownode services node client command does not display any output if no client exists.
Another keyword, servers, allows you to determine the node that provides a specified node its services. In this example, the node n3 is found to supply itself with several services:
# shownode services n3 servers
cmf: n3
dhcp: n3
lsf: n3
munge: n3
nagios: n3
nagios_monitor: n3
nsca: n3
ntp: n3
slurm: n3
supermond: n3
syslogng_forward: n3 |
The shownode services node server command displays no output if no server exists.
For more information, see shownode(8).