Ask is moving to Stack Overflow and! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode


SNMP4SDN usage for Topology Discovery

asked 2014-09-07 18:21:42 -0700

saisrikiran gravatar image

I am trying to use SNMP4SDN to discover physical switch using s4sTopoDiscover but I am unable to do so. The reason being I am facing issue updating SwitchDB.txt contains MAC,IP,SNMPCommunity,CLIUsername,CLI_Password. The SNMP Community value is empty for SNMPv2 and SNMPv3 (I believe it is valid for SNMPv1 or SNMPv2C)? Also, the appropriate files for compilation of the plugin and tests are updated and the Jar file copied to the directory.

I tried using an empty string for community and valid Username, Password values but I do not see the Switch discovered either in the OSGi console or ODL GUI. Any ideas what can help to discover the topology for switch already up?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-11 17:30:20 -0700

saisrikiran gravatar image

I was able to do Topology discovery using SNMP4SDN successfully after configuring the Opendaylight controller IP address as the SNMP monitoring server IP address in the Layer2 switch.

On the controller side, I modified the SwitchDB.txt file with the Layer2 MAC address and other details. After this, running commands, s4sReadDB s4sTopoDiscover the switch was discovered and updated in the Opendaylight GUI

edit flag offensive delete publish link more


Can you give more details on how you added the modified SwitchDB.txt to make the controller discover the file. Because when I rum snmp4sdn:ReadDB <filepath>, it throws error that file switchdb.txt not found.

Janki ( 2014-11-11 04:35:03 -0700 )edit

I had a similar problem when connecting through SSH to Karaf, but I run ./karaf from my vm and issue the command, it works fine. Make sure you have the full path as argument.

taha ( 2014-12-17 14:23:50 -0700 )edit

Janki, a sample SwitchDB file can be found here : From what I understood, you have to create a similar file on the computer / VM that hosts the switch. Replace the existing information with yours and then re-execute the command.

Niceplace ( 2015-01-19 13:18:45 -0700 )edit

Thanks Niceplace. I was looking for the syntax of the path to switchdb.txt and found it. Since I am using windows, the path to switchdb.txt file should contain 2 "//".

Janki ( 2015-02-18 03:48:48 -0700 )edit
Login/Signup to Answer

Question Tools



Asked: 2014-09-07 18:21:42 -0700

Seen: 404 times

Last updated: Sep 11 '14