| | |
| | | |
| | | if (this.snmpAdaptor == null) { |
| | | throw new Exception( |
| | | ERR_SNMP_CONNHANDLER_BAD_CONFIGURATION.get().toString()); |
| | | ERR_SNMP_CONNHANDLER_BAD_CONFIGURATION.get()); |
| | | } |
| | | |
| | | // Create the Usm MIB to allow user management |
| | |
| | | this.snmpAdaptor.registerUsmMib(server, this.UsmObjName); |
| | | } catch (Exception ex) { |
| | | throw new Exception( |
| | | ERR_SNMP_CONNHANDLER_BAD_CONFIGURATION.get().toString()); |
| | | ERR_SNMP_CONNHANDLER_BAD_CONFIGURATION.get()); |
| | | } |
| | | } |
| | | |
| | |
| | | // Check if the snmpAdaptor is online |
| | | if (this.snmpAdaptor.getState() != CommunicatorServer.ONLINE) { |
| | | throw new Exception( |
| | | ERR_SNMP_CONNHANDLER_BAD_CONFIGURATION.get().toString()); |
| | | ERR_SNMP_CONNHANDLER_BAD_CONFIGURATION.get()); |
| | | } |
| | | |
| | | // Check the trap destinations before trying to sent traps |
| | |
| | | |
| | | } catch (Exception ex) { |
| | | throw new Exception( |
| | | ERR_SNMP_CONNHANDLER_BAD_CONFIGURATION.get().toString()); |
| | | ERR_SNMP_CONNHANDLER_BAD_CONFIGURATION.get()); |
| | | } |
| | | } |
| | | |