Unable to execute dahdi_scan

I’ve got the following line appearing a lot in the asterisk.log:
WARNING[number]: app_system.c:134 in system_exec_helper: Unable to execute 'dahdi_scan > /etc/asterisk/dahdi_scan.conf’
I can’t find any info on google about this. What is asterisk trying to do and what can I do to solve it?

I do not think this is something generally Asterisk related, but more a function of something that is happening in your dialplan or AMI scripts specifically.

dahdi_scan is a utility installed as part of dahdi-tools to display, on the console, information about any currently active spans. For example, on a system with only a single TE122 card installed the output looks like:

# dahdi_scan
[1]
active=yes
alarms=RED
description=Wildcard TE122 Card 0
name=WCT1/0
manufacturer=Digium
devicetype=Wildcard TE122 (VPMOCT032)
location=PCI Bus 11 Slot 01
basechan=1
totchans=24
irq=0
type=digital-T1
syncsrc=1
lbo=0 db (CSU)/0-133 feet (DSX-1)
coding_opts=B8ZS,AMI
framing_opts=ESF,D4
coding=B8ZS
framing=ESF

How did you install your system and generate your dialplans?

my asterisk system was installed using:
dahdi-linux-complete-2.6.0+2.6.0.tar.gz
asterisk-1.8.7.1.tar.gz
asterisk gui-version : SVN–r5209
on a centos 5.8 server.
I set up my dialplans using the asterisk-gui web interface.

In that case, you need to ask on an Asterisk GUI forum. The Asterisk GUI provided dialplan will include a line something like:

exten => xxxx,n,Exec(dahdi_scan > /etc/asterisk/dahdi_scan.conf)

and that is failing because it can’t find dahdi_scan on the file path.