User Tools

Site Tools


docs:tips_n_tricks:md_90400

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
docs:tips_n_tricks:md_90400 [16.12.2010 19:46 CET] peterdocs:tips_n_tricks:md_90400 [16.12.2010 19:47 CET] peter
Line 13: Line 13:
  
 ===== Get public IP by SNMP ===== ===== Get public IP by SNMP =====
 +This scriptlet allows you to get your public IP when using a //MD 90400 Wireless Lan Set// for DSL uplink:
  
   router=<router ip or dns name>   router=<router ip or dns name>
   public_ip="`snmptable -c public -v 2c -CH "${router}" .1.3.6.1.2.1.4.20 \   public_ip="`snmptable -c public -v 2c -CH "${router}" .1.3.6.1.2.1.4.20 \
                                  | awk ' $2 == 7 {print $1}'`"                                  | awk ' $2 == 7 {print $1}'`"
docs/tips_n_tricks/md_90400.txt · Last modified: 17.12.2010 01:10 CET by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki