====== USG : Les commandes SSH ====== 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 attempt inform URL (e.g. set-inform http://192.168.0.8:8080/inform) upgrade upgrade firmware (e.g. upgrade http://192.168.0.8/unifi_fw.bin) fwupdate --url [--dl-only] [--md5sum ] [--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 '' : attempt inform URL (e.g. set-inform http://192.168.0.8:8080/inform) ''upgrade '' : upgrade firmware (e.g. upgrade http://192.168.0.8/unifi_fw.bin) ''fwupdate --url [--dl-only] [--md5sum ] [--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 ''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]]