Συνδεω 2 pc με ethernet που τρεχουν το ιδιο λειουργικο (της υπογραφης) και το lldpd. Θελω να παρω πληροφορια μονο απο το λαπτοπ μου τοπικα και εχω
1. Install lldpd(running lldpctl in terminal shows the neighbors succesfully)
2. Install snmp & snmpd & install snmp-mibs-downloader (the non-free MIBS)
3. Download LLDP MIB and dot1, dot3 from here
http://www.ieee802.org/1/files/public/MIBs/and put them in my MIB folder located with net-snmp-config –default-mibdirs (for me usr/share/mibs)
4. Comment the line “export MIBS=” in etc/default/snmpd (δηλαδη #export MIBS)
5. Comment the line “mibs :” in etc/snmp/snmp.conf
6. Add the line “rocommunity public 127.0.0.1” (my localhost) in etc/snmp/snmpd.conf
7. Run lldpd -x (to enable the subagent)
8. Run “snmptranslate -m +LLDP-MIB -IR -On lldpRemoteSystemsData” and get
.1.0.8802.1.1.2.1.4 which is the OID I want to query with snmp
9. Run “snmpwalk -m +LLDP-MIB -v 2c -c public 127.0.0.1 lldpRemoteSystemsData ” or
“ snmpwalk -m +LLDP-MIB -v 2c -c public 127.0.0.1 .1.0.8802.1.1.2.1.4 ” and constantly get: LLDP-MIB::lldpRemoteSystemsData = No Such Object available on this agent at this OID.