Previous | Table of Contents | Next |
THIS CHAPTER CONTAINS INFORMATION ABOUT CHECKING ON REMOTE SYSTEM status, logging in to a remote system, transferring files between systems, and administering the Network Information Service Plus (NIS+) databases.
This section describes commands you use to find out the status of remote systems: rup, ping, and rpcinfo -d.
To find out how long a system has been up and the load average, type rup system-name and press Return. The host name, uptime, and load average are displayed:
oak% rup ash ash up 59 days, 3:42, load average: Ø.12, Ø.12, Ø.Ø1 oak%
You can also display a list of all remote hosts in the subnet by typing rup and pressing Return. If you display a list, you can use the options shown in Table 5-1 to sort the output.
Option | Description |
---|---|
-h | Sorts the display alphabetically by host name |
-l | Sorts the display alphabetically by load average |
-t | Sorts the display by uptime |
In this example, the output is sorted alphabetically by host name:
oak% rup -h ash up 1 day, 1:42, load average: Ø.ØØ, Ø.31, Ø.34 elm up 14 days, Ø min, load average: Ø.Ø7, Ø.Ø1, Ø.ØØ maple up 32 days, 14:39, load average: Ø.21, Ø.Ø5, Ø.ØØ oak up 8 days, 15:44, load average: Ø.Ø2, Ø.ØØ, Ø.ØØ oak%
Follow these steps to determine whether a remote system is up:
cinderella% ping drusilla drusilla is alive cinderella% rup drusilla drusilla up 3 days, 15:10; load average: 0.07, 0.08, 0.09 cinderella% rpcinfo -p drusilla program vers proto port service 100000 3 udp 111 portmapper 100000 2 udp 111 portmapper 100000 3 tcp 111 portmapper 100000 2 tcp 111 portmapper 100007 3 tcp 1029 ypbind 100007 3 udp 1025 ypbind 100021 1 tcp 1030 nlockmgr 100021 1 udp 1026 nlockmgr 100024 1 tcp 1028 status 100024 1 udp 1027 status 100021 3 tcp 1030 nlockmgr 100021 3 udp 1026 nlockmgr 100020 2 tcp 4045 llockmgr 100020 2 udp 4045 llockmgr 100021 2 tcp 1030 nlockmgr 100021 2 udp 1026 nlockmgr 100087 10 udp 1031 adm_agent 100011 1 udp 1034 rquotad 100002 1 udp 1037 rusersd 100002 2 udp 1037 rusersd 100012 1 udp 1041 sprayd 100008 1 udp 1043 walld 100001 2 udp 1046 rstatd 100001 3 udp 1046 rstatd 100001 4 udp 1046 rstatd 100068 2 udp 1049 cmsd 100068 3 udp 1049 cmsd 100083 1 tcp 4049 cinderella% rlogin drusilla Password: Last login: Mon Mar 2 10:31:55 from cinderella drusilla%
You can also use ping with a system's IP address by typing ping IP-address and pressing Return. The message IP-address is alive means the system is accessible over the network. The message ping: no answer from IP-address means the system is not available to the network. The message ping: unknown host IP-address means the system name is not known on the network:
oak% ping 129.144.52.119 129.144.52.119 is alive oak% ping 129.137.67.234 ping: unknown host 129.137.67.234 oak% ping 129.145.52.119 ping: no answer from 129.145.52.119 oak%
Follow these steps to log in to a remote system:
oak% rlogin ash Password: No directory! Logging in with home=/ Last login: Tue Sep 17 13:54:28 from 129.144.52.119 Sun Microsystems, Inc. SunOS 5.0 June 1992. ash%
If the automounter is set up for your site, you can transfer files between systems by using commands such as cp and mv. This section describes how to use the rcp and ftp commands to transfer files between systems.
Previous | Table of Contents | Next |