Package uk.co.westhawk.snmp.stack

Examples of uk.co.westhawk.snmp.stack.SnmpContextv2cPool


    public static SnmpManager createSNMPv2c(String host,
                                            int port,
                                            String community)
        throws SnmpException {

        SnmpContextv2cPool  pool;

        try {
            pool = new SnmpContextv2cPool(host, port);
            pool.setCommunity(community);
            return new SnmpManager(pool);
        } catch (IOException e) {
            throw new SnmpException("SNMP communication error: " +
                                    e.getMessage());
        }
View Full Code Here

TOP

Related Classes of uk.co.westhawk.snmp.stack.SnmpContextv2cPool

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.