public static SnmpManager createSNMPv1(String host,
int port,
String community)
throws SnmpException {
SnmpContextPool pool;
try {
pool = new SnmpContextPool(host, port);
pool.setCommunity(community);
return new SnmpManager(pool);
} catch (IOException e) {
throw new SnmpException("SNMP communication error: " +
e.getMessage());
}