Exegin Technologies Limited Q52 Manuel D’Utilisation
72
Q52 Installation and Configuration Guide © Exegin Technologies Limited, 2007
9. Extra Features/Additional Information
Managing with SNMP
Managing with SNMP
Custom MIB Traps
A trap is an event generated by an agent to indicate a significant event to the manager.
By default, the Q52 will generate three traps:
By default, the Q52 will generate three traps:
coldstart
A generic trap generated every time the Q52 is powered on
or reset
or reset
authenticationFailure A generic trap generated whenever a disallowed access is
attempted
lpqIOStatusChanged The only custom trap. This trap is generated whenever the
I/O port’s status changes.
Compiling and Monitoring the Custom MIB
For read-only SNMP functionality, please follow the steps below:
1. Copy the Q52 MIB definition file (Q52mib.txt) from the CD ROM supplied with
the Q52. This file can also be downloaded from the Microplex FTP site
(ftp.exegin.com) or can be accessed via the Microplex Web site
(http://www.exegin.com/).
(ftp.exegin.com) or can be accessed via the Microplex Web site
(http://www.exegin.com/).
2. Compile this MIB description file to work with your SNMP manager.
3. Using your SNMP manager, view the particular MIB variables that you wish to
monitor.
Notes: If you are using SunNet Manager, you will need to download a special MIB file
(Q52mib.txt.SNM) from the Exegin FTP site. This file can also be accessed via
the Exegin Web site.
the Exegin Web site.
If you are using Castle Rock Computing’s SNMPc package, you will need to
rename the MIB variable UInteger32 to another name such as U32.
rename the MIB variable UInteger32 to another name such as U32.
Writing to the Custom MIB
The following example explains how to use the custom MIB variables to set the Q52’s
parameters. For example, to turn on bb mode and onlcr on the Q52’s prn port, please
follow the steps below:
parameters. For example, to turn on bb mode and onlcr on the Q52’s prn port, please
follow the steps below:
Note:
This example assumes that the snmp password has been defined as custommib,
that the Q52’s ipname is spike, and that the SNMP manager is the Tricklets
package.
that the Q52’s ipname is spike, and that the SNMP manager is the Tricklets
package.
Issue the following configuration commands using the snmp user’s password as the
community string.
community string.
echo "m307IfPrnbbM[1.2]=2" | snmp-set spike custommib
echo "m307IfOnlcr[1.2]=2" | snmp-set spike custommib