BroadView™ API Guide and Reference Manual
Functions
BroadView BST SB Redirector Feature Declarations And Definitions [BVIEW SB REDIRECTOR]
API Definitions

Functions

BVIEW_STATUS sbapi_bst_clear_stats (int asic)
 Clear BST stats of a particular unit.
 
BVIEW_STATUS sbapi_bst_clear_thresholds (int asic)
 Restore threshold configuration to defaults.
 
BVIEW_STATUS sbapi_bst_config_get (int asic, BVIEW_BST_CONFIG_t *config)
 Get BST configuration.
 
BVIEW_STATUS sbapi_bst_config_set (int asic, BVIEW_BST_CONFIG_t *config)
 Set BST configuration.
 
BVIEW_STATUS sbapi_bst_cpuq_data_get (int asic, BVIEW_BST_EGRESS_CPU_QUEUE_DATA_t *data, BVIEW_TIME_t *time)
 Obtain Egress CPU Queues Statistics.
 
BVIEW_STATUS sbapi_bst_cpuq_threshold_set (int asic, int cpuQueue, BVIEW_BST_EGRESS_CPU_QUEUE_THRESHOLD_t *threshold)
 Set profile configuration for Egress CPU Queues Statistics.
 
BVIEW_STATUS sbapi_bst_device_data_get (int asic, BVIEW_BST_DEVICE_DATA_t *data, BVIEW_TIME_t *time)
 Obtain Device Statistics.
 
BVIEW_STATUS sbapi_bst_device_threshold_set (int asic, BVIEW_BST_DEVICE_THRESHOLD_t *threshold)
 Set profile configuration for Device Statistics.
 
BVIEW_STATUS sbapi_bst_emcq_data_get (int asic, BVIEW_BST_EGRESS_MC_QUEUE_DATA_t *data, BVIEW_TIME_t *time)
 Obtain Egress Multicast Queues Statistics.
 
BVIEW_STATUS sbapi_bst_emcq_threshold_set (int asic, int mcQueue, BVIEW_BST_EGRESS_MC_QUEUE_THRESHOLD_t *threshold)
 Set profile configuration for Egress Multicast Queues Statistics.
 
BVIEW_STATUS sbapi_bst_epsp_data_get (int asic, BVIEW_BST_EGRESS_PORT_SP_DATA_t *data, BVIEW_TIME_t *time)
 Obtain Egress Port + Service Pools Statistics.
 
BVIEW_STATUS sbapi_bst_epsp_threshold_set (int asic, int port, int sp, BVIEW_BST_EGRESS_PORT_SP_THRESHOLD_t *threshold)
 Set Profile configuration for Egress Port + Service Pools Statistics.
 
BVIEW_STATUS sbapi_bst_esp_data_get (int asic, BVIEW_BST_EGRESS_SP_DATA_t *data, BVIEW_TIME_t *time)
 Obtain Egress Service Pools Statistics.
 
BVIEW_STATUS sbapi_bst_esp_threshold_set (int asic, int sp, BVIEW_BST_EGRESS_SP_THRESHOLD_t *threshold)
 Set profile configuration for Egress Service Pools Statistics.
 
BVIEW_STATUS sbapi_bst_eucq_data_get (int asic, BVIEW_BST_EGRESS_UC_QUEUE_DATA_t *data, BVIEW_TIME_t *time)
 Obtain Egress Unicast Queues Statistics.
 
BVIEW_STATUS sbapi_bst_eucq_threshold_set (int asic, int ucQueue, BVIEW_BST_EGRESS_UC_QUEUE_THRESHOLD_t *threshold)
 Set profile configuration for Egress Unicast Queues Statistics.
 
BVIEW_STATUS sbapi_bst_eucqg_data_get (int asic, BVIEW_BST_EGRESS_UC_QUEUEGROUPS_DATA_t *data, BVIEW_TIME_t *time)
 Obtain Egress Unicast Queue Groups Statistics.
 
BVIEW_STATUS sbapi_bst_eucqg_threshold_set (int asic, int ucQueueGrp, BVIEW_BST_EGRESS_UC_QUEUEGROUPS_THRESHOLD_t *threshold)
 Set profile configuration for Egress Unicast Queue Groups Statistics.
 
BVIEW_STATUS sbapi_bst_ippg_data_get (int asic, BVIEW_BST_INGRESS_PORT_PG_DATA_t *data, BVIEW_TIME_t *time)
 Obtain Ingress Port + Priority Groups Statistics.
 
BVIEW_STATUS sbapi_bst_ippg_threshold_set (int asic, int port, int pg, BVIEW_BST_INGRESS_PORT_PG_THRESHOLD_t *threshold)
 Set profile configuration for Ingress Port + Priority Groups Statistics.
 
BVIEW_STATUS sbapi_bst_ipsp_data_get (int asic, BVIEW_BST_INGRESS_PORT_SP_DATA_t *data, BVIEW_TIME_t *time)
 Obtain Ingress Port + Service Pools Statistics.
 
BVIEW_STATUS sbapi_bst_ipsp_threshold_set (int asic, int port, int sp, BVIEW_BST_INGRESS_PORT_SP_THRESHOLD_t *threshold)
 Set profile configuration for Ingress Port + Service Pools Statistics.
 
BVIEW_STATUS sbapi_bst_isp_data_get (int asic, BVIEW_BST_INGRESS_SP_DATA_t *data, BVIEW_TIME_t *time)
 Obtain Ingress Service Pools Statistics.
 
BVIEW_STATUS sbapi_bst_isp_threshold_set (int asic, int sp, BVIEW_BST_INGRESS_SP_THRESHOLD_t *threshold)
 Set profile configuration for Ingress Service Pools Statistics.
 
BVIEW_STATUS sbapi_bst_port_mcast_cgs_drop_get (int asic, int port, int queue, uint64_t *dropCount)
 
BVIEW_STATUS sbapi_bst_port_total_cgs_drop_get (int asic, int port, uint64_t *dropCount)
 
BVIEW_STATUS sbapi_bst_port_ucast_cgs_drop_get (int asic, int port, int queue, uint64_t *dropCount)
 
BVIEW_STATUS sbapi_bst_register_trigger (int asic, BVIEW_BST_TRIGGER_CALLBACK_t callback, void *cookie)
 Register hw trigger callback.
 
BVIEW_STATUS sbapi_bst_rqeq_data_get (int asic, BVIEW_BST_EGRESS_RQE_QUEUE_DATA_t *data, BVIEW_TIME_t *time)
 Obtain Egress RQE Queues Statistics.
 
BVIEW_STATUS sbapi_bst_rqeq_threshold_set (int asic, int rqeQueue, BVIEW_BST_EGRESS_RQE_QUEUE_THRESHOLD_t *threshold)
 Set profile configuration for Egress RQE Queues Statistics.
 
BVIEW_STATUS sbapi_bst_snapshot_get (int asic, BVIEW_BST_ASIC_SNAPSHOT_DATA_t *snapshot, BVIEW_TIME_t *time)
 Get BST snapshot.
 
BVIEW_STATUS sbapi_bst_threshold_get (int asic, BVIEW_BST_ASIC_SNAPSHOT_DATA_t *thresholdSnapshot, BVIEW_TIME_t *time)
 Get snapshot of all thresholds configured.
 

Detailed Description

Function Documentation

BVIEW_STATUS sbapi_bst_clear_stats ( int  asic)

Clear BST stats of a particular unit.

Parameters
[in]asicunit
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSSuccessfully cleared BST stats
BVIEW_STATUS_UNSUPPORTEDClear BST stats functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_clear_thresholds ( int  asic)

Restore threshold configuration to defaults.

Parameters
[in]asicunit
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSResetting threshold to default is successful
BVIEW_STATUS_UNSUPPORTEDClear threshold functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_config_get ( int  asic,
BVIEW_BST_CONFIG_t config 
)

Get BST configuration.

Parameters
[in]asicUnit number
[out]configBST config structure
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSBST config get is successful
BVIEW_STATUS_UNSUPPORTEDBST config get functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_config_set ( int  asic,
BVIEW_BST_CONFIG_t config 
)

Set BST configuration.

Parameters
[in]asicUnit number
[in]configBST config structure
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSBST config set is successful
BVIEW_STATUS_UNSUPPORTEDBST config set functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_cpuq_data_get ( int  asic,
BVIEW_BST_EGRESS_CPU_QUEUE_DATA_t data,
BVIEW_TIME_t *  time 
)

Obtain Egress CPU Queues Statistics.

Parameters
[in]asicunit
[out]dataEgress CPU Queue data structure
[out]timetime
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSEgress CPU Queues stat get is successful
BVIEW_STATUS_UNSUPPORTEDEgress CPU Queues stat get functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_cpuq_threshold_set ( int  asic,
int  cpuQueue,
BVIEW_BST_EGRESS_CPU_QUEUE_THRESHOLD_t threshold 
)

Set profile configuration for Egress CPU Queues Statistics.

Parameters
[in]asicunit
[in]cpuQueuecpuQueue
[in]thresthreshold
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSEgress CPU Queues threshold set is successful
BVIEW_STATUS_UNSUPPORTEDEgress CPU Queues threshold set functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_device_data_get ( int  asic,
BVIEW_BST_DEVICE_DATA_t data,
BVIEW_TIME_t *  time 
)

Obtain Device Statistics.

Parameters
[in]asicunit
[out]dataDevice data structure
[out]timetime
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSDevice stat get is successful
BVIEW_STATUS_UNSUPPORTEDDevice stat get functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_device_threshold_set ( int  asic,
BVIEW_BST_DEVICE_THRESHOLD_t threshold 
)

Set profile configuration for Device Statistics.

Parameters
[in]asicunit
[in]thresthreshold
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSDevice Statistics threshold set is successful
BVIEW_STATUS_UNSUPPORTEDDevice Statistics threshold set functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_emcq_data_get ( int  asic,
BVIEW_BST_EGRESS_MC_QUEUE_DATA_t data,
BVIEW_TIME_t *  time 
)

Obtain Egress Multicast Queues Statistics.

Parameters
[in]asicunit
[out]dataEgress Multicast Queue data structure
[out]timetime
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSEgress Multicast Queues stat get is successful
BVIEW_STATUS_UNSUPPORTEDEgress Multicast Queues stat get functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_emcq_threshold_set ( int  asic,
int  mcQueue,
BVIEW_BST_EGRESS_MC_QUEUE_THRESHOLD_t threshold 
)

Set profile configuration for Egress Multicast Queues Statistics.

Parameters
[in]asic- unit
[in]mcQueue- mcQueue
[in]thres- threshold
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSEgress Multicast Queues threshold set is successful
BVIEW_STATUS_UNSUPPORTEDEgress Multicast Queues threshold set functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_epsp_data_get ( int  asic,
BVIEW_BST_EGRESS_PORT_SP_DATA_t data,
BVIEW_TIME_t *  time 
)

Obtain Egress Port + Service Pools Statistics.

Parameters
[in]asicunit
[out]datae_p_sp data structure
[out]timetime
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSEgress Port + Service Pools stat get is successful
BVIEW_STATUS_UNSUPPORTEDEgress Port + Service Pools stat get functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_epsp_threshold_set ( int  asic,
int  port,
int  sp,
BVIEW_BST_EGRESS_PORT_SP_THRESHOLD_t threshold 
)

Set Profile configuration for Egress Port + Service Pools Statistics.

Parameters
[in]asicunit
[in]portport
[in]spservice pool
[in]thresthreshold
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSEgress Port + Service Pools threshold set is successful
BVIEW_STATUS_UNSUPPORTEDEgress Port + Service Pools threshold set functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_esp_data_get ( int  asic,
BVIEW_BST_EGRESS_SP_DATA_t data,
BVIEW_TIME_t *  time 
)

Obtain Egress Service Pools Statistics.

Parameters
[in]asicunit
[out]datae_sp data structure
[out]timetime
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSEgress Service Pools stat get is successful
BVIEW_STATUS_UNSUPPORTEDEgress Service Pools stat get functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_esp_threshold_set ( int  asic,
int  sp,
BVIEW_BST_EGRESS_SP_THRESHOLD_t threshold 
)

Set profile configuration for Egress Service Pools Statistics.

Parameters
[in]asicunit
[in]spservice pool
[in]thresthreshold
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSEgress Service Pools threshold set is successful
BVIEW_STATUS_UNSUPPORTEDEgress Service Pools threshold set functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_eucq_data_get ( int  asic,
BVIEW_BST_EGRESS_UC_QUEUE_DATA_t data,
BVIEW_TIME_t *  time 
)

Obtain Egress Unicast Queues Statistics.

Parameters
[in]asicunit
[out]dataEgress Unicast Queue data structure
[out]timetime
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSEgress Unicast Queues stat get is successful
BVIEW_STATUS_UNSUPPORTEDEgress Unicast Queues stat get functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_eucq_threshold_set ( int  asic,
int  ucQueue,
BVIEW_BST_EGRESS_UC_QUEUE_THRESHOLD_t threshold 
)

Set profile configuration for Egress Unicast Queues Statistics.

Parameters
[in]asicunit
[in]ucQueueuc queue
[in]thresthreshold
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSEgress Unicast Queues threshold set is successful
BVIEW_STATUS_UNSUPPORTEDEgress Unicast Queues threshold set functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_eucqg_data_get ( int  asic,
BVIEW_BST_EGRESS_UC_QUEUEGROUPS_DATA_t data,
BVIEW_TIME_t *  time 
)

Obtain Egress Unicast Queue Groups Statistics.

Parameters
[in]asicunit
[out]dataEgress Unicast Queue Groups data structure
[out]timetime
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSEgress Unicast Queue Groups stat get is successful
BVIEW_STATUS_UNSUPPORTEDEgress Unicast Queue Groups stat get functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_eucqg_threshold_set ( int  asic,
int  ucQueueGrp,
BVIEW_BST_EGRESS_UC_QUEUEGROUPS_THRESHOLD_t threshold 
)

Set profile configuration for Egress Unicast Queue Groups Statistics.

Parameters
[in]asicunit
[in]ucQueueGrpuc queue group
[in]thresthreshold
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSEgress Unicast Queue Groups threshold set is successful
BVIEW_STATUS_UNSUPPORTEDEgress Unicast Queue Groups threshold set functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_ippg_data_get ( int  asic,
BVIEW_BST_INGRESS_PORT_PG_DATA_t data,
BVIEW_TIME_t *  time 
)

Obtain Ingress Port + Priority Groups Statistics.

Parameters
[in]asicunit
[out]datai_p_pg data structure
[out]timetime
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSIngress Port + Priority Groups stat get is successful
BVIEW_STATUS_UNSUPPORTEDIngress Port + Priority Groups stat get functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_ippg_threshold_set ( int  asic,
int  port,
int  pg,
BVIEW_BST_INGRESS_PORT_PG_THRESHOLD_t threshold 
)

Set profile configuration for Ingress Port + Priority Groups Statistics.

Parameters
[in]asicunit
[in]portport
[in]pgPriority Group
[out]thresThreshold structure
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSIngress Port + Priority Groups threshold set is successful
BVIEW_STATUS_UNSUPPORTEDIngress Port + Priority Groups threshold set functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_ipsp_data_get ( int  asic,
BVIEW_BST_INGRESS_PORT_SP_DATA_t data,
BVIEW_TIME_t *  time 
)

Obtain Ingress Port + Service Pools Statistics.

Parameters
[in]asicunit
[out]datai_p_sp data structure
[out]timetime
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSIngress Port + Service Pools stat get is successful
BVIEW_STATUS_UNSUPPORTEDIngress Port + Service Pools stat get functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_ipsp_threshold_set ( int  asic,
int  port,
int  sp,
BVIEW_BST_INGRESS_PORT_SP_THRESHOLD_t threshold 
)

Set profile configuration for Ingress Port + Service Pools Statistics.

Parameters
[in]asicunit
[in]portport
[in]spservice pool
[in]thresthreshold
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSIngress Port + Service Pools threshold set is successful
BVIEW_STATUS_UNSUPPORTEDIngress Port + Service Pools threshold set functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_isp_data_get ( int  asic,
BVIEW_BST_INGRESS_SP_DATA_t data,
BVIEW_TIME_t *  time 
)

Obtain Ingress Service Pools Statistics.

Parameters
[in]asicunit
[out]datai_sp structure
[out]timetime
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSIngress Service Pools stat get is successful
BVIEW_STATUS_UNSUPPORTEDIngress Service Pools stat get functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_isp_threshold_set ( int  asic,
int  sp,
BVIEW_BST_INGRESS_SP_THRESHOLD_t threshold 
)

Set profile configuration for Ingress Service Pools Statistics.

Parameters
[in]asicunit
[in]spservice pool
[in]thresthreshold
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSIngress Service Pools threshold set is successful
BVIEW_STATUS_UNSUPPORTEDIngress Service Pools threshold set functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_register_trigger ( int  asic,
BVIEW_BST_TRIGGER_CALLBACK_t  callback,
void *  cookie 
)

Register hw trigger callback.

Parameters
[in]asicunit
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSCallback is successfully registered
BVIEW_STATUS_UNSUPPORTEDTrigger callback registration is not supported
BVIEW_STATUS sbapi_bst_rqeq_data_get ( int  asic,
BVIEW_BST_EGRESS_RQE_QUEUE_DATA_t data,
BVIEW_TIME_t *  time 
)

Obtain Egress RQE Queues Statistics.

Parameters
[in]asicunit
[out]dataEgress RQE Queue data structure
[out]timetime
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSEgress RQE Queues stat get is successful
BVIEW_STATUS_UNSUPPORTEDEgress RQE Queues stat get functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_rqeq_threshold_set ( int  asic,
int  rqeQueue,
BVIEW_BST_EGRESS_RQE_QUEUE_THRESHOLD_t threshold 
)

Set profile configuration for Egress RQE Queues Statistics.

Parameters
[in]asicunit
[in]rqeQueuerqeQueue
[out]thresThreshold data structure
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSEgress RQE Queues threshold set is successful
BVIEW_STATUS_UNSUPPORTEDEgress RQE Queues threshold set functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_snapshot_get ( int  asic,
BVIEW_BST_ASIC_SNAPSHOT_DATA_t snapshot,
BVIEW_TIME_t *  time 
)

Get BST snapshot.

Parameters
[in]asicUnit number
[out]snapshotBST snapshot
[out]timeTime
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSBST snapshot get is successful
BVIEW_STATUS_UNSUPPORTEDBST snapshot get functionality is not supported on this unit
BVIEW_STATUS sbapi_bst_threshold_get ( int  asic,
BVIEW_BST_ASIC_SNAPSHOT_DATA_t thresholdSnapshot,
BVIEW_TIME_t *  time 
)

Get snapshot of all thresholds configured.

Parameters
[in]asicunit
[out]thresholdSnapshotthreshold snapshot
Return values
BVIEW_STATUS_FAILUREDue to lock acquistion failure or Not able to get asic type of this unit or BST feature is not present or BST south bound function has returned failure
BVIEW_STATUS_SUCCESSSnapshot get is successful
BVIEW_STATUS_UNSUPPORTEDSnapshot get functionality is not supported on this unit