Ceci est une ancienne révision du document !
Les commandes SSH sur un USG d'UNIFI
La commande help nous dit ceci :
thierrylinfo@Routeur:~$ help UniFi Command Line Interface - Ubiquiti Networks info display device information set-default restore to factory default set-inform <inform_url> attempt inform URL (e.g. set-inform http://192.168.0.8:8080/inform) upgrade <firmware_url> upgrade firmware (e.g. upgrade http://192.168.0.8/unifi_fw.bin) fwupdate --url <firmware_url|firmware_name> [--dl-only] [--md5sum <sum_of_fw>] [--keep-firmware] [--keep-running] [--reboot-sys] new firmware update command reboot reboot the device
curl
:
dpkg
:
info
: display device information
set-default
: restore to factory default
set-inform <inform_url>
: attempt inform URL (e.g. set-inform http://192.168.0.8:8080/inform)
upgrade <firmware_url>
: upgrade firmware (e.g. upgrade http://192.168.0.8/unifi_fw.bin)
fwupdate –url <firmware_url|firmware_name> [–dl-only] [–md5sum <sum_of_fw>] [–keep-firmware] [–keep-running] [–reboot-sys]
: new firmware update command
reboot
: reboot the device
sudo su
: Passe en Super User.
host google.com
: Info sur l'adresse <google.com>
ping 192.168.1.15
: ping…
whois
: whois de linux
Commande Show
show
…show arp
→ Table ARPshow hardware
…show hardware cpu
→ Infos CPUshow hardware fan
→ Infos ventilo (si supporté)show hardware mem
→ Infos mémoireshow hardware power
→ Infos consommation energie (si supporté)show hardware temperature
→ Infos sur les temperatures (si supporté, non supporté par USG)
show ntp
→ infos sur les serveurs de temps.show ubnt
…show ubnt discover
→ Scan le reseau a la recherche de devices Ubntshow ubnt offload
- bridge
show history
→ Historique des commandes shell.show openvpn
…show openvpn status
…show openvpn status client
show openvpn status server
show openvpn status site-to-site
- update
- configuration
- host
- pppoe-client
- upnp2
- conntrack
- incoming
- pppoe-server
- users
- date
- interfaces
- queueing
- version
- debugging
- ip
- reboot
- vpn
- dhcp
- ipv6
- route-map
- vrrp
- dhcpv6
- lldp
- shutdown
- webproxy
- dhcpv6-pd
- load-balance
- snmp
- zebra
- dns
- log
- system
- firewall
- login
- table
- flow-accounting
- nat
show tech-support
→ genere le fichier pour le support technique
Vous pourriez laisser un commentaire si vous étiez connecté.