Displaying sunfddi/p statistics (pf_stat), Displaying sunfddi/p statistics, Pf_stat) – Sun Microsystems 1.0 User Manual

Page 113

Advertising
background image

Using the SunFDDI Network Utilities

87

8

a. Edit the

/etc/rcS.d/S30rootusr.sh

file to add the following

if

statement immediately after the

ifconfig

command that initializes

the interface

pf

<inst>.

If you are changing the MAC address of more than one interface, add
one

if

statement for each interface.

On most systems, the

/etc/rcS.d/S30rootusr.sh

file is a hard link to

the

/etc/rootusr

file.

4. Reboot your machine to assign the new MAC address to the SunFDDI

interface.

When a SunFDDI/P card takes the host-resident

MAC

address, it can be

swapped to another system without affecting the existing network. However,
once a station starts sending packets on the network, the Address Resolution
Protocol (ARP) updates the ARP tables on other stations to include the

MAC

address of its interface. The ES-IS protocol performs the same function for
SunFDDI OSI running over FDDI. If you swap SunFDDI/P cards that use the
card-resident

MAC

address, you must wait until the ARP entries time-out, or

remove the ARP entries from every active station manually before packets can
be routed correctly.

Displaying SunFDDI/P Statistics

(pf_stat)

The

pf_stat(1M)

utility interrogates a specified SunFDDI/P interface and

displays the accumulated statistics. This command must be executed as

root

(or

superuser

) and has the general form:

pf

<inst> specifies the SunFDDI/P interface

<interval> is the elapsed time (in seconds) between interrogations

<count> the total number of interrogations

ifconfig $1 plumb

if [ $1 = “pf

<inst>

” ]; then

ifconfig pf

<inst>

ether

<mac_address>

fi

#

<basedir>

/pf_stat

[-m

] pf

<inst>

[

<interval>

] [

<count>

]

if

statement to initialize

interface

pf

<inst>

-------->

Advertising