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
Synopsis¶
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¶
deletes a admin partition
Synopsis¶
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
Synopsis¶
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¶
Use this command to remove ns partition settings.Refer to the set ns partition command for meanings of the arguments.
Synopsis¶
unset ns partition <partitionName> [-maxBandwidth] [-maxConn] [-maxMemLimit] [-partitionMAC]
switch ns partition¶
switches to a new admin partition
Synopsis¶
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.
Synopsis¶
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¶
Unbind resources to a partition.
Synopsis¶
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¶
Display all the partitions configured
Synopsis¶
show ns partition [<partitionName>]
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 [<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
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.