Cov txheej txheem:

Tsab ntawv rau thaub qab Linksys Wireless Access Point Configurations: 5 Cov Kauj Ruam
Tsab ntawv rau thaub qab Linksys Wireless Access Point Configurations: 5 Cov Kauj Ruam

Video: Tsab ntawv rau thaub qab Linksys Wireless Access Point Configurations: 5 Cov Kauj Ruam

Video: Tsab ntawv rau thaub qab Linksys Wireless Access Point Configurations: 5 Cov Kauj Ruam
Video: txhob ua kuv kub 100.Tub Huas Xyooj MV2023 2024, Kaum ib hlis
Anonim
Tsab ntawv rau thaub qab Linksys Wireless Access Point Configurations
Tsab ntawv rau thaub qab Linksys Wireless Access Point Configurations

Cov lus qhia no yuav qhia ib tsab ntawv uas tuaj yeem siv rau kev siv lub thaub qab ntawm linksys wireless nkag mus teeb tsa teeb tsa. Qhov tseeb qhov no tuaj yeem kho tau yooj yim rau thaub qab yuav luag txhua lub cuab yeej txuas.

Kauj ruam 1: Yuav tsum tau ua

Yuav tsum muaj
Yuav tsum muaj

Kuv yuav xav tias koj muaj linux lossis os x system ntawm koj qhov pov tseg. Txawm hais tias cygwin yuav ua haujlwm zoo.

Kauj ruam 2: Variables

Ntau yam
Ntau yam

Cia xub teeb tsa qee qhov hloov pauv. Kho txhua yam no kom haum koj ib puag ncig. #!/bin/bash#Joe McManus#thaub qab txuas rau firewall#teeb tsa qee qhov sib txawv hostname=wrt54g.foo.bar.combasedir=/data/[email protected]

Kauj ruam 3: Tau Config

Tau Config
Tau Config

Qhov me ntsis no siv wget txhawm rau rub tawm qhov teeb tsa thiab txuag ua hostname-date.config.bin#Tau txais kev teeb tsa thiab txuag ua hostname-date.config.binwget https://$hostname/Config.bin --user = $ pass- lo lus zais = $ hla-tsis-kos-ntawv pov thawj -O $ basedir/$ hostname-`hnub +%Y-%m-%d`.config.bin

Kauj Ruam 4: Txheeb Xyuas seb Nws Ua Haujlwm Li Cas

Txheeb Xyuas Yog Nws Ua Haujlwm
Txheeb Xyuas Yog Nws Ua Haujlwm

Tam sim no peb tshawb xyuas seb nws puas ua haujlwm, xa email yog tias tsis yog. #xyuas seb nws puas ua haujlwm [$? ! = 0] tom qab ntawd ncha "Yuam kev: Thaub qab ua tsis tiav" mail -s "Yuam kev: Thaub qab ntawm $ hostname ua tsis tiav ntawm` date` "$ mailto </dev/nullfi

Kauj Ruam 5: Muab tag nrho ua ke

Muab Tso Ua Ke
Muab Tso Ua Ke

Muab nws tso ua ke thiab khiav nws. Yog tias nws ua haujlwm ntxiv nws rau crontab. Cov ntawv sau tau txuas nrog. #Joe McManus#thaub qab txuas rau firewall#teeb tsa qee qhov kev hloov pauv hostname=wrt54g.foo.bar.combasedir=/data/[email protected]# Tau txais kev teeb tsa thiab txuag ua hostname-date.config.binwget https://$hostname/Config.bin --user = $ pass --password = $ pass -no-check-certificate -O $ basedir/$ hostname-`date +%Y-%m-%d`. config.bin#xyuas seb nws puas ua haujlwm [$? ! = 0] tom qab ntawd ncha "Yuam kev: Thaub qab ua tsis tiav" mail -s "Yuam kev: Thaub qab ntawm $ hostname ua tsis tiav ntawm` date` "$ mailto </dev/nullfi

Pom zoo: