<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Boy, I guess I got that one wrong.<div><br></div><div>When I run nmap on the master it does say that port 3493 is open which is expected.</div><div><br><div>So then what you are telling me means the ports are open. </div><div>In other words I don't have a firewall issue.</div><div><br></div><div>Now I am stumped as to why the slave does not shut down?<br><br><div><hr id="stopSpelling">Subject: Re: [Nut-upsuser] Master Works, Slave Does Not<br>From: clepple@gmail.com<br>Date: Sun, 9 Nov 2014 16:31:22 -0500<br>CC: nut-upsuser@lists.alioth.debian.org<br>To: sd_read@hotmail.com<br><br>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="ecxApple-interchange-newline"><blockquote><div class="ecxhmmessage" style="font-size:12pt;font-family:Calibri;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing: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><div class="ecxhmmessage" style="font-size:12pt;font-family:Calibri;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing: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="ecxhmmessage" style="font-size:12pt;font-family:Calibri;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing: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><div class="ecxhmmessage" style="font-size:12pt;font-family:Calibri;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing: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;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="ecxApple-converted-space"> </span><a href="http://nmap.org/" target="_blank">http://nmap.org</a><span class="ecxApple-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="ecxhmmessage" style="font-size:12pt;font-family:Calibri;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing: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><div class="ecxhmmessage" style="font-size:12pt;font-family:Calibri;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing: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;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="ecxApple-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="ecxApple-interchange-newline">

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