<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On Nov 9, 2014, at 3:48 PM, Steve Read <<a href="mailto:sd_read@hotmail.com">sd_read@hotmail.com</a>> wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr">I would like to verify my understanding keeping in mind I have a one master and one slave computer.<div><br></div><div>When the master gets the low batt/noAC signal it initiates a broadcast packet(s) on port 3493.</div><div><br></div><div>1) Is this correct?</div></div></div></blockquote><div><br></div><div>No, the slave computer's upsmon process connects to the master (via TCP, so point-to-point, not broadcast), and listens for the OB (on battery) and then "OB LB" (on battery; low battery) status.</div><div><br></div><div>(Not to say that some other UPS shutdown software couldn't broadcast, but port 3493 is reserved for NUT.)</div><br><blockquote type="cite"><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div><span style="font-size: 12pt;">Then the slave computer must have this port open and it listens on this port for the shut-down command.</span></div><div><br></div><div>2) Is this correct?</div></div></div></blockquote><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div><br></div><div>It's the other way around: the master (via upsd) listens on port 3493, and the slave connects to that port.</div><div><br></div></div></div><blockquote type="cite"><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div>On the slave if I run the following:</div><div><br></div><div><pre class="code" style="padding: 0.5em; margin-top: 0px; font-size: 12.6666669845581px; border: 1px dashed rgb(140, 172, 187); overflow: auto; text-align: justify; background-color: rgb(247, 249, 250);"><div style="font-family: Calibri, sans-serif; font-size: 16px; text-align: start; white-space: normal;">steve@MyDesktop:~$ nmap -p 3493 192.168.0.6</div><div style="font-family: Calibri, sans-serif; font-size: 16px; text-align: start; white-space: normal;"><br></div><div style="font-family: Calibri, sans-serif; font-size: 16px; text-align: start; white-space: normal;">Starting Nmap 6.40 (<span class="Apple-converted-space"> </span><a href="http://nmap.org/">http://nmap.org</a><span class="Apple-converted-space"> </span>) at 2014-11-09 15:42 EST</div><div style="font-family: Calibri, sans-serif; font-size: 16px; text-align: start; white-space: normal;">Nmap scan report for 192.168.0.6</div><div style="font-family: Calibri, sans-serif; font-size: 16px; text-align: start; white-space: normal;">Host is up (0.00013s latency).</div><div style="font-family: Calibri, sans-serif; font-size: 16px; text-align: start; white-space: normal;">PORT     STATE  SERVICE</div><div style="font-family: Calibri, sans-serif; font-size: 16px; text-align: start; white-space: normal;">3493/tcp closed nut</div><div style="font-family: Calibri, sans-serif; font-size: 16px; text-align: start; white-space: normal;"><br></div><div style="font-family: Calibri, sans-serif; font-size: 16px; text-align: start; white-space: normal;">Nmap done: 1 IP address (1 host up) scanned in 11.06 seconds</div></pre></div><div><br></div><div>Which tells me this port is configured for nut but it is closed?</div></div></div></blockquote><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div><br></div><div>As mentioned above, that is expected. But if you run it against the master (192.168.0.7, if I understand correctly) from the slave, you should see that it is open.</div><div><br></div></div></div><blockquote type="cite"><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div>I have rebooting and starting and stopping the service using:</div><div><br></div><div><pre class="code" style="padding: 0.5em; margin-top: 0px; font-size: 12.6666669845581px; border: 1px dashed rgb(140, 172, 187); overflow: auto; text-align: justify; background-color: rgb(247, 249, 250);">sudo service ups-monitor stop 
sudo service ups-monitor start</pre></div><div>But it remains closed.</div><div><br></div><div>3) Assuming this should be open how do I fix this?</div></div></div></blockquote><br></div><div>You mentioned that you have a "LISTEN 0.0.0.0" line in upsd.conf on the master - has upsd been restarted since that change was made? Other than that, you should be set. Do things match the "netstat" output I mentioned in a previous email?</div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px;"><div>-- </div><div>Charles Lepple</div><div>clepple@gmail</div><div><br></div></span><br class="Apple-interchange-newline">

</div>
<br></body></html>