13.5. Writing Values with SNMP
As well as reading information from an agent, SNMP can be used to set the values of objects on a remote system. Let's pick an object that is defined to have read-write access and experiment with it a little.
13.5.1. Setting sysContact
Look through the MIB defining the system group in MIB-2. Remember that when we accessed the system group, the resulting display contained lines that looked like this:
SNMPv2-MIB::sysContact.0 = STRING: email@example.com SNMPv2-MIB::sysName.0 = STRING: localhost.localdomain SNMPv2-MIB::sysLocation.0 = STRING: "the den"
See the SNMPV2-MIB at the start of each line? That indicates that these objects are defined in the file SNMPv2-MIB.txt. If you look at the definitions of these objects in that ...