IlPuntoTecnico

Hardware e Software => Connessioni ADSL/VDSL/FTTC => Topic aperto da: toretto_5 - 25 Febbraio 2016, 16:13

Titolo: Comandi Telnet sull'AGPF (OpenRG)
Inserito da: toretto_5 - 25 Febbraio 2016, 16:13
Salve a tutti. Qualcuno sa indicarmi i comandi telnet per vedere il file di configurazione direttamente da telnet?? Vi spiego meglio: ho un agpf inserendo da seriale il comando help mi esce la seguente lista:
Codice: [Seleziona]
help
Error: help should be called with at least 1 argument
help   Show help for commands within this menu

Usage:
        help all - show all available commands in the current level
        help [category]... <category> - show commands in a certain category
        help [category]... <command> - show detailed help for a specific command
        help -s <string> - search for categories/commands containing the string

Availble help Categories
help conf - show help about Read and write Discus configuration data
help 802.1x - show help about 802.1x Port based authntication commands
help misc - show help about API for Discus miscellaneous tasks
help firmware_update - show help about Firmware update commands
help log - show help about Contorols Discus logging behaviour
help dev - show help about Device related commands
help kernel - show help about Kernel related commands
help system - show help about Commands to control Discus execution
help flash - show help about Flash and loader related commands
help net - show help about Network related commands
help cmd - show help about Commands related to the Command module
digitando conf mi compaiono altri comandi:
Codice: [Seleziona]
conf> help
Error: help should be called with at least 1 argument
help   Show help for commands within this menu

Usage:
        help all - show all available commands in the current level
        help [category]... <category> - show commands in a certain category
        help [category]... <command> - show detailed help for a specific command
        help -s <string> - search for categories/commands containing the string

Availble help Categories
help factory - show help about Factory related commands
help conf - show help about Read and write Discus configuration data

Returned -1
conf>

questo è l'HELP di conf
Codice: [Seleziona]
conf> help conf

Command Category conf - Read and write Discus configuration data
print            Print Discus configuration
set              Set Discus configuration path to value
set_obscure      Set Discus configuration path to an obscured value
del              Delete subtree from Discus configuration
ram_set          Set Discus dynamic configuration
ram_print        Print Discus dynamic configuration
reconf           Reconfigure the system according to the current Discus
                 configuration
show_wifi_data   Show WiFi Data, SSID, WEP KEY and WPA Key
exit             Exit sub menu
help             Show help for commands within this menu

Returned 0
conf>

se digito:
print discus.conf mi dice:
Codice: [Seleziona]
conf> print discus.conf
Returned 0
conf>

ora per guardare il discus.conf da telnet come devo scrivere?
ringrazio chi parteciperà alla DISCUSsione
Titolo: Re:Comandi Telnet sull'AGPF (OpenRG)
Inserito da: Miguel89 - 25 Febbraio 2016, 16:59
Dopo essere entrato nel menu "conf", se non sbaglio devi dare il comando
Codice: [Seleziona]
print /e dovrebbe restituirti tutto il contenuto della configurazione
Titolo: Re:Comandi Telnet sull'AGPF (OpenRG)
Inserito da: mavelot - 25 Febbraio 2016, 19:15
Corretto.

se ti interessa solo una porzione del file devi dare il path completo, per esempio con

Codice: [Seleziona]
print /admin
stampi solo la sezione admin