For the switch name you can use sysName or 18.104.22.168.22.214.171.124.
For the MAC address of the port, you will want to use the BRIDGE-MIB and the dot1dTpFdbTable. Ports with a dot1dTpFdbStatus of self(4) are actually the MAC of the switchport itself.
Byte counts can be obtained using ifInOctets and ifOutOctets (or better yet, ifHCInOctets and ifHCOutOctets). The In counters will tell you bytes sent from the attached host, and the Out counters will tell you bytes sent to the attached host.
sysUpTime will tell you how long the switch has been online. This object is of type Timeticks which is in 1/100s of a second. You will need to work backwards to obtain the date at which it was rebooted.
The current time of the switch is not available via SNMP.
Thank you, you were very helpful. Forgive my ignorance but MAC address part is still unclear for me. Given VLAN OID of the port (e.g. 126.96.36.199.188.8.131.52.184.108.40.206.1.2.101) how can I obtain its MAC address? For in/out byte count it seems to be easy because I can see corresponding OIDs so I believe that VLAN OID 220.127.116.11.18.104.22.168.22.214.171.124.1.2.101 corresponds to ifIn counter 126.96.36.199.188.8.131.52.1.10.101 (ifInOctets.10101) OID. Or is my observation flawed and I'm not guaranteed such a correspondence exists? However with MAC address I don't see any corresponding OIDs at all. Is it actually possible to retrieve MAC address of the port given its VLAN OID? If yes how can I get it? If no what should I actually be given as an query input and how to use it to retrieve MAC address? (I'm using snmpget/snmpwalk and SNMP4J for data retrieval)
This is not possible. The MAC addresses of ports are indexed by the dot1dBasePort and not ifIndex (like the Octet objects). To map those MACs back to an ifIndex, you need to use dot1dBasePortIfIndex. This tech tip will give you more information. It talks about finding MAC addresses attached to switch ports, but the same principle applies to finding the MAC addresses of switch ports.
We are pleased to announce availability of Beta software for 16.6.3. 16.6.3 will be the second rebuild on the 16.6 release train targeted towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are looking for early feedback from custome...