Reputation: 576
I'm grabbing SNMP values for some Ricoh printers, but they have different names for their trays. I want to use snmpset
to make the names the same, but I don't seem to be able to.
C:\Users\Emilio>snmpget -v1 -c admin xxx.xx.xxx.xxx .1.3.6.1.2.1.43.8.2.1.13.1.1
SNMPv2-SMI::mib-2.43.8.2.1.13.1.1 = STRING: "Tray 1"
C:\Users\Emilio>snmpset -v1 -c admin xxx.xx.xxx.xxx .1.3.6.1.2.1.43.8.2.1.13.1.1 s "test"
Error in packet.
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: SNMPv2-SMI::mib-2.43.8.2.1.13.1.1
The admin community is set to read/write. I'm not sure if some SNMP values can't be set or not, but I haven't figured out a way to tell.
I also tried using 'x' as the variable, and it runs without giving me an error, but it also doesn't seem to actually set anything.
C:\Users\Emilio>snmpset -v1 -c admin xxx.xx.xxx.xxx .1.3.6.1.2.1.43.8.2.1.13.1.1 x "test"
.1.3.6.1.2.1.43.8.2.1.13.1.1: (test)
C:\Users\Emilio>snmpget -v1 -c admin xxx.xx.xxx.xxx .1.3.6.1.2.1.43.8.2.1.13.1.1
SNMPv2-SMI::mib-2.43.8.2.1.13.1.1 = STRING: "Tray 1"
Can this snmp value be set? Or is it locked somehow?
Upvotes: 0
Views: 2562
Reputation: 385295
Typically, you would look at the MIB to find out what each object means. I'm going to assume that you're looking at prtInputName
, a column in a table with two indexes (that's your 1.1
).
Clearly this table cell exists, because your Get succeeds. And the MIB says it's readWrite
. The fact that your Set gives you a noSuchName then a success just by changing the type suggests that the Ricoh device's SNMP agent isn't terribly compliant to SNMP (and/or has a bug), though unfortunately that's not wildly unusual.
Either way it seems clear from your results that, for whatever reason, this field is not writeable on that device, or the community string you're using does not provide sufficient access to change it.
For further information on how to use the device's SNMP interface you should ask the vendor.
I wouldn't hold my breath, though: what's the point in naming a tray if all the names can be the same? It seems highly likely to me that these names are built-in and cannot be altered, even if the MIB provides for more lenient devices. This should be a good thing, so if it's confusing your program then you may wish to re-architect it.
Upvotes: 0