ADC CLI Commands

ns-partition

The following operations can be performed on “ns-partition”:

show stat switch unbind add bind rm set unset

show ns partition

Display all the partitions configured

Synopsis

show ns partition []

Arguments

partitionName Name of partition for which to display parameters.

Output

partitionid Partition Id

partitionType Type of the Partition

maxBandwidth Maximum bandwidth, in Kbps, that the partition can consume. A zero value indicates the bandwidth is unrestricted on the partition and it can consume up to the system limits.

minBandwidth Minimum bandwidth, in Kbps, that the partition can consume. A zero value indicates the bandwidth is unrestricted on the partition and it can consume up to the system limits

maxConn Maximum number of concurrent connections that can be open in the partition. A zero value indicates no limit on number of open connections.

maxMemLimit Maximum memory, in megabytes, allocated to the partition. A zero value indicates the memory is unlimited on the partition and it can consume up to the system limits.

stateflag Used internally for display.

vlan Identifier of the vlan that is assigned to this partition.

vxlan Identifier of the vxlan that is assigned to this partition.

bridgegroup Identifier of the bridge group that is assigned to this partition.

partitionMAC Special MAC address for the partition which is used for communication over shared vlans in this partition. If not specified, the MAC address is auto-generated.

pmacInternal Partition MAC is generated internally.

devno count

Example

show partition

stat ns partition

Displays statistics that have been collected for the specific partition.

Synopsis

stat ns partition [] \[-detail] \[-fullValues] \[-ntimes <positive\_integer>] \[-logFile <input\_filename>] \[-clearstats \( basic | full )]

Arguments

partitionName Name of the partition.

detail Specifies detailed output (including more statistics). The output can be quite voluminous. Without this argument, the output will show only a summary.

fullValues Specifies that numbers and strings should be displayed in their full form. Without this option, long strings are shortened and large numbers are abbreviated

ntimes The number of times, in intervals of seven seconds, the statistics should be displayed. Default value: 1 Minimum value: 0

logFile The name of the log file to be used as input.

clearstats Clear the statsistics / counters

Possible values: basic, full

Output

count devno stateflag

Counters

Maximum Bandwidth (MaxBW) Maximum Banwidth allowed for the partition.

Maximum Connection (MaxConn) Maximum Connection allowed for the partition.

Maximum Memory (MaxMem) Maximum memory limit for the partition.

Current Bandwith (CurBW) Current Bandwidth usage for the partition.

Current Connections (CurConn) Current Connections on this partition.

Memory Usage(%) (MemUsgPcnt) Memory usage(%) on this partition.

Total Packet Drops (TotDrops) Total packet drops for the partition.

Total Drops(KB) (TotTokenDrops) Total drops(KB) for the partition.

Total Connection Drops (TotConnDrops) Total connection drops for the partition.

switch ns partition

switches to a new admin partition.

Synopsis

switch ns partition \(-force | -save)

Arguments

partitionName Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters.

force Switches to new admin partition without prompt for saving configuration. Configuration will not be saved

save Switches to new admin partition without prompt for saving configuration. Configuration will be saved

Example

switch partition

unbind ns partition

Unbind resources to a partition.

Synopsis

unbind ns partition \(-vlan <positive\_integer> | -vxlan <positive\_integer> | -bridgegroup <positive\_integer>)

Arguments

partitionName Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters.

vlan Vlan Identifier. Minimum value: 1 Maximum value: 4094

vxlan VXLAN Identifier. Minimum value: 1 Maximum value: 16777215

bridgegroup Bridge group Identifier. Minimum value: 1 Maximum value: 1000

Example

unbind partition -vlan 2

add ns partition

creates a new admin partition

Synopsis

add ns partition [-maxBandwidth ] [-maxConn ] [-maxMemLimit ] [-partitionMAC ]

Arguments

partitionName Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters.

maxBandwidth Maximum bandwidth, in Kbps, that the partition can consume. A zero value indicates the bandwidth is unrestricted on the partition and it can consume up to the system limits. Default value: 10240 Minimum value: 0

maxConn Maximum number of concurrent connections that can be open in the partition. A zero value indicates no limit on number of open connections. Default value: 1024 Minimum value: 0

maxMemLimit Maximum memory, in megabytes, allocated to the partition. A zero value indicates the memory is unlimited on the partition and it can consume up to the system limits. Default value: 10 Minimum value: 0 Maximum value: 1048576

partitionMAC Special MAC address for the partition which is used for communication over shared vlans in this partition. If not specified, the MAC address is auto-generated.

Example

add partition

bind ns partition

bind resources to a partition.

Synopsis

bind ns partition \(-vlan <positive\_integer> | -vxlan <positive\_integer> | -bridgegroup <positive\_integer>)

Arguments

partitionName Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters.

vlan Vlan Identifier. Minimum value: 1 Maximum value: 4094

vxlan VXLAN Identifier. Minimum value: 1 Maximum value: 16777215

bridgegroup Bridge group Identifier. Minimum value: 1 Maximum value: 1000

Example

bind partition -vlan 2

rm ns partition

deletes a admin partition

Synopsis

rm ns partition

Arguments

partitionName Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters.

Example

rm partition

set ns partition

set the properties of partition

Synopsis

set ns partition [-maxBandwidth ] [-maxConn ] [-maxMemLimit ] [-partitionMAC ]

Arguments

partitionName Name of the Partition. Must begin with an ASCII alphanumeric or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters.

maxBandwidth Maximum bandwidth, in Kbps, that the partition can consume. A zero value indicates the bandwidth is unrestricted on the partition and it can consume up to the system limits. Default value: 10240 Minimum value: 0

maxConn Maximum number of concurrent connections that can be open in the partition. A zero value indicates no limit on number of open connections. Default value: 1024 Minimum value: 0

maxMemLimit Maximum memory, in megabytes, allocated to the partition. A zero value indicates the memory is unlimited on the partition and it can consume up to the system limits. Default value: 10 Minimum value: 0 Maximum value: 1048576

partitionMAC Special MAC address for the partition which is used for communication over shared vlans in this partition. If not specified, the MAC address is auto-generated.

Example

set partition

unset ns partition

Use this command to remove ns partition settings.Refer to the set ns partition command for meanings of the arguments.

Synopsis

unset ns partition [-maxBandwidth] [-maxConn] [-maxMemLimit] [-partitionMAC]

ns-partition