Comandi Telnet sull'AGPF (OpenRG)

  • 2 Risposte
  • 3678 Visite

0 Utenti e 1 Visitatore stanno visualizzando questo topic.

Offline toretto_5

  • Esperto
  • ****
  • 1226
  • Sesso: Maschio
Comandi Telnet sull'AGPF (OpenRG)
« il: 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
« Ultima modifica: 25 Febbraio 2016, 16:54 da Miguel89 »

Offline Miguel89

  • Ex-Staff
  • VIP
  • *****
  • 5047
  • Sesso: Maschio
Re:Comandi Telnet sull'AGPF (OpenRG)
« Risposta #1 il: 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

Offline mavelot

  • Administrator
  • Esperto
  • *****
  • 1705
  • Live Long and Prosper
Re:Comandi Telnet sull'AGPF (OpenRG)
« Risposta #2 il: 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