XCP-ng

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. dougs
    D
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Best 1
    • Controversial 0
    • Groups 0

    dougs

    @dougs

    1
    Reputation
    1
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    dougs Unfollow Follow

    Best posts made by dougs

    • RE: APC Smart-UPS with NIC - which service to use apcupsd or NUT?

      @Ajmind-0 Care to share the shutdown script used to shutdown the VMs and the host?

      posted in Compute
      D
      dougs

    Latest posts made by dougs

    • RE: APC Smart-UPS with NIC - which service to use apcupsd or NUT?

      @olivierlambert
      Thanks. I was able to confirm the pool uuid.

      posted in Compute
      D
      dougs
    • RE: APC Smart-UPS with NIC - which service to use apcupsd or NUT?

      @Ajmind-0
      Thanks for the script.

      How does one enumerate the pool uuid for a given pool? I see what I believe to be the pool uuid right below the title of the pool in the XOA Pool page but I'd like to be sure it is indeed the correct pool uuid. I searched for the correct command but failed. xe something? xe pool-param-get what?

      posted in Compute
      D
      dougs
    • RE: iptables rule to allow apcupsd traffic to APC management card

      @Ajmind-0
      Well, well, I switched to the snmp connection method and it worked just fine. Um...

      Thank you for your pointer.

      posted in Compute
      D
      dougs
    • RE: iptables rule to allow apcupsd traffic to APC management card

      @Ajmind-0
      Strange. I'm using UPSTYPE pcnet and the corresponding DEVICE ipaddr:username:password statement. I'm using the exact syntax on all of our FreeBSD servers and they're communicating with the APC management card.

      What is your iptables configuration like?

      posted in Compute
      D
      dougs
    • iptables rule to allow apcupsd traffic to APC management card

      I need to allow traffic between apcupsd on the host and the APC management card. When iptables is disabled, the host can communicate with the management card. However, when iptables is active, communications no longer occur.

      I have tried to insert a rule as follows:

      ACCEPT   tcp   192.168.xxx.xxx/32   anywhere   tcp dpt:apcupsd state NEW
      

      as the next to last rule in the RH-Firewall-1-INPUT chain. (The IP address belongs to the APC management card.) The rule doesn't allow packets to/from apcupsd.

      I am no iptables expert (we use FreeBSD) and I am not familiar with how the iptables rules are structured on the xcp-ng host. It appears to be specially tailored to xcp-ng.

      # iptables -L
      Chain INPUT (policy ACCEPT)
      target     prot opt source               destination         
      RH-Firewall-1-INPUT  all  --  anywhere             anywhere            
      
      Chain FORWARD (policy ACCEPT)
      target     prot opt source               destination         
      RH-Firewall-1-INPUT  all  --  anywhere             anywhere            
      
      Chain OUTPUT (policy ACCEPT)
      target     prot opt source               destination         
      
      Chain RH-Firewall-1-INPUT (2 references)
      target     prot opt source               destination         
      ACCEPT     all  --  anywhere             anywhere            
      ACCEPT     icmp --  anywhere             anywhere             icmp any
      ACCEPT     udp  --  anywhere             anywhere             udp dpt:bootps
      ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
      ACCEPT     udp  --  anywhere             anywhere             ctstate NEW udp dpt:ha-cluster
      ACCEPT     tcp  --  anywhere             anywhere             ctstate NEW tcp dpt:ssh
      ACCEPT     tcp  --  anywhere             anywhere             ctstate NEW tcp dpt:http
      ACCEPT     tcp  --  anywhere             anywhere             ctstate NEW tcp dpt:https
      ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:21064
      ACCEPT     udp  --  anywhere             anywhere             multiport dports hpoms-dps-lstn,netsupport
      ACCEPT     tcp  --  192.168.xxx.xxx/32   anywhere             tcp dpt:apcupsd state NEW
      REJECT     all  --  anywhere             anywhere             reject-with icmp-host-prohibited
      #
      

      Suggestions?

      posted in Compute
      D
      dougs
    • RE: APC Smart-UPS with NIC - which service to use apcupsd or NUT?

      @Ajmind-0 Care to share the shutdown script used to shutdown the VMs and the host?

      posted in Compute
      D
      dougs