views:

22

answers:

0

On the turtorials of cisco information from switches are retrieved by using as public@VLANID as the community string. So that one can retrieve inforamtion specifically for a certain vlan. I am making a java program to retrieve information, and I would prefer avoiding reconnecting to the switch several times. Hence I would want to avoid using @VLANID, and just use the normal "public" string to retrieve information. The information I want is:

  • Device name+model
  • ports (name, status, ...)
  • VLAN settings for switch and each port
  • If possible, also some identification of machines connected on ports

And there are mibs that allow me to get information the "normal"(without @ID) way. And well... I tried to do it the "normal" way. And I seem to be geting some resaults that I consider being wrong. As an example, the switch tells me there are only two "DynamicForwardingEntries". Another example: there are no port number 1 or 9 (Bridge mib "dot1dBasePortIfIndex / dot1dBasePort"). But there is an interface 1 and 2 (IF MIB ifIndex / ifName).

The reason I can't test it with the @ID is because I don't have access to a real switch, only a dump right now. But prehaps correct inforamtion would be extracted using @ID ?

/Mikael