Published On: August 6ᵗʰ, 2019 02:06
Cisco Enterprise Network Function Virtualization Infrastructure Software Command Reference
System and IP Configuration Commands
- system settings default-gw
- system settings disk-space threshold
- system settings hostname
- system settings ip-receive-acl
- show running-config system settings ip-receive-acl
- system settings mgmt
- system settings wan
- system storage
- show system settings
- show system settings-native
- show system top
- show system disk-space
- show system file-handles
- show system processes
- show system services
- show system status
- show platform-detail
- show version
- show free-memory
- show certificate
- show file
- show cores
- show nfv_mode
system settings default-gw
To configure the default gateway, use the system settings default-gw command in global configuration mode. To delete the default gateway, use the no form of the command.
Syntax Description
Command History
system settings disk-space threshold
To configure the threshold for disk space usage, use the system settings disk-space threshold command in global configuration mode. To delete the configured disk space usage threshold, use the no form of the command.
Syntax Description
threshold value |
Specifies the threshold value in percentage for disk space usage. Valid range is from 1 to 100. When the disk space usage reaches the specified threshold, a notification is sent. |
Command History
system settings hostname
system settings ip-receive-acl
To configure the source network for Access Control List (ACL) access to the management interface, use the system settings ip-receive-acl command in global configuration mode. To remove the configured source network, use the no form of the command.
system settings ip-receive-acl source-ip-address [ service { https | icmp | netconf | scpd | snmp | ssh } ] [ priority priority] [ action { accept | reject | drop } ]
no system settings ip-receive-acl
Syntax Description
Command History
Examples
The following example opens port 22222 for all IPs.
nfvis(config)# system settings ip-receive-acl 0.0.0.0/0 service scpd priority 2 action accept nfvis(config-ip-receive-acl-0.0.0.0/0)# commit
show running-config system settings ip-receive-acl
system settings mgmt
To configure the management interface either with a static IP address or with DHCP, use the system settings mgmt command in global configuration mode.
system settings mgmt {dhcp | ip address mgmt-ip-address subnet }
no system settings mgmt { dhcp | ip address mgmt-ip-address }
Syntax Description
ip address mgmt-ip-address |
Specifies the management IP address. |
subnet |
Specifies the IP subnet for the management IP address. |
Command History
Usage Guidelines
You can configure DHCP either on the WAN interface or the management interface; you cannot configure DHCP on both the interfaces simultaneously.
Before configuring the management interface with DHCP, delete the default gateway. After you configure DHCP on the management interface, either reboot the system or enter the command hostaction mgmt-dhcp-renew to renew the DHCP IP address.
Examples
The following command sets the IP address and netmask for the management interface:
nfvis(config) system settings mgmt ip address 192.168.1.2 255.255.255.0 nfvis(config)commit
The following command configures DHCP on the management interface:
nfvis(config)# no system settings default-gw nfvis(config)# system settings mgmt dhcp nfvis(config)# commit nfvis# hostaction mgmt-dhcp-renew nfvis# end
system settings wan
To configure the WAN interface either with a static IP address or with DHCP, use the system settings wan command in global configuration mode.
system settings wan { dhcp | ip address wan-ip-address netmask-address | vlan vlan-id}
no system settings wan { dhcp | ip address wan-ip-address netmask-address | vlan vlan-id}
Syntax Description
ip-address wan-ip-address |
The WAN IP address. |
netmask netmask-address |
The netmask for the WAN IP address. |
vlan vlan-id |
Specifies the VLAN tagging ID. Valid range: 1-4094 If no VLAN is configured, the default value is set to "untag". |
Command History
Usage Guidelines
You can configure DHCP either on the WAN interface or the management interface; you cannot configure DHCP on both the interfaces simultaneously.
Before configuring the WAN interface with DHCP, delete the default gateway. After you configure DHCP on the WAN interface, either reboot the system or enter the command hostaction wan-dhcp-renew to renew the DHCP IP address.
Examples
The following command sets the IP address and netmask for the WAN interface:
nfvis(config)# system settings wan ip-address 172.19.162.209 255.255.255.0 nfvis(config)# commit
The following command configures DHCP on the WAN interface:
nfvis(config)# no system settings default-gw nfvis(config)# system settings wan dhcp nfvis(config)# commit nfvis# hostaction wan-dhcp-renew nfvis# end
system storage
To configure the system storage, use the system storage command in global configuration mode. Use the no form of the command to delete the storage configuration.
system storage storage_name storagetype storagetype storage_space_total_gb storage_space_total_gb server_ip server_ip server_path server_path
Syntax Description
storage_name |
Specifies the storage name. |
storagetype storagetype |
Specifies the storage type. Valid values are internal, iscsi, nfs, and not_enabled. |
storage_space_total_gb storage_space_total_gb |
Specifies the total storage space. |
server_ip server_ip |
Specifies the IP address of the remote storage device server. |
server_path server_path |
Specifies the remote server directory path. |
Command History
Examples
nfvis(config)# system storage nfs_storage Value for 'storagetype' [internal,iscsi,nfs,not_enabled]: nfs Value for 'storage_space_total_gb' (<decimal number>): 100 Value for 'server_ip' (<string, min: 1 chars, max: 80 chars>): 198.51.100.1 Value for 'server_path' (<string, min: 1 chars, max: 64 chars>): /export/vm/sample nfvis(config-storage-nfs_storage)# commit
show system settings
Syntax Description
Command History
Release | Modification |
---|---|
3.7.1 |
Brief parameter was added and other parameters were removed. |
3.5.1 |
This command was introduced. |
Examples
nfvis# show system settings system settings brief lan-br ipv4_address 192.0.2.1 ipv4_netmask 255.255.255.0 ipv4_dhcp disabled global_ipv6_address :: global_prefixlen 0 link_local_ipv6_address fe80::72db:98ff:fe07:1f35 link_local_prefixlen 64 ipv6_dhcp disabled ipv6_slaac disabled system settings brief wan-br ipv4_address 198.51.100.1 ipv4_netmask 255.255.255.0 ipv4_dhcp disabled global_ipv6_address :: global_prefixlen 0 link_local_ipv6_address fe80::72db:98ff:fe70:2f6e link_local_prefixlen 64 ipv6_dhcp enabled ipv6_slaac disabled ipv6_dhcp_state Stateful
show system settings-native
To display all information related to management settings, use the show system settings-native command in privileged EXEC mode.
Syntax Description
dns |
(Optional) DNS details. |
domain |
(Optional) Domain name. |
gateway |
(Optional) Default gateway details. |
hostname |
(Optional) Hostname details. |
mgmt |
(Optional) Management interface details. |
wan |
(Optional) Wan interface details |
vlan |
(Optional) Provides information about the VLAN tag. |
Command History
Examples
The following is a sample output of the show system settings-native command without any keywords:
nfvis# show system settings-native system settings-native mgmt ip-info interface lan-br system settings-native mgmt ip-info ipv4_address 192.168.1.1 system settings-native mgmt ip-info netmask 255.255.255.0 system settings-native mgmt ip-info ipv6_address fe80::7aba:f9ff:feee:2f97 system settings-native mgmt ip-info prefixlen 64 system settings-native mgmt ip-info mac_address 80:e0:1d:37:93:47 system settings-native mgmt ip-info mtu 1500 system settings-native mgmt ip-info txqueuelen 0 system settings-native mgmt stats rx_packets 64157 system settings-native mgmt stats rx_bytes 8869998 system settings-native mgmt stats rx_errors 0 system settings-native mgmt stats rx_dropped 101 system settings-native mgmt stats rx_overruns 0
The following is a sample output of the show system settings-native command to verify the VLAN configuration details. If no VLAN is configured, the default setting (untagged) is displayed as shown below:
nfvis# show system settings-native wan vlan tag system settings-native wan vlan tag untagged
show system top
Syntax Description
Command History
Examples
nfvis# show system top top - 14:35:44 up 12 min, 1 user, load average: 0.00, 0.11, 0.17 Tasks: 272 total, 1 running, 271 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.6 us, 0.2 sy, 0.0 ni, 99.2 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 16158248 total, 14234804 free, 1435900 used, 487544 buff/cache KiB Swap: 8388604 total, 8388604 free, 0 used. 14467448 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1 root 20 0 44028 6628 3904 S 0.0 0.0 0:04.90 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd 3 root 20 0 0 0 0 S 0.0 0.0 0:00.02 ksoftirqd/0
show system disk-space
To display information about the system disk space, use the show system disk-space command in privileged EXEC mode.
Syntax Description
Command History
Examples
nfvis# show system disk-space ASSOCIATED PHYSICAL TOTAL SIZE SIZE USE DISK NAME DISK SIZE USED AVAILABLE PERCENT ------------------------------------------------------------ lv_data sdf2 45G 321M 42G 1% lv_var sdf2 2.0G 461M 1.4G 26% lv_root sdf2 7.8G 1.7G 5.7G 23% extdatastore1 sdd 917G 77M 871G 1%
show system file-handles
show system processes
To display information on the processes in the system, use the show system processes command in privileged EXEC mode.
Syntax Description
Command History
Examples
nfvis# show system processes PID CPU MEM VSZ RSS START TIME CMD -------------------------------------------------- USER PID %CPU %MEM VSZ RSS TTY STAT root 1 0.0 0.0 192156 7424 ? Ss root 1 0.0 0.0 192156 7424 ? Ss root 1 0.0 0.0 192156 7424 ? Ss root 1 0.0 0.0 192156 7424 ? Ss root 1 0.0 0.0 192156 7424 ? Ss root 1 0.0 0.0 192156 7424 ? Ss root 1 0.0 0.0 192156 7424 ? Ss root 1 0.0 0.0 192156 7424 ? Ss root 1 0.0 0.0 192156 7424 ? Ss root 1 0.0 0.0 192156 7424 ? Ss
show system services
show system status
To display system defaults and services status, use the show system status command in privileged EXEC mode.
Syntax Description
entity-name |
(Optional) Name of the entity or service. |
status |
(Optional) Display the entity or service status. |
type |
(Optional) Display the type of the entity or service. |
Command History
show platform-detail
To display the hardware information, port details, switch details and software packages related to the platform, use the show platform-detail command in privileged EXEC mode.
show platform-detail [ hardware_info | port_detail | software_packages | switch_detail]
Syntax Description
hardware_info |
The hardware information of the platform. |
port_detail |
The details of the ports used by the platform. |
software_packages |
The software packages installed on the platform. |
switch_detail |
The details of the switch on the platform. |
Command Default
None
Command Modes
Privileged EXEC (#)
Command History
Release | Modification |
---|---|
3.5.1 |
This command was introduced. |
show version
To display the name, version number and build date of the NFVIS software that is currently running in the system, use the show version command in privileged EXEC mode
show version [ build-date | name | version]
Syntax Description
build-date |
(Optional) The build date of the version. |
name |
(Optional) The name of the version. |
version |
(Optional) The version number of the version. |
Command Default
Displays the name, version number, and build date of Cisco Enterprise NFVIS.
Command Modes
Privileged EXEC (#)
Command History
Examples
The following is the sample output from the show versioncommand:
nfvis# show version version name "Enterprise NFV Infrastructure Software" version version 3.5.1-FC4
show certificate
To show all certificates and related files in the system, use the show certificate command in privileged EXEC mode.
Syntax Description
Command History
Examples
nfvis# show certificates File Name Type Last Modified Size ca-bundle.legacy.crt ca-trust Wed Mar 15 12:08:40 2017 59653 ca-bundle.trust.crt ca-trust Fri Oct 6 10:39:53 2017 346654 email-ca-bundle.pem ca-trust Fri Oct 6 10:39:53 2017 208874 tls-ca-bundle.pem ca-trust Fri Oct 6 10:39:53 2017 262042 objsign-ca-bundle.pem ca-trust Fri Oct 6 10:39:53 2017 208976 server.key nginx Fri Oct 6 11:06:12 2017 1679 server.crt nginx Fri Oct 6 11:06:12 2017 964 server.key self-signed Fri Oct 6 11:06:12 2017 1679 server.csr self-signed Fri Oct 6 11:06:12 2017 887 server.crt self-signed Fri Oct 6 11:06:12 2017 964 ca-bundle.crt tls Fri Oct 6 10:39:53 2017 262042 ca-bundle.trust.crt tls Fri Oct 6 10:39:53 2017 346654 cert.pem tls Fri Oct 6 10:39:53 2017 262042
show file
Syntax Description
Command History
Examples
nfvis# show file /data/intdatastore/logs/2017-10/confd_devel.log-20171008 <DEBUG> 7-Oct-2017::19:30:08.444 nfvis confd[3626]: devel-cdb connect from python <DEBUG> 7-Oct-2017::19:30:08.444 nfvis confd[3626]: devel-cdb client python has pid 3724/174 <DEBUG> 7-Oct-2017::19:30:08.444 nfvis confd[3626]: devel-cdb new session on operational for python ...
show cores
To show crash core files, run the show cores command in privileged EXEC mode.
show cores
Syntax Description
Command Default
None
Command Modes
Privileged EXEC (#)Command History
Release | Modification |
---|---|
3.7.1 |
This command was introduced. |
Usage Guidelines
None
Examples
nfvis# show cores Local storage: File Name Last Modified Size