Package snmp

Examples of snmp.SNMPv1CommunicationInterface


     */
    public ServerConnection getServerConnection(ApplicationConfig config)
            throws ConnectionFailedException {
        try{
            InetAddress hostAddress = InetAddress.getByName(config.getHost());
            SNMPv1CommunicationInterface commIntf =
                    new SNMPv1CommunicationInterface(1, hostAddress, "public",
                            config.getPort().intValue());
            SNMPAgentConnection connection = new SNMPAgentConnection(commIntf);
            return connection;
        }catch(Throwable e){
            throw new ConnectionFailedException(e);
View Full Code Here

TOP

Related Classes of snmp.SNMPv1CommunicationInterface

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.