Examples of HostSnmpDestination


Examples of com.vmware.vim25.HostSnmpDestination

    HostSnmpSystem hss = host.getHostSnmpSystem();
   
    HostSnmpConfigSpec spec = new HostSnmpConfigSpec();
    spec.setEnabled(true);
    spec.setReadOnlyCommunities(new String[] {"visdk"});
    HostSnmpDestination dest = new HostSnmpDestination();
    dest.setCommunity("visdk");
    dest.setHostName("192.168.8.8");
    dest.setPort(162);
    spec.setTrapTargets(new HostSnmpDestination[] {dest});
   
    hss.reconfigureSnmpAgent(spec);
   
    si.getServerConnection().logout();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.