02.03.2014 Views

Tornado

Tornado

Tornado

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2<br />

Setup and Startup<br />

To check whether the .cshrc file is causing booting problems, rename it temporarily<br />

and try booting VxWorks again. If this proves to be the source of the problem, you<br />

may want to set up your .cshrc file to conditionally execute any commands that<br />

generate standard output. For example, commands used to set up interactive C<br />

shells could be grouped at the end of the .cshrc and preceded with the following:<br />

2<br />

# skip remaining setup if a non-interactive shell:<br />

if (${?USER} == 0 || ${?prompt} == 0 || ${?TERM} == 0) exit<br />

If noclobber is set in your .cshrc, be sure to un-set or move it to the section that is<br />

executed (as shown above) only if there is an interactive shell.<br />

■<br />

Helpful Troubleshooting Tools<br />

In tracking down configuration problems, the following UNIX tools can be helpful:<br />

ping<br />

This command indicates whether packets are reaching a specified destination.<br />

For example, the following indicates this host is successful sending packets to<br />

phobos:<br />

% ping phobos<br />

phobos is alive<br />

ifconfig<br />

This command reports the configuration of a specified network interface (for<br />

example, ie0 or le0 on a Sun system). It should report that the interface is<br />

configured for the appropriate Internet address and that the interface is up.<br />

The following example shows that interface le0, whose address is 137.10.1.3, is<br />

up and running:<br />

% ifconfig -a<br />

le0: flags=63<br />

inet 137.10.1.3 netmask ffffff00 broadcast 137.10.1.0<br />

lo0: flags=49<br />

inet 127.0.0.1 netmask ff000000<br />

arp -a<br />

This command displays the “address resolution protocol” tables that map<br />

Internet addresses to Ethernet addresses. Your target machine is listed if at<br />

least one packet was transferred from your target to your host. The following<br />

example shows saturn’s Internet address (92.0.9.54) and Ethernet address<br />

(8:10:5:3:a5:c).<br />

% arp -a<br />

saturn (92.0.9.54) at 8:10:5:3:a5:c<br />

61

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!