Download SunNet Manager 2.2.3 Programmer`s Guide
Transcript
4 specific. Each agent’s documentation will describe what attributes inside a table it uses for keys, and the method for selecting them. Again, keys mean nothing to the manager, so anything is fair game here. Note – If your application will be using the netmgt_kill_request2(3n) function, you need to call netmgt_set_manager_id(3n) right after calling netmgt_set_instance(3n). See Section 4.7, “Stopping Requests,” on page 4-8, for more information about netmgt_kill_request2(3n). 4.2 Optional Arguments Sometimes the standard request mechanism isn’t enough to get all needed information to an agent. The Manager Services library allows an “option” string to be specified. The definition of this field is up to the agent. For example, the ping agent uses the optional request arguments to set packet size, time to wait for echo replies, and so on, because it is not possible to specify these parameters through the “standard” request mechanism. You can also use the option string for SNMP requests. You can specify certain options that you want the SNMP proxy agent to use when sending an SNMP request to a target device. The optional arguments are: • • • • • 4-2 na.snmp-read-community—community string for data and event requests na.snmp-write-community—community string for set requests na.snmp-schema—the name of the schema to be used for performing the request na.snmp-proxy-device—name of a vendor’s proxy system with which the SNMP proxy agent will communicate. (If this option is used, the SNMP request is not sent to the target device, but will be sent instead to the specified proxy system. This argument should only be used only when a vendor has supplied an SNMP proxy agent to manage a particular device or set of devices. In this situation, the vendor’s SNMP proxy agent communicates with the SunNet Manager SNMP proxy agent via SNMP, but communicates with the target device using either SNMP or a different protocol.) na.snmp-get-list (used only for data reports)—list of object identifiers in standard dot notation. Separate each object ID with a space. For each object ID in the list, the SNMP proxy agent will get the value of the instance specified by the object ID. SunNet Manager 2.2.3 Programmer’s Guide