ARP Table via SNMP
-
Hi there,
I read some posts about getting the arp table of the pfsense via SNMP. I am not able to get it?!
I have enable all snmp modules; SNMP ist working:root@daffy:~# snmpwalk 172.27.0.1 -c public -v2c |head
SNMPv2-MIB::sysDescr.0 = STRING: "ipdrouter.ipdynamics.local 1345880010 FreeBSD 8.1-RELEASE-p6"
SNMPv2-MIB::sysObjectID.0 = OID: BEGEMOT-MIB::begemot.1.2.1.1
EXPRESSION-MIB::sysUpTimeInstance = Timeticks: (1303876) 3:37:18.76
….But no arp table:
root@daffy:~# snmpwalk 172.27.0.1 -c public -v2c ipNetToMediaPhysAddress
RFC1213-MIB::ipNetToMediaPhysAddress = No Such Instance currently exists at this OID
root@daffy:~# snmpwalk 172.27.0.1 -c public -v2c ipNetToPhysicalPhysAddress
IP-MIB::ipNetToPhysicalPhysAddress = No Such Object available on this agent at this OID
root@daffy:~# snmpwalk 172.27.0.1 -c public -v2c ipNetToPhysicalTable
IP-MIB::ipNetToPhysicalTable = No Such Object available on this agent at this OID
root@daffy:~#Any suggestions?
Thanks
Torsten -
Same here, apparently it was working around 1.2:
http://forum.pfsense.org/index.php?topic=12795.0
Would be great if it came back :)
If I may suggest an improvement with regards to IPv6, ipNetToPhysicalPhysAddress (1.3.6.1.2.1.4.35.1.4) table might be a nice new home for it.
What can be observed on other networking devices (e.g. switches), that the old ipNetToMediaPhysAddress (1.3.6.1.2.1.4.22.1.2) is kept and ipv6NetToMediaPhysAddress (1.3.6.1.2.1.55.1.12.1.2) is added for ND entries…
-
I had given up on getting ARP tables from pfSense too, I didn't know it was not working and thought it was me. Would definitely like to see it working.
-
Since the SNMP data was requested by an external webserver, it is also possible to get some webpage info through this php webserver.
Created to following script on pfSense /usr/local/www/arp.php
$dhcpFile = shell_exec('arp -na'); echo $dhcpFile . "\n" ; ?>E.g. https://pfsenseAddress/arp.php o wget https://pfsenseAddress/arp.php -O arp_table
-
Just tested 2.2.3-RELEASE and it's back again, yieih!!!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy