[plug] Determining ip address

Ryan ryan at is.as.geeky.as
Wed Dec 17 14:05:50 WST 2003


On Wed, 2003-12-17 at 13:53, Brad Campbell wrote:
> G'day all,
> 
> I'm behind a Lucent Cellpipe 20A pppoa gateway up here, I need an easy, 
> scriptable way to determine my external ip address (It changes at random 
> intervals from 2 hours to 48 hours).
> 
> I'm obviously suffering from brainfade, but there must be an easy way to 
> do this and google is not helping me at the moment.

Does the device or its connected PC have any SNMP support?  If so you
can possibly obtain interface information, I used to obtain similar
information for a similar purpose this way.  Either a Perl script using
the SNMP libraries or just simply snmpwalk etc.

Ryan




More information about the plug mailing list