13.4. Exploring with SNMP

Now let's turn our attention to the client side. The commands snmpget, snmpwalk, and snmpset are all SNMP client commands, or SNMP management applications, in SNMP-speak. SNMP uses the term manager or management application for the client side and agent for the server side. The agent serves up the data on the appliance, and the SNMP manager is the client requesting the appliance's information. You won't need to be logged in as root to use these client commands.

Let's use snmpget to test our agent install.

$ snmpget -v2c -c public localhost sysLocation.0
SNMPv2-MIB::sysLocation.0 = STRING: "my den"[3]
$

You've told snmpget to use SNMPv2c (community-based[12] SNMP version 2) and the community string public to send a query ...

Get Linux Appliance Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.