NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Jan_de_Vries
Mar 09, 2020Follower
M4200 get status information via python
Hi All, I know there are many ways to retrieve status information from the (M4200) switch. These work fine, but are very "manual". What I really like to achieve is to get some basic status inform...
msi
Mar 10, 2020Luminary
Serial console won't scale and is likely even less reliably than parsing the CLI using i.e. as you mentioned netmiko.
I can only imagine SNMP being the best route to success. Yes OID searching is not a lot of fun. Best is to get the MIBs matching the firmware you are currently running on the M4200, then do a SNMP walk with net-snmp while loading all MIBs from Netgear as well. Depending on your environment this is sometimes different. Debian for example doesn't ship public MIBs due to licensing concerns but are easily downloaded.
Most relevant parts should be found in the private OID, usually there are MIBs with box-something in them like boxservices.my in many managed switches. This one for example usually reveals the OIDs for things like fans and power supplies for example. It is going to be helpful to learn how to convert from an MIB to an OID using i.e. Net-SNMP (you can google that command)
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!