I am trying to determine if a cisco device is a router or a switch. For example, 3500 series. I have tried looking at the sysservices but the values returned show layer 2 and layer 3:
SNMPv2-MIB::sysServices.0 = INTEGER: 6
According to Cisco
sysServices
1 physical (e.g., repeaters) 2 datalink/subnetwork (e.g., bridges) 3 internet (e.g., supports the IP) 4 end-to-end (e.g., supports the TCP) 7 applications (e.g., supports the SMTP)"Since the value is a 6 this is 2+4 or switch+routing.
I was thinking if I checked IP-MIB::ipForwarding.0 = INTEGER: notForwarding(2)
that would be my sanity check against it. If a device is capable of being either a switch or a router then if ipforwarding is not enabled it should be a switch. But is this universal behavior on cisco devices?
thanks