<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nas &#8211; Simon</title>
	<atom:link href="https://www.luisimon.com/tag/nas/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.luisimon.com</link>
	<description>blog</description>
	<lastBuildDate>Sun, 30 Jun 2024 10:36:29 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>

<image>
	<url>https://www.luisimon.com/wp-content/uploads/2019/09/cbrks-x5t4i-001.ico</url>
	<title>nas &#8211; Simon</title>
	<link>https://www.luisimon.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>FreeNAS以QNAP作为UPS主服务器（Master）的坑（威联通NAS配置UPS）</title>
		<link>https://www.luisimon.com/2020/12/19/389/</link>
		
		<dc:creator><![CDATA[Alan]]></dc:creator>
		<pubDate>Fri, 18 Dec 2020 16:09:56 +0000</pubDate>
				<category><![CDATA[极客记录]]></category>
		<category><![CDATA[nas]]></category>
		<category><![CDATA[QNAP]]></category>
		<category><![CDATA[UPS]]></category>
		<category><![CDATA[不间断电源]]></category>
		<category><![CDATA[威联通]]></category>
		<guid isPermaLink="false">https://www.luisimon.xyz/?p=389</guid>

					<description><![CDATA[参考引用：https://post.smzdm.com/p/av7o5r9n/ 服务器端 登录NAS，打开控制 ... <a title="FreeNAS以QNAP作为UPS主服务器（Master）的坑（威联通NAS配置UPS）" class="read-more" href="https://www.luisimon.com/2020/12/19/389/" aria-label="继续阅读FreeNAS以QNAP作为UPS主服务器（Master）的坑（威联通NAS配置UPS）">阅读更多</a>]]></description>
										<content:encoded><![CDATA[
<p>参考引用：<a href="https://www.luisimon.com/goto/hfdq" rel="nofollow">https://post.smzdm.com/p/av7o5r9n/</a></p>



<p><strong>服务器端</strong></p>



<p class="has-text-align-left">登录NAS，打开<strong>控制台</strong>点击<strong>Telnet/SSH</strong>，允许SSH登录。使用XShell登录ssh，或者打开Windows PowerShell直接输入命令登录。</p>



<pre class="wp-block-code"><code>ssh &#91;用户名]@&#91;NAS的IP地址] -p &#91;NAS的SSH端口号]</code></pre>



<p>键入以上命令后，按提示输入“yes”（首次登录，要求验证证书才需要输入，只会不会再提示），再输入密码即可。</p>



<p>UPS相关配置文件位置：/etc/config/ups/</p>



<p class="has-text-align-left">UPS Master配置文件为upsd.conf，其(QNAP)里面主要包含了允许连接的IP列表，默认不允许所有IP连接。</p>



<p><strong>客户端</strong></p>



<p>注意：QNAP的UPS标识符为“qnapups”，而非一般的ups，账号密码请查阅upsd.users。</p>



<p>坑：具体是否允许要以upsd.conf内的允许列表为准，在<strong><mark style="background-color:rgba(0, 0, 0, 0);color:#045a0b" class="has-inline-color">QNAP的web端删除IP重新添加</mark></strong>就出现在了QNAP的upsd.conf中。</p>



<pre class="wp-block-code"><code>#测试连接目录格式
#upsc &#91;标志]@&#91;ip] 
#例如：
upsc qnapups@192.168.1.1
#当连接成功，命令下面会打印对应的UPS电池信息</code></pre>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="696" src="https://www.luisimon.com/wp-content/uploads/2020/12/微信截图_20201218235022-1024x696.jpg" alt="" class="wp-image-391" srcset="https://www.luisimon.com/wp-content/uploads/2020/12/微信截图_20201218235022-1024x696.jpg 1024w, https://www.luisimon.com/wp-content/uploads/2020/12/微信截图_20201218235022-300x204.jpg 300w, https://www.luisimon.com/wp-content/uploads/2020/12/微信截图_20201218235022-768x522.jpg 768w, https://www.luisimon.com/wp-content/uploads/2020/12/微信截图_20201218235022.jpg 1090w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img decoding="async" width="973" height="513" src="https://www.luisimon.com/wp-content/uploads/2020/12/微信截图_20201218234931-1.jpg" alt="" class="wp-image-393" srcset="https://www.luisimon.com/wp-content/uploads/2020/12/微信截图_20201218234931-1.jpg 973w, https://www.luisimon.com/wp-content/uploads/2020/12/微信截图_20201218234931-1-300x158.jpg 300w, https://www.luisimon.com/wp-content/uploads/2020/12/微信截图_20201218234931-1-768x405.jpg 768w" sizes="(max-width: 973px) 100vw, 973px" /></figure>



<p>附加信息：</p>



<pre class="wp-block-code"><code>#在PowerShell登录SSH主机
ssh -p &#91;端口号] &#91;用户名]@&#91;ip]
#upsd.users文件位置
cat /etc/config/ups/upsd.users</code></pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
