Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
matos:unifi:usage:usg_ssh [16/05/2019 17:25] thierry créée |
matos:unifi:usage:usg_ssh [11/01/2021 18:40] (Version actuelle) thierry [Sources et Ressources] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Les commandes SSH sur un USG d'UNIFI ====== | + | ====== USG : Les commandes SSH ====== |
+ | La commande help nous dit ceci : | ||
+ | <code> | ||
+ | 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 | ||
+ | |||
+ | </code> | ||
+ | ''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 | ||
+ | |||
+ | ''show'' : [[matos:unifi:usage:usg_ssh#Commande Show|plus d'infos sur la commande Show]] | ||
+ | |||
+ | ===== Commande Show ===== | ||
+ | * ''show''... | ||
+ | * ''show arp'' -> Table ARP | ||
+ | * ''show hardware''... | ||
+ | * ''show hardware cpu'' -> Infos CPU | ||
+ | * ''show hardware fan'' -> Infos ventilo (si supporté) | ||
+ | * ''show hardware mem'' -> Infos mémoire | ||
+ | * ''show hardware power'' -> Infos consommation energie (si supporté) | ||
+ | * ''show hardware temperature'' -> Infos sur les temperatures (si supporté, non supporté par [[matos:unifi:gamme:usg|USG]]) | ||
+ | * ''show ntp'' -> infos sur les serveurs de temps. | ||
+ | * ''show ubnt''... | ||
+ | * ''show ubnt discover'' -> Scan le reseau a la recherche de devices Ubnt | ||
+ | * ''show 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 | ||
+ | |||
+ | ===== Sources et Ressources ===== | ||
+ | * [[https://help.ui.com/hc/en-us/articles/218850057-Intro-to-Networking-How-to-Establish-a-Connection-Using-SSH|How to Establish a Connection Using SSH]] | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||