How to Configure ESXi to Shutdown Using an APC ..

download How to Configure ESXi to Shutdown Using an APC ..

of 10

description

How to Configure ESXi to Shutdown Using an APC ..

Transcript of How to Configure ESXi to Shutdown Using an APC ..

  • How to configure ESXi to shutdown using an APC ... | VMware Commun... https://communities.vmware.com/docs/DOC-11482

    1 of 10 12/16/2014 4:17 PM

  • sudo rpm -ivh apcupsd-3.14.5-1.el5.x86_64.rpm

    sudo rm /etc/apcupsd/apcupsd.conf

    sudo nano /etc/apcupsd/apcupsd.conf

    ## apcupsd.conf v1.1 ##

    UPSCABLE ether

    UPSTYPE pcnet

    LOCKFILE /var/lock

    How to configure ESXi to shutdown using an APC ... | VMware Commun... https://communities.vmware.com/docs/DOC-11482

    2 of 10 12/16/2014 4:17 PM

  • DEVICE UPS_IPADDRESS:apc:admin user phrase

    UPSCLASS standalone

    UPSMODE disable

    sudo chkconfig iptables off

    sudo service iptables save

    sudo service iptables stop

    sudo /etc/init.d/apcupsd start

    ps ax|grep apc

    How to configure ESXi to shutdown using an APC ... | VMware Commun... https://communities.vmware.com/docs/DOC-11482

    3 of 10 12/16/2014 4:17 PM

  • apcaccess

    How to configure ESXi to shutdown using an APC ... | VMware Commun... https://communities.vmware.com/docs/DOC-11482

    4 of 10 12/16/2014 4:17 PM

  • chmod 755 /home/vi-admin/ghettoShutdown.pl

    chmod 755 /home/vi-admin/upsVIShutdown.pl

    sudo vifp listserver

    How to configure ESXi to shutdown using an APC ... | VMware Commun... https://communities.vmware.com/docs/DOC-11482

    5 of 10 12/16/2014 4:17 PM

  • my @hosts = ("esxi.host1","esxi.host2);

    my $log_output = "/tmp/upsShutdown.log";

    my $ups_vm_name = "S-VIMA";

    my $sec_to_sleep = 15;

    nano /etc/apcupsd/apccontrol

    How to configure ESXi to shutdown using an APC ... | VMware Commun... https://communities.vmware.com/docs/DOC-11482

    6 of 10 12/16/2014 4:17 PM

  • doshutdown)

    echo "UPS ${2} initiated Shutdown Sequence" | ${WALL}

    /home/vi-admin/upsVIShutdown.pl

    ${SHUTDOWN} -h now "apcupsd UPS ${2} initiated shutdow

    ;;

    How to configure ESXi to shutdown using an APC ... | VMware Commun... https://communities.vmware.com/docs/DOC-11482

    7 of 10 12/16/2014 4:17 PM

  • How to configure ESXi to shutdown using an APC ... | VMware Commun... https://communities.vmware.com/docs/DOC-11482

    8 of 10 12/16/2014 4:17 PM

  • ps ax|grep apc

    apcaccess

    How to configure ESXi to shutdown using an APC ... | VMware Commun... https://communities.vmware.com/docs/DOC-11482

    9 of 10 12/16/2014 4:17 PM

  • How to configure ESXi to shutdown using an APC ... | VMware Commun... https://communities.vmware.com/docs/DOC-11482

    10 of 10 12/16/2014 4:17 PM