Command Line Reference
Device Management
CRM
15 min
crm crm show crm summary show crm summary \[command] show crm summary \[purpose] display the summary information of crm configuration \[view] system view \[usage scenario] when you want to view the resource statistics polling time configuration, you can do so by executing this command \[use cases] sonic# show crm summary polling interval 300 second(s) show crm thresholds {acl {counter|entry|group|table}|all|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat} show crm thresholds {acl {counter|entry|group|table}|all|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat} \[command] show crm thresholds {acl {counter|entry|group|table}|all|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat} \[purpose] display the threshold configuration of the crm \[parameter] parameter parameter description description acl display the threshold configuration information of acl related resources, including counter, entry, group and table all display the threshold configuration information of all resources dnat display the threshold configuration information of the dnat resource fdb display the threshold configuration information of the fdb resource ipv4 display the threshold configuration information of ipv4 resources, including neighbor, nexthop, and route ipv6 display the threshold configuration information of ipv6 resources, including neighbor, nexthop, and route nexthop group display the threshold configuration information of the next hop group resources, including member and object snat display the threshold configuration information of the snat resource \[view] system view \[usage scenario] when you want to view the threshold configuration of different types of resources, you can do so by executing this command \[use cases] sonic# show crm thresholds all show crm resources {acl {counter|entry|group|table}|all|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat} show crm resources {acl {counter|entry|group|table}|all|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat} \[command] show crm resources {acl {counter|entry|group|table}|all|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat} \[purpose] display the resource information monitored by crm \[parameter] parameter parameter description description acl display the threshold configuration information of acl related resources, including counter, entry, group and table all display the threshold configuration information of all resources dnat display the threshold configuration information of the dnat resource fdb display the threshold configuration information of the fdb resource ipv4 display the threshold configuration information of ipv4 resources, including neighbor, nexthop, and route ipv6 display the threshold configuration information of ipv6 resources, including neighbor, nexthop, and route nexthop group display the threshold configuration information of the next hop group resources, including member and object snat display the threshold configuration information of the snat resource \[view] system view \[usage scenario] when you want to view information about different types of resources, you can do so by executing this command \[use cases] sonic# show crm resources all show crm resource configuration show crm resource configuration \[command] show crm resource configuration \[purpose] display the configuration of crm statistical history information \[view] system view \[usage scenario] when you want to view the configuration of resource statistics history information, you can do so by executing this command \[use cases] sonic# show crm resource configuration show crm resource history {all|type{acl {counter|entry|group|table}|all|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat}} show crm resource history {all|type{acl {counter|entry|group|table}|all|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat}} \[command] show crm resource history {all|type{acl {counter|entry|group|table}|all|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat}} \[purpose] display the historical resource information of crm statistics \[parameter] parameter parameter description description all display historical statistical information of all types of resources type display historical statistical information of different types of resources, including acl, dnat, fdb, ipv4, ipv6, nexthop and snat \[view] system view \[usage scenario] when you want to view the historical statistics of various types of resources, you can do so by executing this command \[use cases] sonic# show crm resource history all crm polling interval crm polling interval interval \[command] crm polling interval interval \[purpose] configure the crm polling interval \[parameter] parameter parameter description description intervarl value range 1 9999, unit seconds \[view] system configuration view \[usage scenario] when adjusting the polling time for resource statistics, you can configure it by executing this command \[use cases] sonic# configure terminal sonic(config)# crm polling interval 10 crm thresholds {acl {{group}{counter|entry}|table}|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat} type {percentage|used|free} crm thresholds {acl {{group}{counter|entry}|table}|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat} type {percentage|used|free} \[command] crm thresholds {acl {{group}{counter|entry}|table}|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat} type {percentage|used|free} \[purpose] configure the threshold type of crm statistical resources \[parameter] parameter parameter description description percentage/used/free the resource types are respectively percentage, the number of used items and the number of available items \[view] system configuration view \[usage scenario] when adjusting the threshold types for statistics of various types of resources, you can configure them by executing this command \[use cases] sonic# configure terminal sonic(config)# crm thresholds fdb type used crm thresholds {acl {{group}{counter|entry}|table}|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat} {high|low} crm thresholds {acl {{group}{counter|entry}|table}|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat} {high|low} crm threshold \[command] crm thresholds {acl {{group}{counter|entry}|table}|dnat|fdb|{ipv4|ipv6} {neighbor|nexthop|route}|nexthop group {member|object}|snat} {high|low} crm threshold \[purpose] configure the threshold for crm statistical resources \[parameter] parameter parameter description description high/low the maximum and minimum values of the resource statistics threshold crm threshold resource statistics threshold, value range 0 65535 \[view] system configuration view \[usage scenario] when adjusting the thresholds for statistics of various types of resources, you can configure them by executing this command \[use cases] sonic# configure terminal sonic(config)# crm thresholds ipv4 neighbor high 85 crm history frequency crm history frequency frequency \[command] crm history frequency frequency \[purpose] configure the frequency of crm statistics on historical resource information and use it in conjunction with the polling time \[parameter] parameter parameter description description frequency historical resource statistics frequency, value range 1 9999 seconds \[view] system configuration view \[usage scenario] when adjusting the frequency of statistical historical resource information, this command can be executed to configure it \[use cases] sonic# configure terminal sonic(config)# crm history frequency 10 crm history max crm history max max \[command] crm history max max \[purpose] configure the maximum number of record entries for historical resource information statistics in crm \[parameter] parameter parameter description description max value range 1 to 100 items \[view] system configuration view \[usage scenario] when adjusting the maximum number of entries for statistical historical resource information records, this command can be executed to configure it \[use cases] sonic# configure terminal sonic(config)# crm history max 20
