Learning Python Network Programming

(Sean Pound) #1

Interacting with Remote Systems


After running the preceding example, an output similar to the following will appear:


$ python 5_4_snmp_read.py


SNMPv2-MIB::sysDescr."0" = Linux debian6box 2.6.32-5-686 #1 SMP Tue
May 13 16:33:32 UTC 2014 i686


Inspecting SNMP packets


We can inspect the SNMP packet by capturing the packets on port 161 of
your network interface. If the server is running locally, then listening on the
loopbook interface is sufficient. The snmp-get request format and the snmp-get
response packet formats, which are produced by Wireshak, is shown in the
following screenshot:

Free download pdf