May 4, 2021

NSX CLI help - NSX-T

Just look at the output from the list command from NSX CLI (NSX-T), this product is huge

 
 
nsxt1> get version
VMware NSX Software, Version 3.0.1.0.0.16404476
Product Version 3.0.1.0.0.16404613
 
 
nsxt1> list
clear auth-policy vidm enabled
clear auth-policy vidm lb-extern enabled
clear banner
clear hardening-policy mandatory-access-control enabled
clear logging-servers
clear name-servers
clear search-domains
clear service http redirect-host
clear service install-upgrade enabled
clear service manager logging-level
clear service ntp start-on-boot
clear service snmp start-on-boot
clear service ssh start-on-boot
clear user <username> password-expiration
copy file <filename> url <url>
copy url <url> [file <filename>]
deactivate cluster
del all capture sessions
del capture session <session-id-arg>
del file <filename>
del logging-server <hostname-or-ip-address[:port]> proto <proto> level <level> [facility <facility>] [messageid <messageid>] [structured-data <structured-data>]
del name-server <ip-address>
del ntp-server <hostname-or-ip-address>
del route prefix <prefix> gateway <gateway-ip> [interface <interface-name>]
del search-domains <domain>
del snmp v2-targets <hostname-or-ip-address[:port]>
del snmp v3-targets <hostname-or-ip-address[:port]>
del snmp v3-users <v3-user>
del ssh-known-host <hostname-or-ip-address[:port]>
del user <username> ssh-keys label <key-label> [password <password>]
detach node <node-id>
detach node <node-id> ignore-repository-ip-check
display capture session <session-id-arg>
display capture session <session-id-arg> parameters <arguments>
exit
get all capture sessions
get arp-table
get auth-policy api lockout-period
get auth-policy api lockout-reset-period
get auth-policy api max-auth-failures
get auth-policy cli lockout-period
get auth-policy cli max-auth-failures
get auth-policy minimum-password-length
get auth-policy vidm
get capture session <session-id-arg>
get certificate api
get certificate api thumbprint
get certificate cluster
get certificate cluster text
get certificate cluster thumbprint
get cgroup <uuid> [<translation-type>]
get cgroups
get cgroups with ip <ip-address>
get cgroups with mac <hardware-address>
get cgroups with vif <vif>
get cli-timeout
get clock
get cluster config
get cluster status
get cluster status verbose
get configuration
get cpu-stats
get data <data-id>
get data with receiver <uuid>
get domain-object <uuid>
get domain-objects <domain_object_type>
get domain-objects <objects_type_with_component_name> <component-name>
get eula
get eula acceptance
get file <filename>
get file <filename> thumbprint
get files
get filesystem-stats
get firewall exclude-list
get firewall orphaned-section
get firewall published-entity
get firewall published-entity <published-entity-type> <published-entity-id>
get firewall status
get firewall summary
get hardening-policy mandatory-access-control report [file <filename> [all]]
get hardening-policy mandatory-access-control status
get hostname
get interface <interface-name>
get interfaces
get last processed barrier <uuid>
get log-file <filename>
get log-file <filename> follow
get logging-servers
get logical-router <uuid>
get logical-router <uuid> <route>
get logical-router <uuid> <route> <prefix>
get logical-router <uuid> interface <interface-id>
get logical-router <uuid> interfaces
get logical-router <uuid> routing-config
get logical-router routes <prefix>
get logical-routers
get logical-switch <uuid> ports
get logical-switch <vni-or-uuid>
get logical-switch <vni-or-uuid> arp-table
get logical-switch <vni-or-uuid> arp-table all
get logical-switch <vni-or-uuid> arp-table all verbose
get logical-switch <vni-or-uuid> arp-table remote
get logical-switch <vni-or-uuid> arp-table remote verbose
get logical-switch <vni-or-uuid> arp-table verbose
get logical-switch <vni-or-uuid> mac-table
get logical-switch <vni-or-uuid> mac-table all
get logical-switch <vni-or-uuid> mac-table all verbose
get logical-switch <vni-or-uuid> mac-table remote
get logical-switch <vni-or-uuid> mac-table remote verbose
get logical-switch <vni-or-uuid> mac-table verbose
get logical-switch <vni-or-uuid> rtep-group
get logical-switch <vni-or-uuid> stats
get logical-switch <vni-or-uuid> transport-node-table
get logical-switch <vni-or-uuid> verbose
get logical-switch <vni-or-uuid> vtep
get logical-switch <vni-or-uuid> vtep verbose
get logical-switch-port <uuid>
get logical-switches
get logical-switches stats
get managers
get memory-stats
get name-servers
get network-stats
get node central-config
get node upgrade status
get nodes
get ntp-server associations
get ntp-servers
get processes
get processes monitor
get publication <uuid>
get publication dump <filename>
get publications with transport-node <uuid>
get realization-status <uuid>
get receivers
get route prefix <prefix>
get routes
get routing-domain <uuid> vtep
get routing-domains
get search-domains
get service <service-name>
get service controller logging-config
get service controller logging-config logging-level <level>
get service controller logging-config name <string>
get service controller logging-config pattern <string>
get service controller logging-level
get services
get site-replicator remote-sites
get snmp v2-configured
get snmp v2-targets
get snmp v3-configured
get snmp v3-engine-id
get snmp v3-protocols
get snmp v3-targets
get snmp v3-users
get sockets
get stretched cgroup <uuid> <translation-type>
get support-bundle [file <filename> [all]]
get transport-node <uuid> agent-status
get transport-node <uuid> arp-table
get transport-node <uuid> mac-table
get transport-node <uuid> routing-domain
get transport-node <uuid> routing-vtep
get transport-node <uuid> status
get transport-node <uuid> threat-status
get transport-node <uuid> vifs
get transport-node <uuid> vtep
get transport-nodes status
get upgrade progress-status
get upgrade-bundle <bundle-name> playbook <playbook-file>
get upgrade-bundle playbooks
get uptime
get user <username> password-expiration
get user <username> ssh-keys
get user <username> status
get version
get vif <vif>
get vtep-group <int> vtep
get vtep-groups
help
join <ip-address[:port]> cluster-id <cluster-id> thumbprint <thumbprint> [token <api-token>] [username <username> [password <password>]] [force]
list
nslookup <hostname>
on <registered-node-uuid> exec [<command>]
ping <hostname-or-ip-address> [repeat <number>]
reboot [force]
restart service <service-name>
resume upgrade-bundle <bundle-name> playbook
set auth-policy api lockout-period <lockout-period>
set auth-policy api lockout-reset-period <lockout-reset-period>
set auth-policy api max-auth-failures <auth-failures>
set auth-policy cli lockout-period <lockout-period>
set auth-policy cli max-auth-failures <auth-failures>
set auth-policy minimum-password-length <password-length>
set auth-policy vidm enabled
set auth-policy vidm hostname <hostname-or-ip-address> thumbprint <thumbprint> client-id <vidm-client-id> client-secret <vidm-client-secret> node-hostname <hostname-or-ip-address>
set auth-policy vidm lb-extern enabled
set banner
set cli-timeout <timeout>
set eula accepted
set hardening-policy mandatory-access-control enabled
set hostname <hostname>
set logging-server <hostname-or-ip-address[:port]> proto <proto> level <level> [facility <facility>] [messageid <messageid>] [serverca <filename>] [clientca <filename>] [certificate <filename>] [key <filename>] [structured-data <structured-data>]
set logging-server <hostname-or-ip-address[:port]> proto <proto> level <level> [facility <facility>] [messageid <messageid>] [serverca <filename>] [structured-data <structured-data>]
set name-servers <ip-address>
set node central-config disabled
set node central-config enabled
set ntp-server <hostname-or-ip-address>
set repository-ip
set route prefix <prefix> gateway <gateway-ip> [interface <interface-name>]
set search-domains <domain>
set service async_replicator logging-level <async-replicator-level>
set service controller logging-level <level>
set service controller logging-level name <string> <level>
set service controller logging-level pattern <string> <level>
set service http basic-authentication <enabled>
set service http client-api-concurrency-limit <http-client-api-concurrency-limit>
set service http client-api-rate-limit <http-client-api-rate-limit>
set service http connection-timeout <http-conn-timeout>
set service http cookie-based-authentication <enabled>
set service http global-api-concurrency-limit <http-global-api-concurrency-limit>
set service http logging-level <http-level>
set service http redirect-host <hostname-or-ip-address>
set service http session-timeout <http-session-timeout>
set service install-upgrade enabled
set service manager logging-level <level>
set service manager logging-level <level> package <manager-package-name>
set service nsx-exporter logging-level <level>
set service nsx-platform-client logging-level <level>
set service ntp start-on-boot
set service policy logging-level <level>
set service snmp start-on-boot
set service ssh start-on-boot
set snmp community
set snmp community <community-string>
set snmp v2-targets <hostname-or-ip-address[:port]> community <community-string>
set snmp v3-engine-id <v3-engine-id>
set snmp v3-protocols auth-protocol <v3-auth-protocol> priv-protocol <v3-priv-protocol>
set snmp v3-targets <hostname-or-ip-address[:port]> user <v3-user>
set snmp v3-users <v3-user>
set snmp v3-users <v3-user> auth-password <auth-password> priv-password <priv-password>
set timezone <timezone>
set user <username> password [<password> [old-password <old-password>]]
set user <username> password-expiration <password-expiration>
set user <username> ssh-keys label <key-label> type <key-type> value <key-value> [password <password>]
set user <username> username <new-username>
shutdown [force]
start capture interface <interface-name> [direction <direction>] [file <filename>] [count <packet-count>] [expression <expression>]
start capture node <cap-node-id> fcport <fcport-id> direction <capture-direction>
start capture node <cap-node-id> fcport <fcport-id> direction <capture-direction> parameters <arguments>
start capture node <cap-node-id> fcport <fcport-id> direction <capture-direction> stream-to <receiver_address> port <port-id>
start capture node <cap-node-id> fcport <fcport-id> direction <capture-direction> stream-to <receiver_address> port <port-id> parameters <arguments>
start capture node <cap-node-id> filter <filter-name> stage <stage-type>
start capture node <cap-node-id> filter <filter-name> stage <stage-type> parameters <arguments>
start capture node <cap-node-id> filter <filter-name> stage <stage-type> stream-to <receiver_address> port <port-id>
start capture node <cap-node-id> filter <filter-name> stage <stage-type> stream-to <receiver_address> port <port-id> parameters <arguments>
start capture node <cap-node-id> interface <cap-interface-id> direction <capture-direction>
start capture node <cap-node-id> interface <cap-interface-id> direction <capture-direction> parameters <arguments>
start capture node <cap-node-id> interface <cap-interface-id> direction <capture-direction> stream-to <receiver_address> port <port-id>
start capture node <cap-node-id> interface <cap-interface-id> direction <capture-direction> stream-to <receiver_address> port <port-id> parameters <arguments>
start capture node <cap-node-id> pnic <pnic-value> direction <capture-direction>
start capture node <cap-node-id> pnic <pnic-value> direction <capture-direction> parameters <arguments>
start capture node <cap-node-id> pnic <pnic-value> direction <capture-direction> stream-to <receiver_address> port <port-id>
start capture node <cap-node-id> pnic <pnic-value> direction <capture-direction> stream-to <receiver_address> port <port-id> parameters <arguments>
start capture node <cap-node-id> vdrport <vdrport-id> direction <capture-direction>
start capture node <cap-node-id> vdrport <vdrport-id> direction <capture-direction> parameters <arguments>
start capture node <cap-node-id> vdrport <vdrport-id> direction <capture-direction> stream-to <receiver_address> port <port-id>
start capture node <cap-node-id> vdrport <vdrport-id> direction <capture-direction> stream-to <receiver_address> port <port-id> parameters <arguments>
start capture node <cap-node-id> vif <vif> direction <capture-direction>
start capture node <cap-node-id> vif <vif> direction <capture-direction> parameters <arguments>
start capture node <cap-node-id> vif <vif> direction <capture-direction> stream-to <receiver_address> port <port-id>
start capture node <cap-node-id> vif <vif> direction <capture-direction> stream-to <receiver_address> port <port-id> parameters <arguments>
start capture node <cap-node-id> vmknic <vmknic-id> direction <capture-direction>
start capture node <cap-node-id> vmknic <vmknic-id> direction <capture-direction> parameters <arguments>
start capture node <cap-node-id> vmknic <vmknic-id> direction <capture-direction> stream-to <receiver_address> port <port-id>
start capture node <cap-node-id> vmknic <vmknic-id> direction <capture-direction> stream-to <receiver_address> port <port-id> parameters <arguments>
start capture node <cap-node-id> vmnic <vmnic-id> direction <capture-direction>
start capture node <cap-node-id> vmnic <vmnic-id> direction <capture-direction> parameters <arguments>
start capture node <cap-node-id> vmnic <vmnic-id> direction <capture-direction> stream-to <receiver_address> port <port-id>
start capture node <cap-node-id> vmnic <vmnic-id> direction <capture-direction> stream-to <receiver_address> port <port-id> parameters <arguments>
start capture node <cap-node-id> vnic <vnic-id> direction <capture-direction>
start capture node <cap-node-id> vnic <vnic-id> direction <capture-direction> parameters <arguments>
start capture node <cap-node-id> vnic <vnic-id> direction <capture-direction> stream-to <receiver_address> port <port-id>
start capture node <cap-node-id> vnic <vnic-id> direction <capture-direction> stream-to <receiver_address> port <port-id> parameters <arguments>
start search resync <search-scope>
start service <service-name>
start upgrade-bundle <bundle-name> playbook <playbook-file>
stop capture session <session-id-arg>
stop service <service name> [force]
traceroute <hostname-or-ip-address>
verify logging-servers
verify upgrade-bundle <bundle-name>

No comments:

Post a Comment