docs:tips_n_tricks:md_90400
This is an old revision of the document!
Table of Contents
MD 40900
Add wireless MAC to allow access list
password=<router password> mac=<mac to add> router=<router ip or dns name> wget --http-user bla \ --http-password "${password}" \ --post-data 'i1_3_6_1_4_1_937_3_1_3_2_2_1_4_*=5&m1_3_6_1_4_1_937_3_1_3_2_2_1_2_*='"${mac}"'&i1_3_6_1_4_1_937_3_1_3_2_2_1_3_*=1&i1_3_6_1_4_1_937_3_1_3_2_2_1_4_*=1' \ 'http://'"${router}"'/cgi-bin/setobject?/lib/popup/close_window.shtml'
Get public IP by SNMP
router=<router ip or dns name> public_ip="`snmptable -c public -v 2c -CH "${router}" .1.3.6.1.2.1.4.20 \ | awk ' $2 == 7 {print $1}'`"
docs/tips_n_tricks/md_90400.1292524889.txt.gz · Last modified: 16.12.2010 19:41 CET by peter