Ctlmgr

From Fritz!Box
Jump to: navigation, search

AVM Wiki >> Shell-Befehle >> ctlmgr @ whmf   -   IRC-Chat   -   hu nl it English
Community Modelle Zubehör Environment Konfiguration Shell-Befehle Software Freetz Lexikon Tipps+Tricks Bilder

Startup-Scripts AVM-Befehle BusyBox-Befehle Linux-Befehle Shared Libraries Kernel-Module Listings Todo

Contents

Befehl

ctlmgr kümmert sich um Dienstübergreifene organinsatorische Aufgaben und läuft i.d.R. in 4 Instanzen auf niederer Priorität. Obwohl sein Aufgabenfeld vielfältig ist sind nur wenige Funktionen auf ctlmgr angewiesen. So lässt sich rc.net per Option auch ohne ctlmgr starten.

Zusätzlich stellt ctlmgr ein Echtzeit-Metainterface über alle Konfigurationen aller Dienste dar, das entweder per CGI über den Web-Control-Manager webcm oder die Script-Sprache luacgi oder in der Shell über den Befehl Control-Manager-Control ctlmgr_ctl gesteuert werden kann.

Aufgerufen von

Kommunikation

Environment

Konfiguration

Tempfiles

Aufgaben

Diese Angaben sind der aktuelle Stand der Recherche und werden sich wahrscheinlich noch ändern!

Aufruf

# ctlmgr -?
usage: ctlmgr [options]
options:
  -?                 - print this help
  -f                 - run in forground. (NOTSET)
  -s                 - stop daemon. (NOTSET)
  -v                 - verbose. (NOTSET)
  -p STRING          - Pidfile. ("/var/run/ctlmgr.pid")
  -N                 - no lower priority. (NOTSET)
  -m                 - msg log to /var/tmp/ctlmgrmsg.log. (NOTSET)
  -D STRING          - switch debug logs on. (NULL)
start server:   ctlmgr
stop server :   ctlmgr -s

Beispiele

TODO

Automatischer Werksreset bei leerem oder unstimmigem /var/flash mit anschließendem Neustart:

# ctlmgr -f

+++ do 'clear country'... +++
+++ do 'clear language'... +++
rmmod: can't unload 'dect_io': unknown symbol in module, or unknown parameter
rmmod: can't unload 'avm_dect': unknown symbol in module, or unknown parameter
+++ do 'werkseinstellung'... +++
+++ do 'cleanup'... +++
+++ ...done +++

Funktionen

Diese Angaben sind der aktuelle Stand der Recherche und werden sich wahrscheinlich noch ändern!

$ strings /usr/bin/ctlmgr | grep "\.cpp$" | sort
capiotcp.cpp        # CAPI-over-TCP Dienst
country.cpp         # Landesspezifische Konfigurationen
ddns.cpp            # Dynamic-DNS Provider-Verwaltung
dhcpd.cpp           # DHCP-Dienst - WAN Client (+LAN Server?)
dslmail.cpp         # Feedback über DSL-Verbindung mailen
dslstatistic.cpp    # DSL-Statistik (auch für Push-Service)
emailnotify.cpp     # Email Push-Service
forwardrules.cpp    # Portfreigaben (statisch)
igdforwardrules.cpp # Portfreigaben (UPnP)
inetstat.cpp        # Online-Zähler
interfaces.cpp      # Verwaltung der Netzwerk-Interfaces (WAN)
landevices.cpp      # Verwaltung der Netzwerk-Interfaces (LAN)
language.cpp        # Webinterface-Sprachumschaltung
listprovider.cpp    # Provider-Preset-Verwaltung
netapp.cpp
nqos.cpp            # ATM NQoS Management
power.cpp           # Energieverbrauchs-Management 
remoteman.cpp       # Fern-Administration
route.cpp           # Internet Routing
time.cpp            # Zeitgesteuerte Dienste (Nachtschaltung, Reconnect, etc)
tr064conf.cpp       # TR-064
tr069conf.cpp       # TR-069
trafficprio.cpp     # Traffic Priorisierung
transaction.cpp
umts.cpp            # UMTS-Stick- und Provider-Verwaltung
updatecheck.cpp     # Firmware-Aktualisierung
vccs.cpp            # CPU Core-Voltage-Management
wakeup.cpp          # DSL L2-Power-Management

Symbole

Capiotcp_Register
CheckMailerStatus
CheckUnloadDSLDriver
ConnectionCheck_GetStatus
ConnectionCheck_Poll
ConnectionCheck_Start
ConnectionCheck_Stop
Country_Register
DDNS_Register
DHCPD_Register
DeleteFromStringlist
DeleteVCC
DslMail_Register
DslStatistic_Register
Dslstatglobal_Register
Emailnotify_Register
EtherWake
Event_MakeDisplayText
FindDSLIfaceByName
FindInternetDSLIface
FindInternetTarget
FindInternetVCC
FindTargetByName
FindVCCByName
FindVoipDSLIface
FindVoipTarget
FindVoipVCC
ForwardRules_DeleteIP
ForwardRules_GetFirstForwardIP
ForwardRules_GetNextForwardIP
ForwardRules_IsActivateInternalFTPForwardPossible
ForwardRules_IsActivateInternalHTTPSForwardPossible
ForwardRules_Register
ForwardRules_ToggleInternalFTPForward
ForwardRules_ToggleInternalHTTPSForward
GetATMQoSConfig
GetAddrOfAR7CFG_config
GetAddrOfTR069CFG_config
GetAddrOfVOIPCFG_config
GetCurrentPublicInternetIPAddress
GetDSLIface_dsl_encap
GetDSLIface_vlanencap
GetDSLIface_vlanid
GetDSLIface_vlanprio
GetFirmwareVersion
GetLastMailerStatus
GetVCC_Config
Get_AR7CFG_dslencap_enum
Get_AR7CFG_vlanencap_enum
Igdforwardrules_Register
Inetstat_ForceUpdate
Inetstat_Poll
Inetstat_Register
Interfaces_Register
Interfaces_get_main_ip_config
Interfaces_set_main_ip_config
IsATAMode
IsAutomailEnabled
IsChangedScriptRunning
IsConfigChangePending
IsCountrySupported
IsDHCPNameOfWLANMACMaskDevice
IsIPClientMode
IsLanguageSupported
IsManagedMode
IsOEM
IsRouterMode
IsTransactionOpen
IsUIModule
IsUIUser
LanDevice_Register
Landevices_GetMasquedMACByIP
Landevices_GetNameByIP
Landevices_Update
Landevices_UpdatedDHCPRange
Language_Register
MakeClientDisplayTimestamp
MakeSizedTempString
NQOS_Register
NetApp_Register
NumberOfSupportedCountries
NumberOfSupportedLanguages
Poll_CfgChange
Power_Register
ProhibitVoipdRestart
RemoteMan_CheckForCertificateUpdate
Remoteman_Register
Route_Register
Security_GetAndResetTransactionError
SetATAMode
SetATASubModeRouter
SetATMQoSConfig
SetDSLIface_vlanencap
SetDSLIface_vlanid
SetDSLIface_vlanprio
SetPowerMode
SetTcomProvisioningBit
SetVCC_Config
SetVCC_DSLAutodetect_On
TR064_Exit
TR064_Init
TR064_Reinit
TR064_Resume
TR064_Running
TR064_Suspend
TR069Mapper_CtlmgrTransactionBegin
TR069Mapper_CtlmgrTransactionCommitted
TR069Mapper_CtlmgrTransactionRolledBack
TR069Mapper_IsCreateOrDeleteAllowed
TR069Mapper_IsWriteAccessAllowed
TR069Mapper_NotificationHint
TR069Mapper_ObjectAdded
TR069Mapper_ObjectDeleted
TR069Mapper_ValueChangedNotify
TR069_ACSInitiationEnable
TR069_Debug_Inject_SoapData
TR069_Exit
TR069_GetProvisioningSucceededURL
TR069_GetSerialNumber
TR069_Init
TR069_IsFWUpdate_avail
TR069_IsFullTR069Support
TR069_IsSessionActive
TR069_ReInit
TR069_Resume
TR069_SetConfigByDHCPOption
TR069_SetPPPFallback
TR069_SetSessionNotifier
TR069_Suspend
TR069_TriggerConnection
TR069_WLAN_AddStation_Notify
TR069_device_gateway_assoc
TiMsgProcessorRegister
Time_Register
Tr064_Register
Tr069_And_Tr064_Init
Tr069_Register
TrafficPrio_DeleteIP
TrafficPrio_DeleteRules
TrafficPrio_Register
TrafficPrio_ReloadRules
Transaction_AddModuleToCurrentTransaction
Transaction_Begin
Transaction_Commit
Transaction_Free_ErrorString
Transaction_Rollback
UIM_Access_Delete
UIM_Access_Enter_TR069Context
UIM_Access_Leave_TR069Context
UIM_IsAuthenticated
UMTS_Provider_Register
UMTS_Register
UpdateCheck_Register
UserCfg_GetDirty
UserCfg_SetDirty
UserCfg_UnsetDirty
VCC_SetDSLIface_dsl_encap
VINAX_open_dev
VoIP_GetConfiguredInternetScenario
Wakeup_Register
apply_ctlmgr_all_values
ar7cfg_SetBool
ar7cfg_SetDirty
ar7cfg_SetEnum
ar7cfg_SetIPADDR
ar7cfg_SetInt
ar7cfg_SetMacaddr
ar7cfg_SetShort
ar7cfg_SetString
ar7cfg_SetTimeOffset
ar7cfg_UnsetString
async_reboot
async_setcountry
async_setfactorydefaults
async_setlanguage
ata_led_state
avm_clfy_add_dhcpoptionmatch
avm_clfy_add_head
avm_clfy_add_ip_dport
avm_clfy_add_ip_sport
avm_clfy_add_localmark
avm_clfy_add_packetmatch
avm_clfy_add_tail
avm_clfy_alloc
avm_clfy_checkflag_clone
avm_clfy_clone
avm_clfy_cmp
avm_clfy_del_and_free
avm_clfy_del_and_free_all
avm_clfy_ethersrctab_add
avm_clfy_ethersrctab_del
avm_clfy_ethersrctab_find
avm_clfy_ethersrctab_find_or_create
avm_clfy_ethersrctab_freeall
avm_clfy_ethersrctab_is_in
avm_clfy_ethersrctab_reset
avm_clfy_find_action
avm_clfy_free
avm_clfy_matches
avm_clfy_optim
avm_clfy_parse
avm_clfy_register_action
avm_clfy_set_debugflag
avm_clfy_set_execute
avm_clfy_set_optim
avm_clfy_set_show
avm_clfy_set_walk
avm_clfy_show
box_register
box_restore_saved_ip_config
box_save_ip_config
box_set_BSA_ON
build_dsl_pushmail_file
build_dsl_pushmail_fp
build_dslmailfile
call_module_pollfuncs
call_module_pollfuncs_of_single_so
capiotcp_closefds
change_dslbridge_if_routing_activated
check_chars
clean_all_module_classes
closehandles
concat2
configure_remote_wlan
connection0_register
ctlmgr_closefds
ctlmgr_get_wps
ctlmgr_set_wps
dhcp_cons_options
dhcp_free_options
dhcp_parse_option_buffer
dhcp_parse_options
dphelper_mask2prefixlen
dphelper_prefixlen2mask
enum2str
env_register
eth_register
ethstr2addr
exec_reboot
exec_shellcmd
exec_shellcmd_no_wait
fork_child_without_wait
from_bool_string
from_bool_string_inverted
get_ar7cfg_is_fminiframework
get_ar7cfg_is_nightservice
get_ar7cfg_nightservice_time
get_if_addr
get_linux_high_level_wlan_interfacename
get_linux_low_level_wlan_interfacename
get_macdsl
get_modules_list
get_wlan_hostname_from_landevicelist
increase_signal_of_webserver
infoled_set_reason
inform_webserver
init_httpserver
init_usb2http_proxy
init_webserver
instantiate_module
is_led_existing
is_ui_module
islanbridgemode
key_getParts
key_split
key_tokenize
libfon_set_ontel_lastconnect
libfon_set_ontel_revision
libfon_set_ontel_status
log_dump_continue
log_dump_reverse
log_init
log_msg_handle
logic_init
logic_msg_handle
login_register
macaddr2str
main
manager_init
manager_message
manager_routeHook
message_if_close
message_if_open
message_if_send
module_apply_all
module_get_newly_created
module_reset_newly_created
module_search_for
msg_local
msgm_makeBase
msgm_makeTransApply
msgm_makeTransBase
msgm_makeTransComboError
msgm_makeTransError
msgm_makeTransGroupBegin
msgm_makeTransGroupEnd
msgm_makeTransQuery
msgm_makeTransReject
msgm_makeTransResponse
msgm_makeTransResponseEmpty
msgm_makeTransResponsePair
msgm_makeTransResponseSingle
msgm_makeTransSet
msgm_replyTransResponseSingle
msgm_sendTransApply
msgm_sendTransComboError
msgm_sendTransError
msgm_sendTransGroupBegin
msgm_sendTransGroupEnd
msgm_sendTransQuery
msgm_sendTransReject
msgm_sendTransResponse
msgm_sendTransResponseEmpty
msgm_sendTransResponsePair
msgm_sendTransResponseSingle
msgm_sendTransSet
multidleases_close
multidleases_get_host_by_ip
multidleases_get_leasetime_by_ip
multidleases_get_nextentry
multidleases_open
my_ipaddr2str
non_emulated_message
pbupdstatus2str
poll_webserver
prepare_fds
prettyprint_datetime
prettyprint_octets
prettyprint_permille
print_stats
process_dslmail
process_mailstatistic
process_voipmail
query_dslbridge_if_routing_activated
reconfig_webserver
regevent_delete_queue
regevent_enqueue
regevent_exit
regevent_init
regevent_register
regevent_register_simple
regevent_send
regevent_send_and_delete_queue
regevent_send_unregister
register_all_modules
register_module
reinit_fsproxy
reinit_webserver
reinit_webserver_ssl
remove_all_spaces
reset_retry_trigger
run_setcountry
safe_strcpy
safe_strncpy
sar_GetShowtime
sar_SetATAMode
sar_add_dsl_pushmail
sar_get_carrier_state
sar_get_dslinfo
sar_get_dslinfo2
sar_get_dslinfo2_pushmail
sar_get_dslinfo3
sar_get_dslinfo3_pushmail
sar_get_dslinfo4
sar_get_dslinfo5_pushmail
sar_get_dslinfo6_pushmail
sar_get_total_dslinfo
sar_print_dslinfo
sar_register
sar_supportdata_sent
save_UI_realms
security_config_changed_event
security_register
set_language_for_webserver
show_csock_statistics
signal_pidfile
so_getsym
so_loadobject
stop_fsproxy
stop_webserver
str2enum
str2in6_addr
str2ipaddr
str2macaddr
tcclass_name2value
tcclass_value2str
tcclassset_value2str
terminate_pidfile_forced
terminate_pidfile_forced_and_wait
time_sec
timsgprocessor_do_message
to_bool_string
to_bool_string_inverted
tr069cfg_GetDirty
tr069cfg_SetBool
tr069cfg_SetDirty
tr069cfg_SetInt
tr069cfg_SetString
tr069cfg_SetTimeOffset
tr069cfg_UnsetDirty
udo_key_split
uint2str
updatecheck_doupdate
updatecheck_fminiframework_changed
updatecheck_start
usb_register
usbcfg_SetBool
usbcfg_SetDirty
usbcfg_SetInt
usbcfg_SetString
voipcfgAction_SetBool
voipcfgAction_SetInt
voipcfgAction_SetShort
voipcfgAction_SetString
voipcfg_GetUacfg
voipcfg_SetBool
voipcfg_SetDirty
voipcfg_SetEnum
voipcfg_SetInt
voipcfg_SetShort
voipcfg_SetString
voipcfg_SetTimeOffset
websrv_notify
websrv_receive_hdl
wlan_ethstr2addr
wlan_from_bool_string
wlan_get_ACTION_IGDD_RESTART
wlan_get_ACTION_NOTHING
wlan_get_ACTION_WLAN_RESTART
wlan_get_ACTION_WLAN_RESTART_AND_USB_WLANRELOAD
wlan_get_linux_high_level_wlan_interfacename
wlan_get_linux_low_level_wlan_interfacename
wlan_message_if_send
wlan_multidleases_close
wlan_multidleases_get_host_by_ip
wlan_multidleases_get_nextentry
wlan_multidleases_open
wlan_tr069_notify
wlan_wps_notify
wlancfg_SetBool
wlancfg_SetDirty
wlancfg_SetInt
wlancfg_SetMacaddr
wlancfg_SetString

Abhängigkeiten

Optionale UI-Plugins

Optionale Komponenten

Siehe auch

Webserver: (99)

Überwachung und Einrichtung: (129) - Kleingedrucktes ist laufende Entwicklung.