簡介
本檔案將說明Umbrella虛擬裝置(VA)的命令。
概觀
Umbrella VA運行在Ubuntu作業系統上,它是基於Debian的Linux發行版。 在VA的「配置模式」命令列中,並非所有Linux中通常可用的命令都可供客戶使用。相反,VA使用受限制的shell環境,該環境提供許多故障排除/診斷命令以及config命令來更改VA中的相關設定。
有關使用配置模式配置VA的詳細資訊,請參閱https://docs.umbrella.com/deployment-umbrella/docs/5-configuring-the-vas
本文中的命令自VA軟體版本3.4起全部可用。
附註:命令說明涵蓋VA上支援的語法。提供了許多命令的連結,這些連結指向第三方資源以瞭解有關命令本身的附加資訊。請注意,並非所有Linux命令選項在VA上均受支援。
clear
clear指令會清除終端畫面。它相當於Windows命令提示符中的「cls」。
設定
config用於配置虛擬裝置。config共有九個子命令:
- 通道
- snmp
- 任播
- va
- ntp
- admap
- logexport
- 本地DNS
- 負載均衡器
5720351776404
1)tunnel子命令用於啟用和配置支援隧道,與通過VA控制檯中的Ctrl+B執行類似。
360037483772
命令示例:
config tunnel enable <optional time open, default is 72hrs, range is 7 to 240 hours>
config tunnel reenable <optional time open, default is 72hrs>
config tunnel disable
config tunnel status
有關配置支援隧道的詳細資訊,請參閱https://docs.umbrella.com/deployment-umbrella/docs/appendix-d-troubleshooting-the-va-using-a-restricted-shell#tunnel
2)snmp子命令用於啟用和配置SNMP支援。
360037482211
命令示例:
config snmp enable
config snmp configure -v2 -c <community string>
config snmp status
有關配置SNMP的詳細資訊,請參閱https://docs.umbrella.com/deployment-umbrella/docs/appendix-c-enable-snmp-monitoring
3)anycast子命令用於配置AnyCast BGP。
360055492572
命令示例:
config anycast enable <anycast ip> <ASN:ROUTER-IP:HOP-COUNT of BGP router>
config anycast status
config anycast disable
config anycast stats
config anycast add <ASN:ROUTER-IP:HOP-COUNT of BGP router>
config anycast delete <BGP router IP address>
有關配置AnyCast的詳細資訊,請參閱https://docs.umbrella.com/deployment-umbrella/docs/appendix-e-other-configurations#anycast
4)va子命令用於VA上的所有例行配置。
360055639691
4417123559060
命令示例:
config va status
config va name <New name for the VA>
config va interface <interface name> <ip address> <subnet mask> <gateway>
config va interface6 <interface name> <IPv6 address/prefix> <IPv6 gateway>
config va show
config va ssh enable
config va dmz enable
config va dnssec enable
config va per-ip-rate-limit enable <packets/sec> <burst rate>
有關配置速率限制的詳細資訊,請參閱https://docs.umbrella.com/deployment-umbrella/docs/appendix-e-other-configurations#section-configure-rate-limiting
有關配置DNSSEC支援的詳細資訊,請參閱https://docs.umbrella.com/deployment-umbrella/docs/appendix-e-other-configurations#section-configure-dnssec-support
也可以使用resolvers子命令將VA配置為使用特定解析程式,這些選項可用:
config va resolvers US (Uses 208.67.221.76 and 208.67.223.76)
config va resolvers US-v6 (Uses 2620:119:17::76 and 2620:119:76::76)
config va resolvers global (Uses 208.67.220.220 and 208.67.222.222)
config va resolvers global-v6 (Uses 2620:119:35::35 and 2620:119:53::53)
config va resolvers alternate (Uses 208.67.222.220 and 208.67.220.222)
有關詳細資訊,請參閱https://docs.umbrella.com/deployment-umbrella/docs/appendix-e-other-configurations#section-configure-umbrella-resolvers
5)ntp子命令可用於在VA上定義自定義NTP伺服器。
360055626811
命令示例:
config ntp add <New NTP server>
config ntp show
有關詳細資訊,請參閱https://docs.umbrella.com/deployment-umbrella/docs/appendix-e-other-configurations#section-configure-ntp-servers
6)admap子命令是用於配置身份關聯超時以及檢視或清除AD對映的命令。此時,只能清除單個IP地址的對映。當前沒有從受限制的外殼中清除所有AD對映的方法。
360037483672
命令示例:
config admap view <ip address>
config admap clear <ip address>
config admap set-user-timeout 28800 (This would set it for 8hrs)
config admap show-timeout
有關詳情,請參閱:
https://docs.umbrella.com/deployment-umbrella/docs/appendix-e-other-configurations#identity
有關其他資訊,請參閱以下知識庫文章:
虛擬裝置:管理/刪除快取的AD使用者
虛擬裝置:調整使用者快取設定
7)logexport子命令用於將稽核日誌、運行狀況日誌和/或內部DNS請求日誌匯出到遠端系統日誌伺服器。
4412434552084
有關詳情,請參閱:
https://docs.umbrella.com/deployment-umbrella/docs/appendix-e-other-configurations#syslog
localdns子命令用於配置內部域到特定內部DNS伺服器的條件轉發。 它是3.2版的新增版本。
4417131713684
有關詳細資訊,請運行「config localdns help」或檢視:
https://docs.umbrella.com/deployment-umbrella/docs/6-local-dns-forwarding
9)loadbalancer子命令用於配置注入ECS的負載平衡器。 它是3.3版的新增版本。
5720280448276
有關詳細資訊,請運行「config loadbalancer help」或檢視:
https://docs.umbrella.com/deployment-umbrella/docs/appendix-e-other-configurations#section-configure-load-balancing
日期
date命令可用於在VA中列印當前的系統時間/日期。該時間以協調世界時(UTC)返回。 無法重新配置日期、時間和時區。
4412412915604
df
df命令可用於顯示VA的當前磁碟利用率。
有關詳細資訊,請參閱http://manpages.ubuntu.com/manpages/focal/en/man1/df.1.html
360037483652
執行
execute命令在更新的內部版本3.4.6中可用
用法:execute <commands>
命令必須是以下其中一項:
force_upgrade :執行「disk_cleanup」>立即重新下載新的VA映像>強制VA升級。
disk_cleanup :刪除VA映像、升級錯誤檔案和Azure副檔名(未刪除任何日誌)。
免費
free命令顯示系統中的可用記憶體和已用記憶體量。
有關詳細資訊,請參閱http://manpages.ubuntu.com/manpages/focal/en/man1/free.1.html
360037482111
說明
幫助可用於顯示受限制外殼環境中使用者可用的所有命令。
360055506372
附註:雖然支援幫助,但人員不支援,因此您需要從其它位置調出所需的任何手冊頁。
本文頂部包含每個可用命令的連結。
iostat
iostat顯示裝置和分割槽的CPU統計資訊和輸入/輸出統計資訊。
有關詳細資訊,請參閱http://manpages.ubuntu.com/manpages/focal/en/man1/iostat.1.html
360037482091
netstat
netstat會列印網路連線、路由表、介面統計資訊、偽裝連線和多播成員資格。
有關詳細資訊,請參閱http://manpages.ubuntu.com/manpages/focal/en/man8/netstat.8.html
360037482051
nslookup
nslookup用於以互動方式查詢Internet名稱伺服器。命令結構與Windows、Mac和Linux的命令結構匹配。
nslookup <domain>
使用此語法運行查詢會導致VA將查詢傳送到我們的公共解析器而不是傳送到其本身。為了成功執行內部域的查詢,您需要指定您的內部DNS伺服器:
nslookup <Internal Domain> <Internal DNS Server IP>
要針對自身從VA運行內部或外部查詢,應運行如下:
nslookup <domain> 127.0.0.1
4412413950484
有關詳細資訊,請參閱http://manpages.ubuntu.com/manpages/focal/en/man1/nslookup.1.html
passwd
passwd用於重置VA密碼。語法如下:
passwd
然後系統將提示您輸入舊密碼,然後輸入新密碼(兩次)。 或者,您也可以通過Umbrella控制面板將密碼重置為預設值,詳情請見此處。
4412427409044
ping
ping指令用於測試連線,語法再次與Windows、Mac和Linux中的語法相符。可用選項如下所示。
360037482031最常見的使用方式通常如下:
ping -c 4 <Domain or IP>
有關詳細資訊,請參閱http://manpages.ubuntu.com/manpages/focal/en/man1/ping.1.html
ping6
ping6命令用於測試與IPv6端點的連線,語法再次與Windows、Mac和Linux中的語法匹配。可用選項如下所示。
360055639751
最常見的使用方式如下:
ping6 -c 4 <Domain or IPv6 address>
有關詳細資訊,請參閱http://manpages.ubuntu.com/manpages/focal/en/man1/ping6.1.html
重新引導
reboot指令會重新啟動VA。系統將提示您確認重新啟動(Y = yes)或取消重新啟動(N = no)。
4412413584148
tcptraceroute
tcptraceroute傳送功能與標準traceroute命令基本相同,但它使用TCP資料包,而不是標準UDP或ICMP資料包。
4412426989332
有關詳情,請參閱:https://manpages.ubuntu.com/manpages/focal/man1/tcptraceroute.mt.1.html
traceroute
traceroute可用於測試不同網路上的兩個端點之間的UDP和ICMP連線,並提供它們之間的每一躍點的資訊。
最常見的使用方式如下:
traceroute <domain or IP>
4412413519508
有關詳細資訊,請參閱https://manpages.ubuntu.com/manpages/focal/en/man1/traceroute.db.1.html
traceroute6
traceroute6可用於測試不同網路上的兩個IPv6終端之間的UDP和ICMP連線,並提供它們之間的每一跳的資訊。
有關詳細資訊,請參閱https://manpages.ubuntu.com/manpages/focal/man8/traceroute6.iputils.8.html
正常運行時間
uptime命令顯示當前時間、VA已運行多長時間、當前登入的使用者數,以及過去1、5和15分鐘的系統負載平均值。
4412413617172
有關詳細資訊,請參閱https://manpages.ubuntu.com/manpages/focal/en/man1/uptime.1.html
版本
version將當前版本的VA軟體列印到螢幕。此資訊也可從VA控制檯獲得。
360037481991