User`s manual

RNAS-1200 Series Modify Network Settings
6-11
Scenario A: Acquire and Commit RNAS Settings
Acquiring and committing RNAS settings is a two step process: loading a setting into memory using snmpset
+ the
rnas1200Setting resource identifier OID, and then committing that setting using snmpset with the
rnas1200Commit resource identifier OID.
Step 1: Use the
snmpset command to import items which you want to configure. Please note: to import more
than one item, use multiple commands. Imported settings will be stored in RAM for up to 15 minutes. If the
imported settings are not committed to the database within 15 minutes, they will be purged from memory.
#snmpset –v [SNMP_VERSION] –c [RW_COMMUNITY] [IP_ADDRESS] [rnas1200Setting OID]
[DATA_TYPE] [RESOURCE_NAME=RESOURCE_VALUE]
root@tmp# snmpset v 2c c admin 192.168.27.231 1.3.6.1.4.1.8691.12.1200.1.1.0 / s
“systemResources.hostname.1=MOXARNAS”
Step 2: Commit all the items you have just imported. Please note that you may use multiple commands to
import more than one item. By toggling the OID data string to 1 (….
s “1”), all imported items may be
committed to the database in a single operation.
#snmpset –v [SNMP_VERSION] –c [RW_COMMUNITY] [IP_ADDRESS] [rnas1200Commit OID]
[DATA_TYPE] [TOGGLE]
root@tmp# snmpset v 2c c admin 192.168.27.231 1.3.6.1.4.1.8691.12.1200.1.2.0 / s
“1”
Scenario B: Retrieve System Information
Retrieving system information consists of two parts: loading the information into system memory using
snmpset + rnas1200Query resource indentifier OID, and displaying that information using snmpget +
rnas1200Query
resource indentifier OID.
Step 1: Use
snmpset to select the item which you want to query. This command will only load the resource
value into memory; to display it, you must use the
snmpget command, below. Only one resource may be
stored in RAM at any given time. If multiple resources are called in sequence, only the last resource called will
be available for display using
snmpget (see step 2, below).
#snmpset –v [SNMP_VERSION] –c [RW_COMMUNITY] [IP_ADDRESS] [OID] [DATA_TYPE] [RESOURCE]
root@tmp# snmpset v 2c c admin 192.168.27.231 1.3.6.1.4.1.8691.12.1200.1.3.0 / s
“systemResources.hostname.1”
Step 2: Use snmpget to return the value of the object you have selected. This operation will only return the
value most recently acquired by the query operation just above, in step 1. If no resource has been acquired, yet,
the command will return null.
#snmpget –v [SNMP_VERSION] –c [RW_COMMUNITY] [OID]
root@tmp# snmpget –v 2c –c admin 192.168.27.231 1.3.6.1.4.1.8691.12.1200.1.3.0