2005-10-03 07:09:41 +00:00
|
|
|
.\" Copyright (c) 2003 David Boggs. (boggs@boggs.palo-alto.ca.us)
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" BSD License:
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" GNU General Public License:
|
|
|
|
.\"
|
|
|
|
.\" This program is free software; you can redistribute it and/or modify it
|
|
|
|
.\" under the terms of the GNU General Public License as published by the Free
|
|
|
|
.\" Software Foundation; either version 2 of the License, or (at your option)
|
|
|
|
.\" any later version.
|
|
|
|
.\"
|
|
|
|
.\" This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
.\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
.\" FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
.\" more details.
|
|
|
|
.\"
|
|
|
|
.\" You should have received a copy of the GNU General Public License along with
|
|
|
|
.\" this program; if not, write to the Free Software Foundation, Inc., 59
|
|
|
|
.\" Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
.\"
|
2005-11-24 16:03:09 +00:00
|
|
|
.\" $FreeBSD$
|
2005-10-03 07:09:41 +00:00
|
|
|
.\"
|
2005-11-24 16:03:09 +00:00
|
|
|
.Dd October 3, 2005
|
2005-10-03 07:09:41 +00:00
|
|
|
.Dt LMCCONFIG 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm lmcconfig
|
|
|
|
.Nd configuration program for
|
|
|
|
.Tn SBE
|
|
|
|
(formerly
|
|
|
|
.Tn LMC )
|
2005-11-24 16:03:09 +00:00
|
|
|
wide-area network interface cards
|
2005-10-03 07:09:41 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Ar interface
|
|
|
|
.Op Fl abBcCdDeEfhLmMpPrsStTuwxXyYzZ?
|
|
|
|
.Nm
|
|
|
|
.Ar interface
|
|
|
|
.Fl 1
|
|
|
|
.Op Fl aABceEfFgiIlLpPstTuUxX
|
|
|
|
.Nm
|
|
|
|
.Ar interface
|
|
|
|
.Fl 3
|
|
|
|
.Op Fl aABcefFlLsSv
|
|
|
|
.Sh DESCRIPTION
|
2005-11-24 16:03:09 +00:00
|
|
|
The
|
2005-10-03 07:09:41 +00:00
|
|
|
.Nm
|
2005-11-24 16:03:09 +00:00
|
|
|
utility
|
2005-10-03 07:09:41 +00:00
|
|
|
is the configuration program for the
|
|
|
|
.Xr lmc 4
|
|
|
|
wide-area network device driver.
|
|
|
|
It sets control values, such as T3 framing format,
|
|
|
|
and it displays status, such as that of integrated modems,
|
|
|
|
that are beyond the scope of
|
|
|
|
.Xr ifconfig 8 .
|
|
|
|
.Pp
|
2005-11-24 16:03:09 +00:00
|
|
|
The
|
2005-10-03 07:09:41 +00:00
|
|
|
.Nm
|
2005-11-24 16:03:09 +00:00
|
|
|
utility
|
2005-10-03 07:09:41 +00:00
|
|
|
displays the interface status when no parameters are specified;
|
|
|
|
see example below.
|
|
|
|
For this case only, if no
|
|
|
|
.Ar interface
|
|
|
|
is specified, it defaults to
|
2005-11-24 16:03:09 +00:00
|
|
|
.Dq Li lmc0 .
|
2005-10-03 07:09:41 +00:00
|
|
|
.Pp
|
|
|
|
Only the super-user may modify the configuration of a network interface.
|
|
|
|
.Pp
|
|
|
|
The following options are available:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Ar interface
|
|
|
|
This is the name of the interface; the default is
|
2005-11-24 16:03:09 +00:00
|
|
|
.Dq Li lmc0 .
|
2005-10-03 07:09:41 +00:00
|
|
|
If
|
|
|
|
.Xr netgraph 4
|
|
|
|
is present and the interface name ends with a colon
|
2005-11-24 16:03:09 +00:00
|
|
|
then Netgraph control messages are used,
|
2005-10-03 07:09:41 +00:00
|
|
|
otherwise the
|
|
|
|
.Xr ifnet 9
|
|
|
|
kernel interface and socket
|
|
|
|
.Xr ioctl 2
|
|
|
|
system calls are used.
|
|
|
|
.It Fl 1
|
|
|
|
All parameters after this apply to the T1E1 card.
|
|
|
|
.It Fl 3
|
|
|
|
All parameters after this apply to the T3 card.
|
|
|
|
.El
|
|
|
|
.Ss Commands for all cards
|
2010-08-16 15:18:30 +00:00
|
|
|
The following parameters apply to more than one card type.
|
2005-10-03 07:09:41 +00:00
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl a Ar number
|
|
|
|
Set Transmitter clock source to
|
|
|
|
.Ar number .
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
2005-10-03 07:09:41 +00:00
|
|
|
.Bl -column "1" "External connector" "T1E1, HSSIc" -offset 2m -compact
|
|
|
|
.It "1" Ta "TxClk from modem" Ta "T1E1, HSSI" Ta "default"
|
|
|
|
.It "2" Ta "Internal source" Ta "T1E1, HSSI"
|
|
|
|
.It "3" Ta "RxClk from modem" Ta "T1E1, HSSIc" Ta "loop timed"
|
|
|
|
.It "4" Ta "External connector" Ta "T1E1, HSSIc"
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
An HSSI card normally takes its Tx clock from the modem connector
|
|
|
|
(it is a DTE) but can use the PCI bus clock (typically 33 MHz)
|
|
|
|
for loopback and null modem testing; values 3 and 4 are only
|
|
|
|
applicable to a few rare CompactPCI/HSSI cards.
|
|
|
|
.Pp
|
|
|
|
A T1E1 card uses an on-board synthesized oscillator
|
|
|
|
if the value is 1 or 2; it
|
|
|
|
.Em loop times
|
|
|
|
(uses the clock recovered by the receiver as the transmitter clock)
|
|
|
|
if the value is 3; and it uses a clock from a header connector on
|
|
|
|
the card if the value is 4.
|
|
|
|
.Pp
|
|
|
|
TxClk source is not applicable to other card types.
|
|
|
|
.It Fl b
|
2005-11-24 16:03:09 +00:00
|
|
|
Read BIOS ROM.
|
2005-10-03 07:09:41 +00:00
|
|
|
Print the first 256 locations.
|
2005-11-24 16:03:09 +00:00
|
|
|
The BIOS ROM is not used and not present on some cards.
|
2005-10-03 07:09:41 +00:00
|
|
|
.It Fl B
|
2005-11-24 16:03:09 +00:00
|
|
|
Write BIOS ROM.
|
2005-10-03 07:09:41 +00:00
|
|
|
Write the first 256 locations with an address pattern.
|
|
|
|
.It Fl c
|
2005-11-24 16:03:09 +00:00
|
|
|
Use HDLC's 16-bit CRC polynomial: X^16+X^12+X^5+1 (default).
|
2005-10-03 07:09:41 +00:00
|
|
|
.It Fl C
|
|
|
|
Use HDLC's 32-bit CRC polynomial:
|
|
|
|
X^32+X^26+X^23+X^22+X^16+X^12+X^11+X^10+X^8+X^7+X^5+X^4+X^2+X+1
|
|
|
|
.It Fl d
|
2005-11-24 16:03:09 +00:00
|
|
|
Clear the driver-level debug flag.
|
|
|
|
Non-critical log messages are suppressed.
|
2005-10-03 07:09:41 +00:00
|
|
|
.It Fl D
|
2005-11-24 16:03:09 +00:00
|
|
|
Set the driver-level debug flag.
|
|
|
|
The driver generates more log messages.
|
2005-10-03 07:09:41 +00:00
|
|
|
The driver also generates more log messages if the interface-level debug
|
|
|
|
flag is set by
|
|
|
|
.Xr ifconfig 8 .
|
|
|
|
.It Fl e
|
|
|
|
Set DTE (Data Terminal Equipment) mode (default).
|
|
|
|
An SSI card transmitter uses the Tx clock signal from the modem connector
|
|
|
|
and receives the Data Carrier Detect pin (DCD).
|
|
|
|
DTE/DCE is not applicable to other card types except
|
|
|
|
a few rare CompactPCI/HSSI cards.
|
|
|
|
.It Fl E
|
|
|
|
Set DCE (Data Communication Equipment) mode.
|
|
|
|
An SSI card transmitter uses an on-board synthesized oscillator
|
|
|
|
and drives the Data Carrier Detect pin (DCD).
|
|
|
|
.It Fl f Ar number
|
|
|
|
Set the frequency of the built-in synthesized oscillator to
|
|
|
|
.Ar number
|
|
|
|
bits/second.
|
|
|
|
The nearest frequency that the synthesizer can generate will be used.
|
|
|
|
Only SSI cards and a few rare CompactPCI/HSSI cards have synthesizers.
|
|
|
|
.It Fl F
|
|
|
|
Set SPPP line protocol to Frame-Relay.
|
2005-11-24 16:03:09 +00:00
|
|
|
Only works for
|
|
|
|
.Fx 5.4
|
|
|
|
and later.
|
2005-10-03 07:09:41 +00:00
|
|
|
.It Fl h
|
|
|
|
Print help (usage message).
|
|
|
|
.It Fl i
|
2005-11-24 16:03:09 +00:00
|
|
|
Set interface name (e.g.\&
|
|
|
|
.Dq Li lmc0 ) .
|
2005-10-03 07:09:41 +00:00
|
|
|
.It Fl L Ar number
|
|
|
|
Set loopback mode to
|
|
|
|
.Ar number .
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
2005-10-03 07:09:41 +00:00
|
|
|
.Bl -column "99" "payload" "inward thru drvrs/rcvrsxxx" "HSSI, SSI" -offset 1m -compact
|
2012-04-07 09:05:30 +00:00
|
|
|
.It "1" Ta "none" Ta "default" Ta \&
|
2005-10-03 07:09:41 +00:00
|
|
|
.It "2" Ta "payload" Ta "outward thru framer" Ta "T1E1. T3"
|
|
|
|
.It "3" Ta "line" Ta "outward thru line if" Ta "T1E1, T3, HSSIc"
|
|
|
|
.It "4" Ta "other" Ta "inward thru line if" Ta "T1E1, T3"
|
|
|
|
.It "5" Ta "inward" Ta "inward thru framer" Ta "T1E1, T3"
|
|
|
|
.It "6" Ta "dual" Ta "inward and outward" Ta "T1E1, T3"
|
|
|
|
.It "16" Ta "tulip" Ta "inward thru Tulip chip" Ta "all cards"
|
|
|
|
.It "17" Ta "pins" Ta "inward thru drvrs/rcvrs" Ta "SSI"
|
|
|
|
.It "18" Ta "LA/LL" Ta "assert LA/LL modem pin" Ta "HSSI, SSI"
|
|
|
|
.It "19" Ta "LB/RL" Ta "assert LB/RL modem pin" Ta "HSSI, SSI"
|
|
|
|
.El
|
|
|
|
.It Fl m
|
|
|
|
Read Tulip MII registers.
|
|
|
|
Print the 32 16-bit registers in the Media Independent Interface.
|
|
|
|
.It Fl M Ar addr Ar data
|
|
|
|
Write Tulip MII register.
|
|
|
|
Write
|
|
|
|
.Ar data
|
|
|
|
into register
|
|
|
|
.Ar addr .
|
|
|
|
.It Fl p
|
|
|
|
Read Tulip PCI configuration registers.
|
|
|
|
Print the first 16 32-bit registers in the PCI configuration space.
|
|
|
|
.It Fl P Ar addr Ar data
|
|
|
|
Write Tulip PCI configuration register.
|
|
|
|
Write
|
|
|
|
.Ar data
|
|
|
|
into register
|
|
|
|
.Ar addr .
|
|
|
|
.It Fl s
|
|
|
|
Read Tulip SROM.
|
|
|
|
Print the 64 16-bit locations.
|
|
|
|
The PCI subsystem vendor and device IDs are kept here.
|
|
|
|
.It Fl S Ar number
|
|
|
|
Write Tulip SROM.
|
|
|
|
Initializes the Tulip SROM to card type
|
|
|
|
.Ar number .
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -column "9" -offset 1m -compact
|
2005-10-03 07:09:41 +00:00
|
|
|
.It 3 Ta HSSI
|
|
|
|
.It 4 Ta T3
|
|
|
|
.It 5 Ta SSI
|
|
|
|
.It 6 Ta T1E1
|
|
|
|
.It 7 Ta HSSIc
|
|
|
|
.It 8 Ta SDSL
|
|
|
|
.It 0 Ta auto-set from MII PHYID
|
|
|
|
.El
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
2005-10-03 07:09:41 +00:00
|
|
|
If
|
|
|
|
.Ar number
|
|
|
|
is zero, then the card type is computed from the gate array
|
|
|
|
microcode version field in the MII PHYID register.
|
|
|
|
.Em CAUTION :
|
|
|
|
if the SROM is incorrect, the card will be unusable!
|
|
|
|
This command is
|
|
|
|
.Em so
|
2005-11-24 16:03:09 +00:00
|
|
|
dangerous that
|
|
|
|
.Nm
|
|
|
|
must be edited and recompiled to enable it.
|
2005-10-03 07:09:41 +00:00
|
|
|
.It Fl t
|
|
|
|
Read Tulip CSRs.
|
|
|
|
Print the 16 32-bit control and status registers.
|
|
|
|
.It Fl T Ar addr Ar data
|
|
|
|
Write Tulip CSR.
|
|
|
|
Write
|
|
|
|
.Ar data
|
2005-11-24 16:03:09 +00:00
|
|
|
into CSR number
|
2005-10-03 07:09:41 +00:00
|
|
|
.Ar addr .
|
2005-11-24 16:03:09 +00:00
|
|
|
Note that
|
|
|
|
.Ar addr
|
|
|
|
is a CSR number (0-15) not a byte offset into CSR space.
|
2005-10-03 07:09:41 +00:00
|
|
|
.It Fl u
|
|
|
|
Reset event counters to zero.
|
|
|
|
The driver counts events like packets in and out, errors, discards, etc.
|
|
|
|
The time when the counters are reset is remembered.
|
|
|
|
.It Fl U
|
|
|
|
Reset gate array.
|
|
|
|
Not needed during normal operation; just for testing.
|
|
|
|
.It Fl v
|
|
|
|
Set verbose mode: print more stuff.
|
|
|
|
.It Fl V
|
2005-11-24 16:03:09 +00:00
|
|
|
Print the card configuration \[em] see the
|
|
|
|
.Sx EXAMPLES
|
|
|
|
section.
|
2005-10-03 07:09:41 +00:00
|
|
|
.It Fl w
|
2005-11-24 16:03:09 +00:00
|
|
|
Load gate array from on-board ROM.
|
2005-10-03 07:09:41 +00:00
|
|
|
Not needed during normal operation; just for testing.
|
|
|
|
.It Fl W Ar filename
|
|
|
|
Load gate array microcode from
|
|
|
|
.Ar filename .
|
|
|
|
.It Fl x
|
2005-11-24 16:03:09 +00:00
|
|
|
Select RAWIP mode \[em] bypass line protocol code.
|
2005-10-03 07:09:41 +00:00
|
|
|
.It Fl X
|
|
|
|
Select line protocol code rather than RAWIP mode.
|
|
|
|
.It Fl y
|
2010-08-16 15:18:30 +00:00
|
|
|
Disable SPPP keep-alive packets.
|
2005-10-03 07:09:41 +00:00
|
|
|
.It Fl Y
|
|
|
|
Enable SPPP keep-alive packets.
|
|
|
|
.It Fl z
|
|
|
|
Set SPPP line protocol to Cisco-HDLC.
|
|
|
|
.It Fl Z
|
|
|
|
Set SPPP line protocol to PPP.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Fl ?\&
|
2005-10-03 07:09:41 +00:00
|
|
|
Print help (usage message).
|
|
|
|
.El
|
|
|
|
.Ss Commands for T1E1 cards
|
|
|
|
The following parameters apply to the T1E1 card type:
|
|
|
|
.Bl -tag -width indent
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Fl a Sm Cm y | a | b Sm
|
2005-10-03 07:09:41 +00:00
|
|
|
Stop sending alarm signal.
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
2005-10-03 07:09:41 +00:00
|
|
|
.Bl -column "y" "Yellow Alarm" "unframed all ones; aka AIS" -offset 1m -compact
|
|
|
|
.It "y" Ta "Yellow Alarm" Ta "varies with framing"
|
|
|
|
.It "a" Ta "Red Alarm" Ta "unframed all ones; aka AIS"
|
|
|
|
.It "b" Ta "Blue Alarm" Ta "unframed all ones"
|
|
|
|
.El
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
2005-10-03 07:09:41 +00:00
|
|
|
Red alarm, also known as AIS (Alarm Indication Signal),
|
|
|
|
and Blue alarm are identical in T1.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Fl A Sm Cm y | a | b Sm
|
2005-10-03 07:09:41 +00:00
|
|
|
Start sending alarm signal (see table above).
|
|
|
|
.It Fl B Ar number
|
|
|
|
Send a Bit Oriented Protocol (BOP) message with code
|
2005-12-13 17:07:52 +00:00
|
|
|
.Ar number .
|
2005-10-03 07:09:41 +00:00
|
|
|
BOP codes are six bits.
|
|
|
|
.It Fl c Ar number
|
|
|
|
Set cable length to
|
|
|
|
.Ar number
|
|
|
|
meters (default: 10 meters).
|
|
|
|
This is used to set receiver sensitivity
|
|
|
|
and transmitter line build-out.
|
|
|
|
.It Fl d
|
2005-11-24 16:03:09 +00:00
|
|
|
Print the status of the on-board DSU/CSU \[em] see the
|
|
|
|
.Sx EXAMPLES
|
|
|
|
section.
|
2005-10-03 07:09:41 +00:00
|
|
|
.It Fl e Ar number
|
|
|
|
Set the framing format to
|
|
|
|
.Ar number :
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -column "99" -offset 1m -compact
|
2005-10-03 07:09:41 +00:00
|
|
|
.It 9 Ta T1-SF/AMI
|
|
|
|
.It 27 Ta T1-ESF/B8ZS (default)
|
|
|
|
.It 0 Ta E1-FAS
|
|
|
|
.It 8 Ta E1-FAS+CRC
|
|
|
|
.It 16 Ta E1-FAS+CAS
|
|
|
|
.It 24 Ta E1-FAS+CRC+CAS
|
|
|
|
.It 32 Ta E1-NO-framing
|
|
|
|
.El
|
|
|
|
.It Fl E Ar number
|
|
|
|
Enable 64Kb time slots (TSs) for the T1E1 card.
|
2005-11-24 16:03:09 +00:00
|
|
|
The
|
2005-10-03 07:09:41 +00:00
|
|
|
.Ar number
|
2005-11-24 16:03:09 +00:00
|
|
|
argument
|
2005-10-03 07:09:41 +00:00
|
|
|
is a 32-bit hex number (default 0xFFFFFFFF).
|
|
|
|
The LSB is TS0 and the MSB is TS31.
|
|
|
|
TS0 and TS25-31 are ignored in T1 mode.
|
|
|
|
TS0 and TS16 are determined by the framing format in E1 mode.
|
|
|
|
.It Fl f
|
|
|
|
Read framer registers.
|
|
|
|
Print the 512 8-bit registers in the framer chip.
|
|
|
|
.It Fl F Ar addr Ar data
|
|
|
|
Write framer register.
|
|
|
|
Write
|
|
|
|
.Ar data
|
|
|
|
into register
|
|
|
|
.Ar addr .
|
|
|
|
.It Fl g Ar number
|
|
|
|
Set receiver gain range to
|
|
|
|
.Ar number :
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
2005-10-03 07:09:41 +00:00
|
|
|
.Bl -column "0x00" "Medium" "auto-set based on cable length (default)" -offset 1m -compact
|
|
|
|
.It "0x24" Ta "Short" Ta "0 to 20 dB of equalized gain"
|
|
|
|
.It "0x2C" Ta "Medium" Ta "0 to 30 dB of equalized gain"
|
|
|
|
.It "0x34" Ta "Long" Ta "0 to 40 dB of equalized gain"
|
|
|
|
.It "0x3F" Ta "Extend" Ta "0 to 64 dB of equalized gain (wide open)"
|
|
|
|
.It "0xFF" Ta "Auto" Ta "auto-set based on cable length (default)"
|
|
|
|
.El
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
2005-10-03 07:09:41 +00:00
|
|
|
This sets the level at which
|
|
|
|
.Em Loss-Of-Signal
|
|
|
|
is declared.
|
|
|
|
.It Fl i
|
|
|
|
Send a
|
|
|
|
.Em CSU loopback deactivate
|
|
|
|
inband command (T1-SF only).
|
|
|
|
.It Fl I
|
|
|
|
Send a
|
|
|
|
.Em CSU loopback activate
|
|
|
|
inband command (T1-SF only).
|
|
|
|
.It Fl l
|
|
|
|
Send a
|
|
|
|
.Em line loopback deactivate
|
|
|
|
BOP message (T1-ESF only).
|
|
|
|
.It Fl L
|
|
|
|
Send a
|
|
|
|
.Em line loopback activate
|
|
|
|
BOP message (T1-ESF only).
|
|
|
|
.It Fl p
|
|
|
|
Send a
|
|
|
|
.Em payload loopback deactivate
|
|
|
|
BOP message (T1-ESF only).
|
|
|
|
.It Fl P
|
|
|
|
Send a
|
|
|
|
.Em payload loopback activate
|
|
|
|
BOP message (T1-ESF only).
|
|
|
|
.It Fl s
|
2005-11-24 16:03:09 +00:00
|
|
|
Print the status of the on-board DSU/CSU \[em] see the
|
|
|
|
.Sx EXAMPLES
|
|
|
|
section.
|
2005-10-03 07:09:41 +00:00
|
|
|
.It Fl t
|
|
|
|
Stop sending test pattern.
|
|
|
|
.It Fl T Ar number
|
|
|
|
Start sending test pattern
|
|
|
|
.Ar number :
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -column "99" -offset 1m -compact
|
2005-10-03 07:09:41 +00:00
|
|
|
.It 0 Ta unframed X^11+X^9+1
|
|
|
|
.It 1 Ta unframed X^15+X^14+1
|
|
|
|
.It 2 Ta unframed X^20+X^17+1
|
|
|
|
.It 3 Ta unframed X^23+X^18+1
|
|
|
|
.It 4 Ta unframed X^11+X^9+1 with 7ZS
|
|
|
|
.It 5 Ta unframed X^15+X^14+1 with 7ZS
|
|
|
|
.It 6 Ta unframed X^20+X^17+1 with 14ZS (QRSS)
|
|
|
|
.It 7 Ta unframed X^23+X^18+1 with 14ZS
|
|
|
|
.It 8 Ta framed X^11+X^9+1
|
|
|
|
.It 9 Ta framed X^15+X^14+1
|
|
|
|
.It 10 Ta framed X^20+X^17+1
|
|
|
|
.It 11 Ta framed X^23+X^18+1
|
|
|
|
.It 12 Ta framed X^11+X^9+1 with 7ZS
|
|
|
|
.It 13 Ta framed X^15+X^14+1 with 7ZS
|
|
|
|
.It 14 Ta framed X^20+X^17+1 with 14ZS (QRSS)
|
|
|
|
.It 15 Ta framed X^23+X^18+1 with 14ZS
|
|
|
|
.El
|
|
|
|
.It Fl u Ar number
|
|
|
|
Set transmit pulse shape to
|
|
|
|
.Ar number :
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -column "99" -offset 1m -compact
|
2005-10-03 07:09:41 +00:00
|
|
|
.It 0 Ta T1 DSX 0 to 40 meters
|
|
|
|
.It 2 Ta T1 DSX 40 to 80 meters
|
|
|
|
.It 4 Ta T1 DSX 80 to 120 meters
|
|
|
|
.It 6 Ta T1 DSX 120 to 160 meters
|
|
|
|
.It 8 Ta T1 DSX 160 to 200 meters
|
|
|
|
.It 10 Ta E1 75-ohm coax pair
|
|
|
|
.It 12 Ta E1 120-ohm twisted pairs
|
|
|
|
.It 14 Ta T1 CSU 200 to 2000 meters; set LBO
|
|
|
|
.It 255 Ta auto-set based on cable length and framing format (default)
|
|
|
|
.El
|
|
|
|
.It Fl U Ar number
|
|
|
|
Set transmit line build-out to
|
|
|
|
.Ar number :
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
2005-10-03 07:09:41 +00:00
|
|
|
.Bl -column "255" "22.5 dB" "FCC option A" -offset 1m -compact
|
|
|
|
.It " 0" Ta "0 dB" Ta "FCC option A"
|
|
|
|
.It " 16" Ta "7.5 dB" Ta "FCC option B"
|
|
|
|
.It " 32" Ta "15 dB" Ta "FCC option C"
|
|
|
|
.It " 48" Ta "22.5 dB" Ta "final span"
|
2012-04-07 09:05:30 +00:00
|
|
|
.It "255" Ta "auto-set based on cable length (default)" Ta \&
|
2005-10-03 07:09:41 +00:00
|
|
|
.El
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
2005-10-03 07:09:41 +00:00
|
|
|
This is only applicable if the pulse shape is T1-CSU.
|
|
|
|
.It Fl v
|
|
|
|
Set verbose mode: print more stuff.
|
|
|
|
.It Fl x
|
|
|
|
Disable transmitter outputs.
|
|
|
|
.It Fl X
|
|
|
|
Enable transmitter outputs.
|
|
|
|
.El
|
|
|
|
.Ss Commands for T3 cards
|
|
|
|
The following parameters apply to the T3 card type:
|
|
|
|
.Bl -tag -width indent
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Fl a Sm Cm y | a | b | i Sm
|
2005-10-03 07:09:41 +00:00
|
|
|
Stop sending alarm signal.
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
2005-10-03 07:09:41 +00:00
|
|
|
.Bl -column "y" "Yellow Alarm" "framed 1010... aka AIS" -offset 1m -compact
|
|
|
|
.It "y" Ta "Yellow Alarm" Ta "X-bits set to 0"
|
|
|
|
.It "a" Ta "Red Alarm" Ta "framed 1010... aka AIS"
|
|
|
|
.It "b" Ta "Blue Alarm" Ta "unframed all-ones"
|
|
|
|
.It "i" Ta "Idle signal" Ta "framed 11001100..."
|
|
|
|
.El
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Fl A Sm Cm y | a | b | i Sm
|
2005-10-03 07:09:41 +00:00
|
|
|
Start sending alarm signal (see table above).
|
|
|
|
.It Fl B Ar number
|
|
|
|
Send a BOP (Bit Oriented Protocol) message with code
|
|
|
|
.Ar number .
|
|
|
|
BOP codes are six bits.
|
|
|
|
.It Fl c Ar number
|
|
|
|
Set cable length to
|
|
|
|
.Ar number
|
|
|
|
meters (default: 10 meters).
|
|
|
|
This is used to set receiver sensitivity
|
|
|
|
and transmitter line build-out.
|
|
|
|
.It Fl d
|
2005-11-24 16:03:09 +00:00
|
|
|
Print the status of the on-board T3 DSU \[em] see the
|
|
|
|
.Sx EXAMPLES
|
|
|
|
section.
|
2005-10-03 07:09:41 +00:00
|
|
|
.It Fl e Ar number
|
|
|
|
Set the framing format to
|
|
|
|
.Ar number :
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -column "100" -offset 1m -compact
|
2005-10-03 07:09:41 +00:00
|
|
|
.It 100 Ta T3-C-bit parity
|
|
|
|
.It 101 Ta T3-M13 format
|
|
|
|
.El
|
|
|
|
.It Fl f
|
|
|
|
Read framer registers.
|
|
|
|
Print the 22 8-bit registers in the framer chip.
|
|
|
|
.It Fl F Ar addr Ar data
|
|
|
|
Write framer register.
|
|
|
|
Write
|
|
|
|
.Ar data
|
|
|
|
into register
|
|
|
|
.Ar addr .
|
|
|
|
.It Fl l
|
|
|
|
Send a
|
|
|
|
.Em line loopback deactivate
|
|
|
|
BOP message.
|
|
|
|
.It Fl L
|
|
|
|
Send a
|
|
|
|
.Em line loopback activate
|
|
|
|
BOP message.
|
|
|
|
.It Fl s
|
2005-11-24 16:03:09 +00:00
|
|
|
Print the status of the on-board T3 DSU \[em] see the
|
|
|
|
.Sx EXAMPLES
|
|
|
|
section.
|
2005-10-03 07:09:41 +00:00
|
|
|
.It Fl S Ar number
|
2010-08-16 15:18:30 +00:00
|
|
|
Set payload scrambler polynomial to
|
2005-10-03 07:09:41 +00:00
|
|
|
.Ar number :
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
|
|
|
.Bl -column "9" -offset 1m -compact
|
2005-10-03 07:09:41 +00:00
|
|
|
.It 1 Ta payload scrambler disabled
|
|
|
|
.It 2 Ta X^43+1: DigitalLink and Kentrox
|
|
|
|
.It 3 Ta X^20+X^17+1 w/28ZS: Larscom
|
|
|
|
.El
|
|
|
|
Payload scrambler polynomials are not standardized.
|
|
|
|
.It Fl v
|
|
|
|
Set verbose mode: print more stuff.
|
|
|
|
.It Fl V Ar number
|
|
|
|
Set transmit frequency offset to
|
|
|
|
.Ar number .
|
|
|
|
Some T3 cards can offset the transmitter frequency from 44.736 MHz.
|
|
|
|
.Ar Number
|
|
|
|
is in the range (0..4095); 2048 is zero offset; step size is about 3 Hz.
|
2005-11-24 16:03:09 +00:00
|
|
|
A
|
|
|
|
.Ar number
|
2005-10-03 07:09:41 +00:00
|
|
|
is written to a Digital-Analog Converter (DAC) which connects
|
|
|
|
to a Voltage Controlled Crystal Oscillator (VCXO).
|
|
|
|
.El
|
|
|
|
.Ss Event Counters
|
|
|
|
The device driver counts many interesting events such as
|
|
|
|
packets in and out, errors and discards.
|
|
|
|
The table below lists the event counters and describes what they count.
|
2005-11-24 16:03:09 +00:00
|
|
|
.Bl -tag -width ".Va underruns"
|
|
|
|
.It Va ibytes
|
2005-10-03 07:09:41 +00:00
|
|
|
Bytes received in packets with good ending status.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va obytes
|
2005-10-03 07:09:41 +00:00
|
|
|
Bytes transmitted.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va ipackets
|
2005-10-03 07:09:41 +00:00
|
|
|
Packets received with good ending status.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va opackets
|
2005-10-03 07:09:41 +00:00
|
|
|
Packets transmitted.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va ierrors
|
2005-10-03 07:09:41 +00:00
|
|
|
Packets received with bad ending status.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va oerrors
|
2005-10-03 07:09:41 +00:00
|
|
|
Packets transmitted with bad ending status.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va idiscards
|
2005-10-03 07:09:41 +00:00
|
|
|
Packets received but discarded because
|
|
|
|
the input queue was full or the interface was down.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va odiscards
|
2005-10-03 07:09:41 +00:00
|
|
|
Packets presented for transmission but discarded because
|
|
|
|
the output queue was full or the interface was down.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va txdma
|
2005-10-03 07:09:41 +00:00
|
|
|
Packets presented for transmission but queued and retried later
|
|
|
|
because no DMA descriptors were available.
|
|
|
|
This can happen during normal operation and is not an indication of trouble.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va fifo-overrun
|
2005-10-03 07:09:41 +00:00
|
|
|
Packets that started to arrive, but were aborted because
|
|
|
|
the card was unable to DMA data to memory fast enough
|
|
|
|
to prevent the receiver fifo from overflowing.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va fifo-underrun
|
2005-10-03 07:09:41 +00:00
|
|
|
Packets that started to transmit but were aborted because
|
|
|
|
the card was unable to DMA data from the memory fast enough
|
|
|
|
to prevent the transmitter fifo from underflowing.
|
|
|
|
When this happens, the transmitter threshold is increased,
|
|
|
|
so that more bytes are required to be in the fifo
|
|
|
|
before the transmitter is started.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va missed
|
2005-10-03 07:09:41 +00:00
|
|
|
Packets that are missed because the receiver is stopped.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va overruns
|
2005-10-03 07:09:41 +00:00
|
|
|
Packets that are missed because the receiver
|
|
|
|
had no DMA descriptors available.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va fdl_pkts
|
2005-10-03 07:09:41 +00:00
|
|
|
Packets received on the T1 Facility Data Link.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va crc-errs
|
2005-10-03 07:09:41 +00:00
|
|
|
Cyclic Redundancy Checksum errors detected by the CRC-6 in
|
|
|
|
T1 Extended SuperFrames (ESF) or the CRC-4 in E1 frames.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va lcv-errs
|
2005-10-03 07:09:41 +00:00
|
|
|
Line Coding Violation errors:
|
|
|
|
Alternate Mark Inversion (AMI) errors for T1-SF,
|
|
|
|
Bipolar 8-Zero Substitution (B8ZS) errors for T1-ESF, or
|
|
|
|
High Density Bipolar with 3-Zero Substitution (HDB3) errors for E1 or
|
|
|
|
Bipolar 3-Zero Substitution (B3ZS) errors for T3.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va frm-errs
|
2005-10-03 07:09:41 +00:00
|
|
|
T1 or T3 bit errors in the frame alignment signal.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va febe-errs
|
2005-10-03 07:09:41 +00:00
|
|
|
Far End Block Errors:
|
|
|
|
T1 or T3 bit errors detected by the device at the far end of the link.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va par-errs
|
2005-10-03 07:09:41 +00:00
|
|
|
T3 bit errors detected by the hop-by-hop parity mechanism.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va cpar-errs
|
2005-10-03 07:09:41 +00:00
|
|
|
T3 bit errors detected by the end-to-end parity mechanism.
|
2005-11-24 16:03:09 +00:00
|
|
|
.It Va mfrm-errs
|
2005-10-03 07:09:41 +00:00
|
|
|
T3 bit errors in the multi-frame alignment signal.
|
|
|
|
.El
|
|
|
|
.Ss Transmit Speed
|
|
|
|
The hardware counts transmit clocks divided by 2048.
|
2005-11-24 16:03:09 +00:00
|
|
|
The software computes
|
|
|
|
.Dq "Tx speed"
|
|
|
|
from this (see
|
|
|
|
.Sx EXAMPLES
|
|
|
|
below).
|
2005-10-03 07:09:41 +00:00
|
|
|
The transmit clock is the bit rate of the circuit divided by two if the
|
|
|
|
circuit is idle and divided by four if the circuit is carrying a packet.
|
|
|
|
So an idle circuit reports a Tx speed equal to its bit rate,
|
|
|
|
and a busy circuit reports a Tx speed equal to half its bit rate.
|
|
|
|
.Pp
|
2005-11-24 16:03:09 +00:00
|
|
|
This
|
|
|
|
.Dq "bit rate"
|
|
|
|
does not include circuit-level overhead bits
|
2005-10-03 07:09:41 +00:00
|
|
|
(such as T1 or T3 frame bits) but does include HDLC stuff bits.
|
|
|
|
An idle T1 circuit with a raw bit rate of 1544000 and a
|
2005-11-24 16:03:09 +00:00
|
|
|
bit-rate-minus-overhead of 1536000 will report a
|
|
|
|
.Dq "Tx speed"
|
2005-10-03 07:09:41 +00:00
|
|
|
of ((1536000 bitand 4095) plus or minus 4096).
|
|
|
|
Sometimes it will even get the correct answer of 1536000, and
|
|
|
|
if the link is fully loaded it will report about 768000 bits/sec.
|
|
|
|
.Pp
|
2005-11-24 16:03:09 +00:00
|
|
|
It is not a perfect bit rate meter (the circuit must be idle),
|
2005-10-03 07:09:41 +00:00
|
|
|
but it is a useful circuit utilization meter if you know the
|
2005-11-24 16:03:09 +00:00
|
|
|
circuit bit rate and do some arithmetic.
|
|
|
|
Software recalculates
|
2005-10-03 07:09:41 +00:00
|
|
|
Tx speed once a second; the measurement period has some jitter.
|
|
|
|
.Sh EXAMPLES
|
2005-11-24 16:03:09 +00:00
|
|
|
When
|
|
|
|
.Dq Li lmc0
|
|
|
|
is a T1E1 card,
|
|
|
|
.Dq Li lmcconfig lmc0
|
2005-10-03 07:09:41 +00:00
|
|
|
generates the following output:
|
2005-11-24 16:03:09 +00:00
|
|
|
.Bd -literal -offset 2m
|
2005-10-03 07:09:41 +00:00
|
|
|
Card name: lmc0
|
|
|
|
Card type: SBE/LMC T1E1 card
|
|
|
|
Link status: Up
|
|
|
|
Tx Speed: 1548288
|
|
|
|
Line Prot/Pkg: Frame-Relay/SPPP
|
|
|
|
SPPP Keep-alives: OFF
|
|
|
|
CRC length: 16 bits
|
|
|
|
Loopback: None
|
|
|
|
Tx Clk src: Internal source
|
|
|
|
Format-Frame/Code: T1-ESF/B8ZS
|
|
|
|
TimeSlot [31-0]: 0x01FFFFFE
|
|
|
|
Cable length: 10 meters
|
|
|
|
Tx pulse shape: auto-set to T1-DSX: 0 to 40 meters
|
|
|
|
Rx gain max: auto-set to 20.0 dB
|
|
|
|
Current time: Thu Sep 29 21:48:51 2005
|
|
|
|
Cntrs reset: Thu Sep 29 16:21:05 2005
|
|
|
|
RX bytes: 15053836
|
|
|
|
RX packets: 23271
|
|
|
|
TX bytes: 1732169
|
|
|
|
TX packets: 20526
|
|
|
|
Rx fdl pkts: 5443
|
|
|
|
.Ed
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pp
|
|
|
|
When
|
|
|
|
.Dq Li lmc0
|
|
|
|
is a T1E1 card,
|
|
|
|
.Dq Li "lmcconfig lmc0 -1 -d"
|
2005-10-03 07:09:41 +00:00
|
|
|
generates the following output:
|
2005-11-24 16:03:09 +00:00
|
|
|
.Bd -literal -offset 2m
|
2005-10-03 07:09:41 +00:00
|
|
|
Format-Frame/Code: T1-ESF/B8ZS
|
|
|
|
TimeSlot [31-0]: 0x01FFFFFE
|
|
|
|
Tx Clk src: Internal source
|
|
|
|
Tx Speed: 1548288
|
|
|
|
Tx pulse shape: T1-DSX: 0 to 40 meters
|
|
|
|
Tx outputs: Enabled
|
|
|
|
Line impedance: 100 ohms
|
|
|
|
Max line loss: 20.0 dB
|
|
|
|
Cur line loss: 3.1 dB
|
|
|
|
Invert data: No
|
|
|
|
Line loop: No
|
|
|
|
Payload loop: No
|
|
|
|
Framer loop: No
|
|
|
|
Analog loop: No
|
|
|
|
Tx AIS: No
|
|
|
|
Rx AIS: No
|
|
|
|
Tx BOP RAI: No
|
|
|
|
Rx BOP RAI: No
|
|
|
|
Rx LOS analog: No
|
|
|
|
Rx LOS digital: No
|
|
|
|
Rx LOF: No
|
|
|
|
Tx QRS: No
|
|
|
|
Rx QRS: No
|
|
|
|
LCV errors: 0
|
|
|
|
CRC errors: 0
|
|
|
|
Frame errors: 0
|
|
|
|
Sev Err Frms: 0
|
|
|
|
Change of Frm align: 0
|
|
|
|
Loss of Frame events: 0
|
|
|
|
Last Tx BOP msg: 0x00 (Yellow Alarm (far end LOF))
|
|
|
|
Last Rx BOP msg: 0x00 (Yellow Alarm (far end LOF))
|
|
|
|
SNMP Near-end performance data:
|
|
|
|
LCV=0 LOS=0 FE=0 CRC=0 AIS=0 SEF=0 OOF=0 RAI=0
|
|
|
|
ANSI Far-end performance reports:
|
|
|
|
SEQ=1 CRC=0 SE=0 FE=0 LV=0 SL=0 LB=0
|
|
|
|
SEQ=0 CRC=0 SE=0 FE=0 LV=0 SL=0 LB=0
|
|
|
|
SEQ=3 CRC=0 SE=0 FE=0 LV=0 SL=0 LB=0
|
|
|
|
SEQ=2 CRC=0 SE=0 FE=0 LV=0 SL=0 LB=0
|
|
|
|
.Ed
|
|
|
|
.Sh DIAGNOSTICS
|
|
|
|
Messages indicating the specified interface does not exist, or
|
|
|
|
the user is not privileged and tried to alter an interface's configuration.
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr ioctl 2 ,
|
|
|
|
.Xr lmc 4 ,
|
2005-11-24 16:03:09 +00:00
|
|
|
.Xr netgraph 4 ,
|
2005-10-03 07:09:41 +00:00
|
|
|
.Xr ifconfig 8 ,
|
2005-11-24 16:03:09 +00:00
|
|
|
.Xr ifnet 9
|
2005-10-03 07:09:41 +00:00
|
|
|
.Pp
|
2005-11-24 16:03:09 +00:00
|
|
|
.Pa http://www.sbei.com/
|
2005-10-03 07:09:41 +00:00
|
|
|
.Sh HISTORY
|
2005-11-24 16:03:09 +00:00
|
|
|
This is a total rewrite of the program
|
|
|
|
.Nm lmcctl
|
|
|
|
by
|
|
|
|
.An "Andrew Stanley-Jones" .
|
|
|
|
.Sh AUTHORS
|
|
|
|
.An "David Boggs" Aq boggs@boggs.palo-alto.ca.us
|