Udostępnij za pośrednictwem


Installed (TCP/IP)

Konstrukcja TCP/IP Installed zawiera identyfikator obiektu (OID) wiersza tabeli MIB i listę wartości odnośników. If any of the lookup values exists in the row, this algorithm returns TRUE. Większość zapytań związanych z konfiguracją drukarki powinna określić, czy w usłudze MIB drukarki jest przechowywana określona wartość, a następnie zwraca wynik logiczny. Konstrukcja Zainstalowana jest zdefiniowana w pliku Tcpbidi.xsd.

Attribute Description
deviceIndex (Optional) A flag that, when TRUE, means that the associated algorithm must include the device index in the specified OID; when FALSE, a trailing zero is appended to the OID. The default value is FALSE. For more information, see the note on the page for Value.
drvPrinterEvent (Opcjonalnie) Wartość logiczna wskazująca, czy monitor portu wysyła powiadomienia do sterownika. A TRUE value indicates that the port monitor sends notifications to the driver; FALSE indicates that the port monitor does not send notifications to the driver.
name Nazwa wartości schematu.
oid Wiersz tabeli MIB jako identyfikator OID.
refreshInterval Wartość interwału sondowania w sekundach. Wartość domyślna to 600 sekund.

Code Example

In the following code example, the lookup algorithm retrieves the MIB table row from 1.3.6.1.2.1.43.13.4.1.9.<deviceIndex>. If this table row contains either 3 or 4, the query returns TRUE; otherwise the query returns FALSE.

<Property name="DuplexUnit">
  <Installed name="Installed" oid="1.3.6.1.2.1.43.13.4.1.9" deviceIndex="true">
    <Lookup value="3"/>
    <Lookup value="4"/>
  </Installed>
</Property>

Powyższy przykład powoduje wykonanie następującego zapytania:

\Printer.Configuration.DuplexUnit:Installed