IP Address via SNMP
#1
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
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
#2
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]
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]
#3
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
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
#4
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
Shhhhhhhhh, low flying will be wicked . If I trust you I might let you land it
Thread
Thread Starter
Forum
Replies
Last Post
oilman
Trader Announcements
15
01 October 2015 11:55 AM
EvilBevel
ScoobyNet General
2
01 December 2000 10:11 AM