1dahdi_scan(8) System Manager's Manual dahdi_scan(8)
2
3
4
6 dahdi_scan — Print Configuration of DAHDI Spans
7
9 dahdi_scan [spans]
10
11
13 dahdi_scan prints information about DAHDI spans in the system. For ana‐
14 log spans it also provides a list of channels.
15
16 By default it prints information about all the spans in the system.
17 However if parameters are provided, they will be considered to be a
18 list of span numbers and information will be printed for them.
19
20 Output is printed to the standard output. The format is that of an
21 Asterisk configuration file (similar to a "ini" configuration file),
22 where the name of the section is the number of the span. Note that the
23 specifically for analog spans some keys may appear more than once, and
24 hence you can not use a parser for an "ini" format and assume you have
25 a dictionary.
26
27
29 Printing information for spans 1, 2 and 4:
30
31 dahdi_scan 1 2 4
32
33 And to print all the spans:
34
35 dahdi_scan
36
37 Information about a certain analog span:
38
39 [5]
40 active=yes
41 alarms=OK
42 description=Xorcom XPD #00/10: FXS
43 name=XBUS-00/XPD-10
44 manufacturer=Xorcom Inc.
45 devicetype=Astribank: Unit 1 Subunit 0: FXS
46 location=usb-0000:00:03.3-4
47 basechan=125
48 totchans=8
49 irq=0
50 type=analog
51 port=125,FXS
52 port=126,FXS
53 port=127,FXS
54 port=128,FXS
55 port=129,FXS
56 port=130,FXS
57 port=131,FXS
58 port=132,FXS
59
60 And an example of a digital span:
61
62 [1]
63 active=yes
64 alarms=RED
65 description=T2XXP (PCI) Card 0 Span 1
66 name=TE2/0/1
67 manufacturer=Digium
68 devicetype=Wildcard TE205P (4th Gen)
69 location=Board ID Switch 0
70 basechan=1
71 totchans=24
72 irq=193
73 type=digital-T1
74 syncsrc=0
75 lbo=0 db (CSU)/0-133 feet (DSX-1)
76 coding_opts=B8ZS,AMI
77 framing_opts=ESF,D4
78 coding=B8ZS
79 framing=ESF
80
81 The "type" field may contain: "analog", "digital-T1", "digital-E1",
82 "digital-J1" or "digital-BRI".
83
84
86 Requires read access to /dev/dahdi/ctl .
87
88
90 dahdi_cfg(8), asterisk(8).
91
92
94 The program still does not do everything described in the man page.
95
96 It also assumes that spans don't skip channel numbers, and that their
97 channel numbers are "running". This is anyway almost always the case.
98 And always the case in a normal boot process.
99
100
102 This manual page was written by Tzafrir Cohen <tzafrir.cohen@xor‐
103 com.com> Permission is granted to copy, distribute and/or modify this
104 document under the terms of the GNU General Public License, Version 2
105 any later version published by the Free Software Foundation.
106
107 On Debian systems, the complete text of the GNU General Public License
108 can be found in /usr/share/common-licenses/GPL.
109
110
111
112 2008-03-18 dahdi_scan(8)