Skip to content

ns partition

The following operations can be performed on "ns partition":

add| rm| set| unset| switch| bind| unbind| show| stat

add ns partition

p{white-space: pre-wrap;}

creates a new admin partition

Synopsys

add ns partition <partitionName> [-maxBandwidth <positive_integer>] [-maxConn <positive_integer>] [-maxMemLimit <MBytes>] [-partitionMAC <mac_addr>]

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 <pname>

rm ns partition

p{white-space: pre-wrap;}

deletes a admin partition

Synopsys

rm ns partition <partitionName>

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 <pname>

set ns partition

p{white-space: pre-wrap;}

set the properties of partition

Synopsys

set ns partition <partitionName> [-maxBandwidth <positive_integer>] [-maxConn <positive_integer>] [-maxMemLimit <MBytes>] [-partitionMAC <mac_addr>]

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 <pname>

unset ns partition

p{white-space: pre-wrap;}

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

Synopsys

unset ns partition <partitionName> [-maxBandwidth] [-maxConn] [-maxMemLimit] [-partitionMAC]

switch ns partition

p{white-space: pre-wrap;}

switches to a new admin partition

Synopsys

switch ns partition <partitionName>

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

switch partition <pname>

bind ns partition

p{white-space: pre-wrap;}

bind resources to a partition.

Synopsys

bind ns partition <partitionName> (-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 <name> -vlan 2

unbind ns partition

p{white-space: pre-wrap;}

Unbind resources to a partition.

Synopsys

unbind ns partition <partitionName> (-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 <name> -vlan 2

show ns partition

p{white-space: pre-wrap;}

Display all the partitions configured

Synopsys

show ns partition [<partitionName>]

Arguments

partitionName

Name of partition for which to display parameters.

Outputs

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

p{white-space: pre-wrap;}

Displays statistics that have been collected for the specific partition.

Synopsys

stat ns partition [<partitionName>] [-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

Outputs

count

devno

stateflag

Outputs

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.