CRM
CRM View
Table 1 CRM View
Command | Purpose |
|---|---|
show crm summary | Display CRM configuration summary information. |
show crm thresholds {all|acl table|acl group|acl group entry|acl group counter|fdb|nexthop group member|nexthop group object|{ipv4|ipv6} {neighbor|nexthop|route}} | Display the threshold configuration of CRM. |
show crm resources {all|acl table|acl group|acl group entry|acl group counter|fdb|nexthop group member|nexthop group object|{ipv4|ipv6} {neighbor|nexthop|route}} | Display information about the resources monitored by CRM. |
show crm summary
[Command] show crm summary
[Purpose] Display CRM configuration summary information.
[View] Privileged User View
[Use Cases]
sonic# show crm summary
Polling Interval: 300 second(s)show crm thresholds {all|acl table|acl group|acl group entry|acl group counter|fdb|nexthop group member|nexthop group object|{ipv4|ipv6} {neighbor|nexthop|route}}
[Command] show crm thresholds {all|acl table|acl group|acl group entry|acl group counter|fdb|nexthop group member|nexthop group object|{ipv4|ipv6} {neighbor|nexthop|route}}
[Purpose] Display the threshold configuration of CRM.
[View] Privileged User View
[Use Cases]
show crm thresholds all
Resource Name Threshold Type Low Threshold High Threshold
-------------------- ---------------- --------------- ----------------
ipv4_route percentage 70 85
ipv6_route percentage 70 85
ipv4_nexthop percentage 70 85
ipv6_nexthop percentage 70 85
ipv4_neighbor percentage 70 85
ipv6_neighbor percentage 70 85
nexthop_group_member percentage 70 85
nexthop_group percentage 70 85
acl_table percentage 70 85
acl_group percentage 70 85
acl_entry percentage 70 85
acl_counter percentage 70 85
fdb_entry percentage 70 85
ipmc_entry percentage 70 85
snat_entry percentage 70 85
dnat_entry percentage 70 85
mpls_inseg percentage 70 85
mpls_nexthop percentage 70 85
sonic# show crm thresholds acl table
Resource Name Threshold Type Low Threshold High Threshold
--------------- ---------------- --------------- ----------------
acl_table percentage 70 85show crm resources {all|acl table|acl group|acl group entry|acl group counter|fdb|nexthop group member|nexthop group object|{ipv4|ipv6} {neighbor|nexthop|route}}
[Command] show crm resources {all|acl table|acl group|acl group entry|acl group counter|fdb|nexthop group member|nexthop group object|{ipv4|ipv6} {neighbor|nexthop|route}}
[Purpose] Display information about the resources monitored by CRM. Display information about the resources monitored by CRM.
[View] Privileged User View
[Use Cases]
sonic# show crm resources all
Resource Name Used Count Available Count
-------------------- ------------ -----------------
ipv4_route 49 171971
ipv6_route 9 84983
ipv4_nexthop 5 36710
ipv6_nexthop 0 36710
ipv4_neighbor 5 36710
ipv6_neighbor 0 36710
nexthop_group_member 4 15356
nexthop_group 2 4093
fdb_entry 24 45032
ipmc_entry 0 12288
snat_entry 0 0
dnat_entry 0 0
mpls_inseg 0 235741413
mpls_nexthop 0 235741413
srv6_nexthop 0 235741413
srv6_my_sid_entry 0 235741413
Stage Bind Point Resource Name Used Count Available Count
------- ------------ --------------- ------------ -----------------
INGRESS PORT acl_group 1 254
INGRESS PORT acl_table 1 9
INGRESS LAG acl_group 0 254
INGRESS LAG acl_table 1 9
EGRESS PORT acl_group 1 254
EGRESS PORT acl_table 1 9
EGRESS LAG acl_group 0 254
EGRESS LAG acl_table 1 9
Table ID Resource Name Used Count Available Count
--------------- --------------- ------------ -----------------
0x7000000000566 acl_entry 3 125
0x7000000000566 acl_counter 3 125
0x7000000000569 acl_entry 3 253
0x7000000000569 acl_counter 3 253
sonic# show crm resources ipv4 neighbor
Resource Name Used Count Available Count
--------------- ------------ -----------------
ipv4_neighbor 5 36710CRM Config
Table 2 CRM Config
Command | Purpose |
|---|---|
crm polling interval interval | Set the polling interval of CRM. |
crm thresholds {all|acl table|acl group|acl group entry|acl group counter|fdb|nexthop group member|nexthop group object|{ipv4|ipv6} {neighbor|nexthop|route}} type {percentage|used|free} | Set the CRM threshold type. |
crm thresholds {all|acl table|acl group|acl group entry|acl group counter|fdb|nexthop group member|nexthop group object|{ipv4|ipv6} {neighbor|nexthop|route}} {high|low} crm_threshold | Set thresholds for CRM resources. |
crm polling interval interval
[Command] crm polling interval interval
[Purpose] Set the polling interval of CRM.
[Parameters]
Parameter | Description |
|---|---|
interval | Specify the polling interval in seconds, the range is 1-9999. |
[View] Global Configuration View
[Use Cases]
sonic# configure terminal
sonic(config)# crm polling interval 50crm thresholds {all|acl table|acl group|acl group entry|acl group counter|fdb|nexthop group member|nexthop group object|{ipv4|ipv6} {neighbor|nexthop|route}} type {percentage|used|free}
[Command] crm thresholds {all|acl table|acl group|acl group entry|acl group counter|fdb|nexthop group member|nexthop group object|{ipv4|ipv6} {neighbor|nexthop|route}} type {percentage|used|free}
[Purpose] Set the CRM threshold type.
[View] Global Configuration View
[Use Cases]
sonic# configure terminal
sonic(config)# crm thresholds acl table type used
sonic(config)# crm thresholds acl group entry type used
sonic(config)# crm thresholds acl group counter type free
sonic(config)# crm thresholds nexthop group member type percentage
sonic(config)# crm thresholds ipv4 neighbor type used
sonic(config)# crm thresholds ipv6 neighbor type usedcrm thresholds {all|acl table|acl group|acl group entry|acl group counter|fdb|nexthop group member|nexthop group object|{ipv4|ipv6} {neighbor|nexthop|route}} {high|low} crm_threshold
[Command] crm thresholds {all|acl table|acl group|acl group entry|acl group counter|fdb|nexthop group member|nexthop group object|{ipv4|ipv6} {neighbor|nexthop|route}} {high|low} crm_threshold
[Purpose] Set thresholds for CRM resources.
[Parameters]
Parameter | Description |
|---|---|
crm_threshold | The range is 0-65535. |
[View] Global Configuration View
[Use Cases]
sonic(config)# crm thresholds ipv4 neighbor high 800
sonic(config)# crm thresholds ipv4 neighbor low 100
sonic(config)# crm thresholds ipv6 route high 500
sonic(config)# crm thresholds ipv6 route low 50