一馬力のメモ帳

MVSからLinuxまで。基盤屋さんは眠らない

VyOSのコマンド一覧

f:id:htbariki:20180616215908p:plain

VyOS(https://wiki.vyos-users.jp/index.php/)のコマンド一覧ページです。

VyOSで[?]キーを使って各モードのコマンド一覧を表示し転記しています。
試した環境、VyOSのバージョンはページ末尾の「試した環境」を確認してください

目次


コマンド一覧 操作モード(operational mode)

vyos@vyos:~$
Possible completions:
  add           Add an object to a service
  clear         Clear system information
  clone         Clone an object
  configure     Enter configure mode
  connect       Establish a connection
  copy          Copy an object
  delete        Delete an object
  disconnect    Take down a connection
  force         Force an operation
  format        Format a device
  generate      Generate an object
  install       Install a new system
  monitor       Monitor system information
  ping          Send IPv4 or IPv6 ICMP (Internet Control Message Protocol) echo requests
  poweroff      Poweroff the system
  reboot        Reboot the system
  release       Release specified variable
  rename        Rename an object
  renew         Renew specified variable
  reset         Reset a service
  restart       Restart a service
  set           Set operational options
  show          Show system information
  telnet        Telnet to a node
  traceroute    Track network path to node
  update        Update data for a service


vyos@vyos:~$

add 

vyos@vyos:~$ add
Possible completions:
  raid          Add a RAID set element
  system        Add an item to a system facility

 clear

vyos@vyos:~$ clear
Possible completions:
  console       Clear screen
  firewall      Clear firewall statistics
  flow-accounting
                Clear flow accounting
  interfaces    Clear interface information
  ip            Clear Internet Protocol (IP) statistics or status
  ipv6          Clear Internet Protocol (IPv6) statistics or status
  nat           Clear network address translation (NAT) tables
  policy        Clear policy statistics


vyos@vyos:~$ clear

 clone

vyos@vyos:~$ clone
Possible completions:
  system        Clone a system object


vyos@vyos:~$ clone

 configure

vyos@vyos:~$ configure
Possible completions:
  <Enter>       Execute the current command


vyos@vyos:~$ configure

 connect

vyos@vyos:~$ connect
Possible completions:
  interface     Bring up a connection-oriented network interface


vyos@vyos:~$ connect

 copy

vyos@vyos:~$ copy
Possible completions:
  file          Copy files


vyos@vyos:~$ copy

 delete

vyos@vyos:~$ delete
Possible completions:
  conntrack     Delete Conntrack entries
  file          Delete files in a particular image
  log           Delete a log file
  raid          Remove a RAID set element
  system        Delete system objects


vyos@vyos:~$ delete

 disconnect

vyos@vyos:~$ disconnect
Possible completions:
  interface     Take down a connection-oriented network interface


vyos@vyos:~$ disconnect

 force

vyos@vyos:~$ force
Possible completions:
  arp           Send gratuitous ARP request or reply
  cluster       Force a cluster state transition


vyos@vyos:~$ force

 format

vyos@vyos:~$ format
Possible completions:
  disk          Format a disk drive


vyos@vyos:~$ format

 generate

vyos@vyos:~$ generate
Possible completions:
  openvpn       OpenVPN key generation tool
  tech-support  Generate tech-support archive
  vpn           VPN key generation utility


vyos@vyos:~$ generate

 install

vyos@vyos:~$ install
Possible completions:
  image         Install new system image to hard drive
  system        Install system to hard drive


vyos@vyos:~$ install

 monitor

vyos@vyos:~$ monitor
Possible completions:
  cluster       Monitor clustering service
  command       Monitor an operational mode command (refreshes every 2 seconds)
  conntrack-sync
                Monitor conntrack-sync
  content-inspection
                Monitor Content-Inspection
  dhcp          Monitor Dynamic Host Control Protocol (DHCP)
  dns           Monitor a Domain Name Service (DNS) daemon
  firewall      Monitor Firewall
  https         Monitor the Secure Hypertext Transfer Protocol (HTTPS) service
  interfaces    Monitor interfaces
  lldp          Monitor Link Layer Discovery Protocol (LLDP) daemon
  log           Monitor last lines of messages file
  nat           Monitor network address translation (NAT)
  openvpn       Monitor OpenVPN
  protocol      Monitor routing protocols
  snmp          Monitor Simple Network Management Protocol (SNMP) daemon
  stop-all      Stop all current background monitoring processes
  traceroute    Monitor the path to a destination in realtime
  vpn           Monitor VPN
  vrrp          Monitor Virtual Router Redundancy Protocol (VRRP)
  webproxy      Monitor Webproxy service


vyos@vyos:~$ monitor

 ping

vyos@vyos:~$ ping
Possible completions:
  <hostname>    Send Internet Control Message Protocol (ICMP) echo request
  <x.x.x.x>
  <h:h:h:h:h:h:h:h>


vyos@vyos:~$ ping

 poweroff

vyos@vyos:~$ poweroff
Possible completions:
  <Enter>       Execute the current command
  at            Poweroff at a specific time
  cancel        Cancel a pending poweroff
  now           Poweroff the system without confirmation


vyos@vyos:~$ poweroff

 reboot

vyos@vyos:~$ reboot
Possible completions:
  <Enter>       Execute the current command
  at            Reboot at a specific time
  cancel        Cancel a pending reboot
  now           Reboot the system without confirmation


vyos@vyos:~$ reboot

 release

vyos@vyos:~$ release
Possible completions:
  dhcp          Release DHCP client lease
  dhcpv6        Release a DHCPv6 lease


vyos@vyos:~$ release

 rename

vyos@vyos:~$ rename
Possible completions:
  system        Re-name a system object.


vyos@vyos:~$ rename

 renew

vyos@vyos:~$ renew
Possible completions:
  dhcp          Renew DHCP client lease
  dhcpv6        Renew a DHCPv6 lease


vyos@vyos:~$ renew

 reset

vyos@vyos:~$ reset
Possible completions:
  conntrack     Reset all currently tracked connections
  conntrack-sync
                Reset connection syncing parameters
  dhcp          Reset Dynamic Host Configuration Protocol (DHCP)
  dns           Reset Domain Name Server (DNS) variables
  firewall      reset a firewall group
  ip            Reset Internet Protocol (IP) parameters
  ipv6          Reset Internet Protocol version 6 (IPv6) parameters
  nhrp          Clear/Purge NHRP entries
  openvpn       Reset OpenVPN
  terminal      Reset terminal
  vpn           Reset Virtual Private Network (VPN) information
  vrrp          Reset VRRP


vyos@vyos:~$ reset

 restart

vyos@vyos:~$ restart
Possible completions:
  cluster       Restart cluster node
  conntrack-sync
                Restart connection tracking synchronization service
  dhcp          Restart a DHCP service
  dhcpv6        Restart a DHCPv6 service
  flow-accounting
                Restart flow-accounting service
  https         Restart https server
  task-scheduler
                Restart task scheduler service
  vpn           Restart IPsec VPN
  vrrp          Restart VRRP
  wan-load-balance
                Restart WAN load balancing
  webproxy      Restart webproxy service


vyos@vyos:~$ restart

 set

vyos@vyos:~$ set
Possible completions:
  <OPTION>      Bash builtin set command
  console       Control console behaviors
  date          Set date and time
  system        Set system operational parameters
  terminal      Control terminal behaviors


vyos@vyos:~$ set

 show

vyos@vyos:~$ show
Possible completions:
  arp           Show Address Resolution Protocol (ARP) information
  bridge        Show bridging information
  cluster       Show clustering information
  configuration Show running configuration
  conntrack     Show conntrack entries in the conntrack table
  conntrack-sync
                Show connection syncing information
  date          Show system date and time
  dhcp          Show Dynamic Host Configuration Protocol (DHCP) information
  dhcpv6        Show status related to DHCPv6
  disk          Show status of disk device
  dns           Show Domain Name Server (DNS) information
  file          Show files for a particular image
  firewall      Show firewall information
  flow-accounting
                Show flow accounting statistics
  hardware      Show system hardware details
  history       show command history
  host          Show host information
  incoming      Show ethernet input-policy information
  interfaces    Show network interface information
  ip            Show IPv4 routing information
  ipv6          Show IPv6 routing information
  license       Show VyOS license information
  lldp          Show lldp
  log           Show contents of current master log file
  login         Show current login credentials
  monitoring    Show currently monitored services
  nat           Show Network Address Translation (NAT) information
  nhrp          Show NHRP info
  ntp           Show peer status of network time daemon
  openvpn       Show OpenVPN information
  policy        Show policy information
  poweroff      Show scheduled poweroff
  queueing      Show ethernet queueing information
  raid          Show status of RAID set
  reboot        Show scheduled reboot
  route-map     Show route-map information
  snmp          Show status of SNMP on localhost
  system        Show system information
  table         Show routing table
  tech-support  Show consolidated tech-support report
  users         Show user information
  version       Show Vyatta version information
  vpn           Show Virtual Private Network (VPN) information
  vrrp          Show Virtual Router Redundancy Protocol (VRRP) information
  wan-load-balance
                Show Wide Area Network (WAN) load-balancing information
  webproxy      Show webproxy information
  zone-policy   Show summary of zone policy for a specific zone


vyos@vyos:~$ show

 telnet

vyos@vyos:~$ telnet
Possible completions:
  <hostname>    Telnet to host
  <x.x.x.x>
  <h:h:h:h:h:h:h:h>


vyos@vyos:~$ telnet

 traceroute

vyos@vyos:~$ traceroute
Possible completions:
  <hostname>    Track network path to specified node
  <x.x.x.x>
  <h:h:h:h:h:h:h:h>
  ipv4          Track network path to <hostname|IPv4 address>
  ipv6          Track network path to <hostname|IPv6 address>


vyos@vyos:~$ traceroute

 update

vyos@vyos:~$ update
Possible completions:
  dns           Update DNS information
  webproxy      Update webproxy


vyos@vyos:~$ update

コマンド一覧 設定モード(configuration mode)

vyos@vyos:~$ configure
[edit]
vyos@vyos#
Possible completions:
  confirm       Confirm prior commit-confirm
  comment       Add comment to this configuration element
  commit        Commit the current set of changes
  commit-confirm
                Commit the current set of changes with 'confirm' required
  compare       Compare configuration revisions
  copy          Copy a configuration element
  delete        Delete a configuration element
  discard       Discard uncommitted changes
  edit          Edit a sub-element
  exit          Exit from this configuration level
  load          Load configuration from a file and replace running configuration
  loadkey       Load user SSH key from a file
  merge         Load configuration from a file and merge running configuration
  rename        Rename a configuration element
  rollback      Rollback to a prior config revision (requires reboot)
  run           Run an operational-mode command
  save          Save configuration to a file
  set           Set the value of a parameter or create a new element
  show          Show the configuration (default values may be suppressed)


[edit]
vyos@vyos#

 confirm

vyos@vyos# confirm
Possible completions:
  <Enter>    Execute the current command

[edit]
vyos@vyos# confirm

 comment

vyos@vyos# comment
comment
[edit]
vyos@vyos# comment
Possible completions:
 > interfaces   Network interfaces
 > service      Services
 > system       System parameters


[edit]
vyos@vyos# comment

 commit-confirm

vyos@vyos# commit-confirm
Possible completions:
  <Enter>    Commit, rollback/reboot in 10 minutes if no confirm
  <N>        Commit, rollback/reboot in N minutes if no confirm
  comment    Comment for commit log


[edit]
vyos@vyos# commit-confirm

 compare

vyos@vyos# compare
Possible completions:
  <Enter>    Compare working & active configurations
  saved        Compare working & saved configurations
  <N>        Compare working with revision N
  <N> <M>    Compare revision N with M

  Revisions:
    0    2018-06-16 09:42:11 vyos by cli
    1    2018-06-16 09:41:53 vyos by cli
    2    2018-06-16 09:40:12 vyos by cli
    3    2018-06-10 07:28:14 root by boot-config-loader
    4    2018-06-10 07:28:13 root by init


[edit]
vyos@vyos# compare

 copy

vyos@vyos# copy
Possible completions:
 > cluster      Clustering
 > firewall     Firewall
 > interfaces   Network interfaces
 > load-balancing
                Configure load-balancing
 > nat          Network Address Translation (NAT) parameters
 > policy       Routing policy
 > protocols    Routing protocol parameters
 > service      Services
 > system       System parameters
 > traffic-policy
                Quality of Service (QOS) policy type
 > vpn          Virtual Private Network (VPN)
 > zone-policy  Configure zone-policy


[edit]
vyos@vyos# copy

 delete

vyos@vyos# delete
Possible completions:
 > interfaces   Network interfaces
 > service      Services
 > system       System parameters


[edit]
vyos@vyos# delete

 discard

vyos@vyos# discard
Possible completions:
  <Enter>    Execute the current command

[edit]
vyos@vyos# discard

 edit

vyos@vyos# edit
Possible completions:
 > cluster      Clustering
 > firewall     Firewall
 > interfaces   Network interfaces
 > load-balancing
                Configure load-balancing
 > nat          Network Address Translation (NAT) parameters
 > policy       Routing policy
 > protocols    Routing protocol parameters
 > service      Services
 > system       System parameters
 > traffic-policy
                Quality of Service (QOS) policy type
 > vpn          Virtual Private Network (VPN)
 > zone-policy  Configure zone-policy


[edit]
vyos@vyos# edit

 exit

vyos@vyos# exit
Possible completions:
  <Enter>       Execute the current command
  discard       Discard any changes


[edit]
vyos@vyos# exit

 load

vyos@vyos# load
Possible completions:
  <Enter>                Load from system config file
  <file>                Load from file on local machine
  scp://<user>:<passwd>@<host>/<file>    Load from file on remote machine
  ftp://<user>:<passwd>@<host>/<file>    Load from file on remote machine
  http://<host>/<file>            Load from file on remote machine
  tftp://<host>/<file>            Load from file on remote machine


[edit]
vyos@vyos# load

 loadkey

vyos@vyos# loadkey
vyos
[edit]
vyos@vyos# loadkey

 merge

vyos@vyos# merge
Possible completions:
  <Enter>                Merge from system config file
  <file>                Merge from file on local machine
  scp://<user>:<passwd>@<host>/<file>    Merge from file on remote machine
  ftp://<user>:<passwd>@<host>/<file>    Merge from file on remote machine
  http://<host>/<file>            Merge from file on remote machine
  tftp://<host>/<file>            Merge from file on remote machine


[edit]
vyos@vyos# merge

 rename

vyos@vyos# rename
Possible completions:
 > cluster      Clustering
 > firewall     Firewall
 > interfaces   Network interfaces
 > load-balancing
                Configure load-balancing
 > nat          Network Address Translation (NAT) parameters
 > policy       Routing policy
 > protocols    Routing protocol parameters
 > service      Services
 > system       System parameters
 > traffic-policy
                Quality of Service (QOS) policy type
 > vpn          Virtual Private Network (VPN)
 > zone-policy  Configure zone-policy


[edit]
vyos@vyos# rename

 rollback

vyos@vyos# rollback
Possible completions:
  <N>    Rollback to revision N (currently requires reboot)

  Revisions:
    0    2018-06-16 09:42:11 vyos by cli
    1    2018-06-16 09:41:53 vyos by cli
    2    2018-06-16 09:40:12 vyos by cli
    3    2018-06-10 07:28:14 root by boot-config-loader
    4    2018-06-10 07:28:13 root by init


[edit]
vyos@vyos# rollback

 run

vyos@vyos# run
Possible completions:
  add           Add an object to a service
  clear         Clear system information
  clone         Clone an object
  configure     Enter configure mode
  connect       Establish a connection
  copy          Copy an object
  delete        Delete an object
  disconnect    Take down a connection
  force         Force an operation
  format        Format a device
  generate      Generate an object
  install       Install a new system
  monitor       Monitor system information
  ping          Send IPv4 or IPv6 ICMP (Internet Control Message Protocol) echo requests
  poweroff      Poweroff the system
  reboot        Reboot the system
  release       Release specified variable
  rename        Rename an object
  renew         Renew specified variable
  reset         Reset a service
  restart       Restart a service
  set           Set operational options
  show          Show system information
  telnet        Telnet to a node
  traceroute    Track network path to node
  update        Update data for a service


[edit]
vyos@vyos# run

 save

vyos@vyos# save
Possible completions:
  <Enter>                Save to system config file
  <file>                Save to file on local machine
  scp://<user>:<passwd>@<host>/<file>    Save to file on remote machine
  ftp://<user>:<passwd>@<host>/<file>    Save to file on remote machine
  tftp://<host>/<file>            Save to file on remote machine


[edit]
vyos@vyos# save

 set

vyos@vyos# set
Possible completions:
 > cluster      Clustering
 > firewall     Firewall
 > interfaces   Network interfaces
 > load-balancing
                Configure load-balancing
 > nat          Network Address Translation (NAT) parameters
 > policy       Routing policy
 > protocols    Routing protocol parameters
 > service      Services
 > system       System parameters
 > traffic-policy
                Quality of Service (QOS) policy type
 > vpn          Virtual Private Network (VPN)
 > zone-policy  Configure zone-policy


[edit]
vyos@vyos# set

 show

vyos@vyos# show
Possible completions:
 > interfaces   Network interfaces
 > service      Services
 > system       System parameters


[edit]
vyos@vyos# show

参考になれば幸いです。

試した環境

HW

Product Name
  ProLiant DL160 Gen8
CPU
  4 CPUs x Intel(R) Xeon(R) CPU E5-2603 0 @ 1.80GHz
Memory
  16GB
iLO Firmware Version
  2.44 Jul 19 2016

仮想化基盤

OS
 vmware ESXi 6.0.0 (Build 3620759)
操作環境
 VMware Host Client
 iMac (27-inch, Mid 2010)
 macOS High Sierra
 ブラウザ
  Google Chrome
  Safari

ゲストOS

vyos@vyos:~$ show version
Version:      VyOS 1.1.8
Description:  VyOS 1.1.8 (helium)
Copyright:    2017 VyOS maintainers and contributors
Built by:     maintainers@vyos.net
Built on:     Sat Nov 11 13:44:36 UTC 2017
Build ID:     1711111344-b483efc
System type:  x86 64-bit
Boot via:     image
Hypervisor:   VMware
HW model:     VMware Virtual Platform
HW S/N:       VMware-xxxx
HW UUID:      xxxx
Uptime:       12:10:43 up  2:26,  1 user,  load average: 0.01, 0.02, 0.05

vyos@vyos:~$

スポンサーリンク