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

creates a new admin partition

Synopsys

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

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, permitted on this partition.

Default value: 10240

Minimum value: 0

minBandwidth

Minimum bandwidth in Kbps, permitted on this partition.

Default value: 10240

Minimum value: 0

maxConn

Maximum number of connections permitted on this partition.

Default value: 1024

Minimum value: 0

maxMemLimit

Maximum memory allowed for this partition in megabytes.

Default value: 10

Example

add partition <pname>

rm ns partition

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

set the properties of partition

Synopsys

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

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, permitted on this partition.

Default value: 10240

Minimum value: 0

minBandwidth

Minimum bandwidth in Kbps, permitted on this partition.

Default value: 10240

Minimum value: 0

maxConn

Maximum number of connections permitted on this partition.

Default value: 1024

Minimum value: 0

maxMemLimit

Maximum memory allowed for this partition in megabytes.

Default value: 10

Example

set partition <pname>

unset ns partition

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] [-minBandwidth] [-maxConn] [-maxMemLimit]

switch ns partition

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

bind resources to a partition.

Synopsys

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

bridgegroup

Bridge group Identifier.

Minimum value: 1

Maximum value: 1000

Example

bind partition <name> -vlan 2

unbind ns partition

Unbind resources to a partition.

Synopsys

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

bridgegroup

Bridge group Identifier.

Minimum value: 1

Maximum value: 1000

Example

unbind partition <name> -vlan 2

show ns partition

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, permitted on this partition.

minBandwidth

Minimum bandwidth in Kbps, permitted on this partition.

maxConn

Maximum number of connections permitted on this partition.

maxMemLimit

Maximum memory allowed for this partition in megabytes.

stateflag

Used internally for display.

vlan

Identifier of the vlan that is assigned to this partition.

bridgegroup

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

devno

count

Example

show partition

stat ns partition

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

Minimum Bandwidth (MinBW)

Minimum Bandwidth required by the partition.

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.

Was this article helpful?