DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Developing SMUX peers for SNMP agents

Testing an SMUX peer

The task of testing an SMUX peer is similar to testing an administration or configuration interface to a device. All MIB variables should be read to ensure that they contain the expected values. All read-write access MIB variables should be read and written with many possible values and the tester must ensure that the results are unsurprising.

Forming SNMP requests with the SNMP client commands getone(ADMN), getmany(ADMN), and setany(ADMN) is often easier and less expensive than using a network management station. Please refer to the manual pages for these commands for more detailed information.

Some examples of using these commands follow:

To walk the entire foo MIB module, use the following command:

getmany localhost public enterprises.9999

To read just the product name from the foo MIB module, use the following command:

getone localhost public enterprises.9999.1.1.0

To read the BAUD rate of serial line number 2, use the following command:

getone localhost public enterprises.9999.1.6.1.2.2

To set the BAUD rate of serial line 2 to a value of 2400 bps, use the following command:

setany localhost foo enterprises.9999.1.6.1.2.2 -i 2


© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005