# “Line 12 command missing” when setting up Cisco LoRaWAN Gateway

**URL:** <https://www.thethingsnetwork.org/forum/t/line-12-command-missing-when-setting-up-cisco-lorawan-gateway/35182>\
**Category:** Gateways\
**Created:** [March 9, 2020, 9:21am UTC](https://www.thethingsnetwork.org/forum/t/line-12-command-missing-when-setting-up-cisco-lorawan-gateway/35182 "2020-03-09T09:21:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MonheimCity](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/monheimcity/32/25844_2.png) [@MonheimCity](https://www.thethingsnetwork.org/forum/u/MonheimCity)\
**Post date:** [March 9, 2020, 9:21am UTC](https://www.thethingsnetwork.org/forum/t/line-12-command-missing-when-setting-up-cisco-lorawan-gateway/35182/1 "2020-03-09T09:21:32Z")

</div>

Hello fellow thethingsnetworker,

I need reaaaaly big support. I’m a new hire at a city in germany. My first big project is to try to setup a lora gateway (i got the cisco lorawan gateway). You can imagine it hit me like a truck. Lorawan heard but never worked with. If someone would be so kind to take me by the hand maybe even trough email and help me to setup the basics.

Well what i got so far.

Cisco Lorawan Gateway up and almost running. Its connected to the thethingsnetwork.

Ive got problems with the packet forwarder. The script from the tutorial setup seems not working for me. I get the error “Line 12 command missing”

Gps, Radio etc. seems to work fine and the firmware is up to date.

Can i find anyone generous to help me please?

Best regards

Adrian

---

<div class="post-metadata">

**Author:** ![jwijngaard](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/jwijngaard/32/35697_2.png) [@jwijngaard](https://www.thethingsnetwork.org/forum/u/jwijngaard)\
**Post date:** [March 9, 2020, 9:39am UTC](https://www.thethingsnetwork.org/forum/t/line-12-command-missing-when-setting-up-cisco-lorawan-gateway/35182/3 "2020-03-09T09:39:56Z")

</div>

At first welcome to the this forum,  
Did you search all ready you could find the follow info: [https://www.thethingsnetwork.org/docs/gateways/cisco/setup.html](https://www.thethingsnetwork.org/docs/gateways/cisco/setup.html)  
and maybee search futher on the form to the cisco info.  
succes

---

<div class="post-metadata">

**Author:** ![MonheimCity](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/monheimcity/32/25844_2.png) [@MonheimCity](https://www.thethingsnetwork.org/forum/u/MonheimCity)\
**Post date:** [March 9, 2020, 9:49am UTC](https://www.thethingsnetwork.org/forum/t/line-12-command-missing-when-setting-up-cisco-lorawan-gateway/35182/4 "2020-03-09T09:49:20Z")

</div>

Hi, well i asked for it maybe i was a bit unclear on a few things. The code i used was that from the setup site.

```auto
#!/bin/sh

SCRIPT_DIR=/etc/pktfwd
SCRIPT=$SCRIPT_DIR/pkt_forwarder
CONFIG=$SCRIPT_DIR/config.json

PIDFILE=/var/run/pkt_forwarder.pid
LOGFILE=/var/log/pkt_forwarder.log

export NETWORKIP=$(nslookup router.eu.thethings.network | grep -E -o "([0-9]{1,3}[\.]){3}[0-9]{1,3}" | tail -1)
sed -i 's/[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}/'$NETWORKIP'/g' "$CONFIG"

start() {
  echo "Starting pkt_forwarder"
  cd $SCRIPT_DIR
  start-stop-daemon \
        --start \
        --make-pidfile \
        --pidfile "$PIFDILE" \
        --background \
        --startas /bin/bash -- -c "exec $SCRIPT -- -c $CONFIG -g /dev/ttyS1 >> $LOGFILE 2>&1"
  echo $?
}

stop() {
  echo "Stopping pkt_forwarder"
  start-stop-daemon \
        --stop \
        --oknodo \
        --quiet \
        --pidfile "$PIDFILE"
}

restart() {
  stop
  sleep 1
  start
}

case "$1" in
  start)
    start
    ;;
  stop)
    stop
    ;;
  restart|reload)
    restart
    ;;
  *)
    echo "Usage: $0 {start|stop|restart}"
    exit 1
esac

exit $?

```

---

<div class="post-metadata">

**Author:** ![MonheimCity](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/monheimcity/32/25844_2.png) [@MonheimCity](https://www.thethingsnetwork.org/forum/u/MonheimCity)\
**Post date:** [March 9, 2020, 9:50am UTC](https://www.thethingsnetwork.org/forum/t/line-12-command-missing-when-setting-up-cisco-lorawan-gateway/35182/5 "2020-03-09T09:50:40Z")

</div>

I used this Setup and follwed every step.  
Seems im stuck somewhere i cant figure out where to go.

\*\* ##### 2020-03-09 09:45:46 GMT #####\*  
\*\* ### [UPSTREAM] ###\*  
\*\* # RF packets received by concentrator: 1\*  
\*\* # CRC\_OK: 0.00%, CRC\_FAIL: 100.00%, NO\_CRC: 0.00%\*  
\*\* # RF packets forwarded: 0 (0 bytes)\*  
\*\* # PUSH\_DATA datagrams sent: 1 (263 bytes)\*  
\*\* # PUSH\_DATA acknowledged: 0.00%\*  
\*\* #\*  
\*\* ### [DOWNSTREAM] ###\*  
\*\* # PULL\_DATA sent: 3 (0.00% acknowledged)\*  
\*\* # PULL\_RESP(onse) datagrams received: 0 (0 bytes)\*  
\*\* # RF packets sent to concentrator: 0 (0 bytes)\*  
\*\* # TX errors: 0\*  
\*\* # BEACON queued: 3\*  
\*\* # BEACON sent: 0\*  
\*\* # BEACON rejected: 0\*  
\*\* #\*  
\*\* ### [JIT] ###\*  
\*\* #\*  
\*\* ### [GPS] ###\*  
\*\* # INVALID time reference (age 150 seconds, 1 updates), XTAL err 0.000 ppm\*  
\*\* # no valid GPS coordinates available yet\*  
\*\* # PPS pulses lost: 0\*  
\*\* #\*  
\*\* ### [LINK TESTING MOTE: 00CC01AF] ###\*  
\*\* # Packets received from link testing mote: 0\*  
\*\* #\*  
\*\* ### [GATEWAY] ###\*  
\*\* # Boot time: 2020-03-09 09:43:13 GMT\*  
\*\* # Temperature: 29 C (code=85)\*  
\*\* #\*  
\*\* ##### END #####\*

\*\* [1583747146538309] JSON up [0] [58E9]: {“stat”:{“time”:“2020-03-09 09:45:46 GMT”,“boot”:“2020-03-09 09:43:13 GMT”,“lati”:51.09182,“long”:6.88774,“alti”:56,“rxnb”:1,“rxok”:0,“rxfw”:0,“ackr”:0.0,“dwnb”:0,“txnb”:0,“lmok”:0,“lmst”:0,“lmnw”:0,“pps”:0,“temp”:29,“fpga”:61,“dsp”:-1,“hal”:“5.1.0”}}\*  
\*\* HISTORY: purge [0DB7] at index 0 (time=1583747116 - now=1583747146)\*
