Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

IP Address via SNMP

Thread Tools
 
Search this Thread
 
Old 20 August 2002, 07:33 PM
  #1  
dsmith
Scooby Regular
Thread Starter
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

Right trying to get the IP address of my local Cisco via SNMP. (the PPP Dialer Interface - I know the LAN Interface )

Now I can find all sorts of **** about the interface stats but I cant find an oid to give me the IP address from the if index

The only oid I have found is ip.ipAddrTable.ipAddrEntry - but to use it you need to know the IP address already e.g.


[root@athena root]# snmpget 172.27.1.253 xxxx ip.ipAddrTable.ipAddrEntry.1.172.27.1.253

ip.ipAddrTable.ipAddrEntry.ipAdEntAddr.172.27.1.25 3 = IpAddress: 172.27.1.253

[root@athena root]#

So how do I find it if I don't know it already ???

Deano
Old 20 August 2002, 07:43 PM
  #2  
roadrunner
Scooby Regular
 
roadrunner's Avatar
 
Join Date: May 2001
Posts: 730
Likes: 0
Received 0 Likes on 0 Posts
Thumbs up

Deano - long time I have really played with routers but on Nortel's you used to be able to perform wildcard (*) searches within the mibs.

No need to thank me, I know you already look up to me

Buy an ADSL router for a dollar

[Edited by roadrunner - 8/20/2002 7:43:59 PM]
Old 20 August 2002, 07:51 PM
  #3  
dsmith
Scooby Regular
Thread Starter
 
dsmith's Avatar
 
Join Date: Mar 1999
Posts: 4,518
Likes: 0
Received 0 Likes on 0 Posts
Post

Right found a way via snmpgetnext - be intrigued to know of any other more direct ways though.

snmpgetnext 172.27.1.253 xxxx ip.ipAddrTable.ipAddrEntry.1
ip.ipAddrTable.ipAddrEntry.ipAdEntAddr.10.1.2.30 = IpAddress: 10.1.2.30

[root@athena root]# snmpgetnext 172.27.1.253 xxxx ip.ipAddrTable.ipAddrEntry.1.10.1.2.30
ip.ipAddrTable.ipAddrEntry.ipAdEntAddr.172.27.1.25 3 = IpAddress: 172.27.1.253

[root@athena root]# snmpgetnext 172.27.1.253 xxxx ip.ipAddrTable.ipAddrEntry.1.172.27.1.253
ip.ipAddrTable.ipAddrEntry.ipAdEntAddr.213.121.16. 213 = IpAddress: 213.121.16.213

[root@athena root]#

bingo.

RR - I keep trying to flog your routers I promise - everyone keeps pleading poverty - and I look up to anyone who'll take me flying (msn not working ? )

Deano
Old 20 August 2002, 07:55 PM
  #4  
roadrunner
Scooby Regular
 
roadrunner's Avatar
 
Join Date: May 2001
Posts: 730
Likes: 0
Received 0 Likes on 0 Posts
Talking

You know, I used to be the mib master on Nortel stuff. Those was the good old days. A'lass my technical skills are no longer what they used to be

Shhhhhhhhh, low flying will be wicked . If I trust you I might let you land it
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
oilman
Trader Announcements
15
01 October 2015 11:55 AM
oilman
Trader Announcements
0
23 September 2015 12:35 PM
EvilBevel
ScoobyNet General
2
01 December 2000 10:11 AM
Chip
ScoobyNet General
6
24 April 2000 01:31 PM



Quick Reply: IP Address via SNMP



All times are GMT +1. The time now is 04:34 AM.