Kategorie: Event Scheduler
Event Scheduler: PPPoE-Interface zeitgesteuert deaktivieren mit anschließendem aktivem Verbindungsneuaufbau (Dialup)
Nur für PPPoE-Flatrate-Verbindungen mit Shorthold = 0 oder -1: Mittels des Event Schedulers ein PPPoE-Interface für eine bestimmte Zeit abschalten und danach die Verbindung wieder aktiv neu aufbauen (Dialup). Beispiel mit bintec R232bw mit Bootimage 7.4.2 Beta 9.
1. Vorbemerkungen
- Voraussetzung für den Event Scheduler ist ein Routerdatum ab 1.1.2000.
- Die Konfiguration erfolgt im Setup-Tool unter System, Schedule & Monitor, Event Scheduler (Time & SNMP).
- Eine grundlegende Beschreibung des Event Schedulers ist in der Release Note 7.1.4 enthalten.
- Wegen des aktiven Verbindungsneuaufbaus (ggf. kostenpflichtig) ist dieses Beispiel nur für PPPoE-Flatrate-Verbindungen (mit Shorthold = 0 oder -1) gedacht und geeignet.
2. Konfiguration
Als Beispiel soll ein PPPoE-WAN-Partner ("PPPoE-Provider") mit dem Index=10001 (vgl. Ausgabe von ifstat) täglich ab ca. 01:30 Uhr abgeschaltet werden und danach ab ca. 01:40 Uhr automatisch die PPPoE-Verbindung aktiv wieder aufnehmen (Dialup).
2.1 Schedule Event
R232bw Setup Tool Funkwerk Enterprise Communications GmbH
[SYSTEM][SCHEDULED][SCHED_EVT][EDIT]: Scheduler Events r232bw
_______________________________________________________________________________
Index 1 Description Downzeit
NextIndex none
Type time
Condition daily
Start time (hh:mm) 01:30
End time (hh:mm) 01:40
Status notavail
SAVE CANCEL
_______________________________________________________________________________
[SYSTEM][SCHEDULED][SCHED_EVT][EDIT]: Scheduler Events r232bw
_______________________________________________________________________________
Index 1 Description Downzeit
NextIndex none
Type time
Condition daily
Start time (hh:mm) 01:30
End time (hh:mm) 01:40
Status notavail
SAVE CANCEL
_______________________________________________________________________________
2.2 Schedule Command
R232bw Setup Tool Funkwerk Enterprise Communications GmbH
[SYSTEM][SCHEDULED][SCHED_CMD][EDIT]: Scheduler Commands r232bw
_______________________________________________________________________________
Index 1 Description Down_Dialup_Kommando
Mode enable
1. Event Index 1 (Downzeit)
Eventlist Condition one
Execute command user defined
Table iftable
Variable AdminStatus
Index variable Index
Index value 10001
Set value active down
value inactive dialup
Notify all
Status notavail Last Change 01/01/1970 0:00:00
SAVE CANCEL
_______________________________________________________________________________
[SYSTEM][SCHEDULED][SCHED_CMD][EDIT]: Scheduler Commands r232bw
_______________________________________________________________________________
Index 1 Description Down_Dialup_Kommando
Mode enable
1. Event Index 1 (Downzeit)
Eventlist Condition one
Execute command user defined
Table iftable
Variable AdminStatus
Index variable Index
Index value 10001
Set value active down
value inactive dialup
Notify all
Status notavail Last Change 01/01/1970 0:00:00
SAVE CANCEL
_______________________________________________________________________________
2.3 Aktivierung des Event Schedulers
R232bw Setup Tool Funkwerk Enterprise Communications GmbH
[SYSTEM][SCHEDULED]: Event Schedule r232bw
_______________________________________________________________________________
Event Scheduler enabled
Schedule Events >
Schedule Commands >
SAVE CANCEL
_______________________________________________________________________________
[SYSTEM][SCHEDULED]: Event Schedule r232bw
_______________________________________________________________________________
Event Scheduler enabled
Schedule Events >
Schedule Commands >
SAVE CANCEL
_______________________________________________________________________________
2.4 "Schedule Interval" setzen
Das "Schedule Interval" ist durch die Variable "biboExtAdmScheduleInterval" in der Tabelle "extadmin" vorgegeben. Bei aktivem Event Scheduler ist der Defaultwert 300 Sekunden. Eine Änderung auf beispielsweise 120 Sekunden ist auf der SNMP-Shell möglich mit:
r232bw:> biboExtAdmScheduleInterval=120
3. Test
Datum und Auszug aus den Debugmeldungen:
r232bw:> date
Thu Mar 9 1:28:11 2006
r232bw:> debug all&
01:30:58 NOTICE/CONFIG: SCHEDULED: cmd (1:Down_Dialup_Kommando) changed
inactive->active
01:30:58 NOTICE/CONFIG: SCHEDULED: cmd (1:Down_Dialup_Kommando) set var:1 -> 2
01:30:58 INFO/PPP: PPPoE-Provider: outgoing connection closed, ...
01:30:58 DEBUG/PPP: PPPoE-Provider 43/17/2/6: PPPoE session terminated
...
01:40:57 NOTICE/CONFIG: SCHEDULED: cmd (1:Down_Dialup_Kommando) changed
active->inactive
01:40:57 NOTICE/CONFIG: SCHEDULED: cmd (1:Down_Dialup_Kommando) set var:2 -> 4
01:40:57 DEBUG/PPP: PPPoE-Provider: send PPPoE Active Discovery Initiation (PADI), interface: 50000
01:40:57 DEBUG/PPP: PPPoE-Provider: outgoing connection established
...
Thu Mar 9 1:28:11 2006
r232bw:> debug all&
01:30:58 NOTICE/CONFIG: SCHEDULED: cmd (1:Down_Dialup_Kommando) changed
inactive->active
01:30:58 NOTICE/CONFIG: SCHEDULED: cmd (1:Down_Dialup_Kommando) set var:1 -> 2
01:30:58 INFO/PPP: PPPoE-Provider: outgoing connection closed, ...
01:30:58 DEBUG/PPP: PPPoE-Provider 43/17/2/6: PPPoE session terminated
...
01:40:57 NOTICE/CONFIG: SCHEDULED: cmd (1:Down_Dialup_Kommando) changed
active->inactive
01:40:57 NOTICE/CONFIG: SCHEDULED: cmd (1:Down_Dialup_Kommando) set var:2 -> 4
01:40:57 DEBUG/PPP: PPPoE-Provider: send PPPoE Active Discovery Initiation (PADI), interface: 50000
01:40:57 DEBUG/PPP: PPPoE-Provider: outgoing connection established
...
kst









