It's a hack, but this gets the job done:
snmpwalk m10 public ip.ipAddrTable.ipAddrEntry.ipAdEntAddr \
| tail -1 | awk '{print $4}'
HTH,
Glenn
On Mon, 19 Jul 1999, Kit wrote:
> Hi Harold
> Thanks - I was afraid that that might be the case. I can get next
> to walk through what is probably the lot but all the lines that contain
> the external IP seem to have it on the LHS of the equals
>
> The thing is I thought I'd give mrtg a go nice graphical display of the
> traffic through the interfaces on the m10. Only the configure file is
> not yet right. But it does give the IP address of the external interface
> mind you it also gives the domain name supplied by a reverse lookup to
> XTRA so it may well be doing the ping first
>
> --kit
>
> On Mon, Jul 19, 1999 at 09:17:42PM +1200, Harold Jarvie wrote:
> >
> > Its been a long time but I don't recall SNMP being able to do discovery.
> > It was ICMP pings for addresses and then SNMP to see what else was
> > available.
> >
> > > > Can anyone point me in the right direction to turn
> > > > $ snmpget m10 public
> > > > ip.ipAddrTable.ipAddrEntry.ipAdEntIfIndex.210.55.116.54
> > > > ip.ipAddrTable.ipAddrEntry.ipAdEntIfIndex.210.55.116.54 = 1 $ into
> > > > something I can use to get the IP address?
> >
> >
> >
> > ________________________________________
> > Harold Jarvie
> > Wellington
> > New Zealand
> > hjarvie@bigfoot.com
> > http://bigfoot.com/~hjarvie
> > ________________________________________
> >
> > To unsubscribe: send mail to majordomo@freebsddiary.cx
> > with "unsubscribe adsl" in the body of the message
>
> To unsubscribe: send mail to majordomo@freebsddiary.cx
> with "unsubscribe adsl" in the body of the message
>
To unsubscribe: send mail to majordomo@freebsddiary.cx
with "unsubscribe adsl" in the body of the message
Received on Tue Jul 20 07:46:32 1999