+ Should Match Regexp ${out} (?mui)value
+
+Verify the Metrics Attributes on Cassandra Client
+ [Arguments] ${pattern}
+ [Documentation] Verification on Metrics attributes on Cassandra Client
+ @{metric_row}= Find Metricval Keys ${pattern} metricpath
+ ${keya}= Get From List ${metric_row} 1
+ ${keyb}= Get From List ${metric_row} 2
+ ${keya_bool}= Evaluate ${keya} < 0
+ ${keya}= Run Keyword If '${keya_bool}' == 'True' Catenate SEPARATOR= \\ ${keya}
+ ... ELSE Catenate ${keya}
+ ${metricval}= Create Temporary Key Info ${keya} ${keyb}
+ @{lines}= Split to lines ${metricval}
+ ${mv_len}= Get Length ${lines}
+ ${mv_len}= Evaluate ${mv_len} - 1
+ ${found_line}= Get From List ${lines} ${mv_len}
+ @{split_line}= Split String ${found_line} ${SPACE}
+ ${metric_count}= Get From List ${split_line} 3
+ [Return] ${metric_count}
+
+Form Portstats Query Pattern
+ [Arguments] ${metric} ${node} ${port} ${attribute}
+ [Documentation] Used for geneating openflow metrics Queries for Cassandra.
+ ${pattern}= Concatenate the String ${attribute} .
+ ${pattern}= Concatenate the String ${pattern} ${metric}
+ ${pattern}= Concatenate the String ${pattern} .
+ ${pattern}= Concatenate the String ${pattern} ${node}
+ ${pattern}= Concatenate the String ${pattern} .
+ ${pattern}= Concatenate the String ${pattern} Node_${node}
+ ${pattern}= Concatenate the String ${pattern} .
+ ${pattern}= Concatenate the String ${pattern} NodeConnector_${node}:${port}
+ ${pattern}= Remove Space on String ${pattern}
+ [Return] ${pattern}
+
+Create Temporary Key Info
+ [Arguments] ${pattern} ${remote}=${ODL_SYSTEM_IP} ${user}=${TOOLS_SYSTEM_USER} ${prompt_timeout}=120s ${val_table}=metricval
+ [Documentation] Return rows matching keya and keyb
+ ${output}= Run Command On Remote System ${ODL_SYSTEM_IP} cat ${CASSANDRA_DB_PATH}${val_table}|grep "${pattern}"
+ [Return] ${output}
+
+Verify Metric Val File
+ [Documentation] Returns Value for metric matching particular keya,keyb
+ @{metricval}= Read File and Return Split Lines ${CASSANDRA_DB_PATH}${temp_metric_val}
+ ${mv_len}= Get Length ${metricval}
+ ${mv_len}= Evaluate ${mv_len} - 1
+ ${found_line}= Get From List ${metricval} ${mv_len}
+ @{split_line}= Split String ${found_line} ${SPACE}
+ ${metric_count}= Get From List ${split_line} 3
+ [Return] ${metric_count}
+
+Verify Metric log File
+ [Arguments] ${metric_log} ${pattern}
+ [Documentation] Returns Value for lines in Metriclog matching the pattern
+ ${contents}= Grep From File ${CASSANDRA_DB_PATH}${temp_metric_val} ${pattern}
+ [Return] ${contents}
+
+Grep From File
+ [Arguments] ${file} ${pattern}
+ [Documentation] Use cat to grep from the file and return the output
+ ${output}= Run Command On Remote System ${ODL_SYSTEM_IP} cat ${file} | ${pattern}
+ [Return] ${output}
+
+Find Metricval Keys
+ [Arguments] ${pattern} ${file}
+ [Documentation] Return list element which has the particular pattern.
+ ${metric_grep}= Grep From File ${TSDR_PATH}/tsdrKeyCache.txt ${pattern}
+ @{split_line}= Split String ${metric_grep} |
+ ${keypath}= Get From List ${split_line} 0
+ [Return] @{split_line}
+
+Copy TSDR tables
+ [Arguments] ${remote}=${ODL_SYSTEM_IP} ${user}=${TOOLS_SYSTEM_USER} ${prompt_timeout}=120s ${key_table}=metricpath ${val_table}=metricval
+ [Documentation] Copy TSDR files to external File system for text processing.
+ Log Attempting to truncate tables in Cassandra
+ ${conn_id}= Open Connection ${remote} prompt=${DEFAULT_LINUX_PROMPT} timeout=${prompt_timeout}
+ Login With Public Key ${user} ${USER_HOME}/.ssh/${SSH_KEY} any
+ Write export JAVA_HOME=/usr
+ Write sudo ${CASSANDRA_CLIENT}/cqlsh
+ Read Until cqlsh>
+ Write COPY tsdr.${key_table} TO '${CASSANDRA_DB_PATH}${key_table}' WITH DELIMITER = ' ';
+ Read Until cqlsh>
+ Write COPY tsdr.${val_table} TO '${CASSANDRA_DB_PATH}${val_table}' WITH DELIMITER = ' ';
+ Read Until cqlsh>
+ Write exit
+ Close Connection
+
+Issue Cassandra Query
+ [Arguments] ${query} ${output} ${remote}=${ODL_SYSTEM_IP} ${user}=${TOOLS_SYSTEM_USER} ${prompt_timeout}=120s
+ [Documentation] Issue query in cqlsh and match it with output which is passed as a argument
+ ${conn_id}= Open Connection ${remote} prompt=${DEFAULT_LINUX_PROMPT} timeout=${prompt_timeout}
+ Login With Public Key ${user} ${USER_HOME}/.ssh/${SSH_KEY} any
+ Write export JAVA_HOME=/usr
+ Write ${CASSANDRA_CLIENT}/cqlsh
+ Read Until cqlsh>
+ ${query_output}= Write ${query}
+ ${query_output}= Read Until cqlsh>
+ ${str_output}= Convert To String ${output}
+ Should Contain ${query_output} ${str_output}
+ Write exit
+ Close Connection
+
+Count Cassandra rows
+ [Arguments] ${query} ${remote}=${ODL_SYSTEM_IP} ${user}=${TOOLS_SYSTEM_USER} ${prompt_timeout}=120s
+ [Documentation] Issue query in cqlsh and match it with output which is passed as a argument
+ ${conn_id}= Open Connection ${remote} prompt=${DEFAULT_LINUX_PROMPT} timeout=${prompt_timeout}
+ Login With Public Key ${user} ${USER_HOME}/.ssh/${SSH_KEY} any
+ Write export JAVA_HOME=/usr
+ Write ${CASSANDRA_CLIENT}/cqlsh
+ Read Until cqlsh>
+ ${query_output}= Write ${query}
+ ${query_output}= Read Until cqlsh>
+ Write exit
+ Close Connection
+ [Return] ${query_output}
+
+Read File and Return Split Lines
+ [Arguments] ${filename}
+ [Documentation] Reads the file and returns each line as list
+ ${contents}= Run Command On Remote System ${ODL_SYSTEM_IP} cat ${filename}
+ @{lines}= Split to lines ${contents}
+ [Return] @{lines}
+
+Get Stats XML
+ [Arguments] ${query} ${xpath}
+ [Documentation] Parse the xml output and returns it.
+ ${sid}= RequestsLibrary.Create_Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} headers=${SEND_ACCEPT_XML_HEADERS} auth=${AUTH}
+ ${resp}= RequestsLibrary.Get Request session ${query} headers=${SEND_ACCEPT_XML_HEADERS}
+ ${resp_xml}= Parse XML ${resp.content}
+ ${id1}= Get Element Text ${resp_xml} ${xpath}
+ Delete All Sessions
+ [Return] ${id1}
+
+Return all XML matches
+ [Arguments] ${query} ${xpath}
+ [Documentation] Returns all the values from xpath
+ ${sid}= RequestsLibrary.Create_Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} headers=${SEND_ACCEPT_XML_HEADERS} auth=${AUTH}
+ ${resp}= RequestsLibrary.Get Request session ${query} headers=${SEND_ACCEPT_XML_HEADERS}
+ ${resp_xml}= Parse XML ${resp.content}
+ @{id1}= Get Elements Texts ${resp_xml} ${xpath}
+ Delete All Sessions
+ [Return] @{id1}
+
+Compare Tsdr XML Metrics
+ [Arguments] ${xml} ${tsdr} ${deviation}=10
+ [Documentation] Compares xml metrics from openflow plugin with TSDR metric values
+ ${val_max}= Evaluate ${xml}*${deviation}/100
+ ${val_diff}= Evaluate ${tsdr} - ${xml}
+ ${find_negative}= Evaluate ${val_diff} < 0
+ ${val_diff}= Run Keyword If '${find_negative}' == 'True' Evaluate ${val_diff}*-1
+ ... ELSE Evaluate ${val_diff}*1
+ Should Be True ${val_diff} <= ${val_max}
+
+Generate Syslog
+ [Arguments] ${facility}
+ [Documentation] Uses netcat to generate logs and send it to port ${ODL_SYSTEM_IP}:1514
+ Run echo "<${facility}>${MESSAGE}" | nc -w 4 -u ${ODL_SYSTEM_IP} 1514
+
+Verify Metric Val File For Syslog
+ [Documentation] Returns Value for metric matching particular keya,keyb
+ @{metricval}= Read File and Return Split Lines ${CASSANDRA_DB_PATH}${temp_metric_val}
+ [Return] ${metricval}
+
+Verify the Metrics Syslog on Cassandra Client
+ [Arguments] ${pattern}
+ [Documentation] Getting the keya and keyb for a particular syslog agent and create a temporary file from metriclog
+ @{metric_row}= Find Metricval Keys ${pattern} metricpath
+ ${keya}= Get From List ${metric_row} 1
+ ${keyb}= Get From List ${metric_row} 2
+ ${keya_bool}= Evaluate ${keya} < 0
+ ${keya}= Run Keyword If '${keya_bool}' == 'True' Catenate SEPARATOR= \\ ${keya}
+ ... ELSE Catenate ${keya}
+ ${metric_log}= Create Temporary Key Info ${keya} ${keyb} val_table=metriclog
+ [Return] ${metric_log}
+
+Iterating over metricpath
+ [Documentation] Used to traverse over metricpath file and traverse over metricpath file and get the keys
+ @{mp_lines}= Read File and Return Split Lines ${CASSANDRA_DB_PATH}${metric_path}
+ : FOR ${line} IN @{mp_lines}
+ \ @{split_line}= Split String ${line} ${SPACE}
+ \ ${keya}= Get From List ${split_line} 1
+ \ ${keyb}= Get From List ${split_line} 2
+ \ Iterating over metricval ${keya} ${keyb}
+
+Iterating over metricval
+ [Arguments] ${keya} ${keyb}
+ [Documentation] Used to traverse over metricval file and check if keya and keyb are present.
+ ${mv_contents}= OperatingSystem.Get File ${CASSANDRA_DB_PATH}${metric_val}
+ Should Contain ${mv_contents} ${keya} ${keyb}
+
+Check Metric path
+ [Arguments] ${pattern}
+ [Documentation] Count the number of rows in metricpath and compare with the pattern.
+ ${query_output}= Count Cassandra rows select count(*) from tsdr.metricpath;
+ Should Match Regexp ${query_output} ${pattern}
+
+Check HSQLDB
+ [Arguments] ${pattern} ${TYPE}
+ [Documentation] Count the number of rows in HSQLDB with Metric ${TYPE}
+ ${output}= Issue Command On Karaf Console tsdr:list ${TYPE}
+ Should Match Regexp ${output} ${pattern}
+
+Check Metric Val
+ [Arguments] ${pattern}
+ [Documentation] Count the number of rows in metricval table and compare with the pattern.
+ ${query_output}= Count Cassandra rows select count(*) from tsdr.metricval;
+ Should Match Regexp ${query_output} ${pattern}
+
+Check Metric Log
+ [Arguments] ${pattern}
+ [Documentation] Count the number of rows in metriclog and compare with the pattern.
+ ${query_output}= Count Cassandra rows select count(*) from tsdr.metriclog;
+ Should Match Regexp ${query_output} ${pattern}
+
+Generate TSDR Query
+ [Arguments] ${DC}= ${MN}= ${NID}= ${RK}= ${from}=0 ${until}=now
+ [Documentation] Issues TSDR Query and returns the list
+ Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_QUERY}
+ ${resp}= RequestsLibrary.Get Request session /tsdr/metrics/query?tsdrkey="[NID=${NID}][DC=${DC}][MN=${MN}][RK=${RK}]"&from=${from}&until=${until} headers=${HEADERS_QUERY}
+ @{convert}= Parse Json ${resp.content}
+ Delete All Sessions
+ [Return] @{convert}
+
+Generate TSDR NBI
+ [Arguments] ${DC}= ${MN}= ${NID}= ${RK}= ${from}=0 ${until}=now
+ ... ${datapts}=1000000
+ [Documentation] Issues TSDR Query and returns the list
+ Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_QUERY}
+ ${resp}= RequestsLibrary.Get Request session /tsdr/nbi/render?target="[NID=${NID}][DC=${DC}][MN=${MN}][RK=${RK}]"&from=${from}&until=${until}&maxDataPoints=${datapts} headers=${HEADERS_QUERY}
+ @{convert}= Parse Json ${resp.content}
+ ${dict_convert}= Convert To Dictionary @{convert}
+ @{dict}= Get Dictionary Values ${dict_convert}
+ @{datapoints_list}= Convert to List @{dict}[0]
+ Delete All Sessions
+ [Return] @{datapoints_list}
+
+Extract PORTSTATS RecordKeys
+ [Arguments] ${Record_keys}
+ [Documentation] Dissect Record keys for Portstats
+ ${node_dict}= Get From List ${Record_keys} 0
+ ${nc_dict}= Get From List ${Record_keys} 1
+ ${NODE}= Get From Dictionary ${node_dict} keyValue
+ ${NC}= Get From Dictionary ${nc_dict} keyValue
+ ${rk_val}= Set Variable Node:${NODE},NodeConnector:${NC}
+ [Return] ${rk_val}
+
+Extract QUEUESTATS RecordKeys
+ [Arguments] ${Record_keys}
+ [Documentation] Dissect Record keys for Queuestats
+ ${node_dict}= Get From List ${Record_keys} 0
+ ${connect_dict}= Get From List ${Record_keys} 1
+ ${queue_dict}= Get From List ${Record_keys} 2
+ ${NODE}= Get From Dictionary ${node_dict} keyValue
+ ${CONNECT}= Get From Dictionary ${connect_dict} keyValue
+ ${QUEUE}= Get From Dictionary ${queue_dict} keyValue
+ ${rk_val}= Set Variable Node:${NODE},NodeConnector:${CONNECT},Queue:${QUEUE}
+ [Return] ${rk_val}
+
+Extract FLOWSTATS RecordKeys
+ [Arguments] ${Record_keys}
+ [Documentation] Dissect Record keys for Flowstats
+ ${node_dict}= Get From List ${Record_keys} 0
+ ${table_dict}= Get From List ${Record_keys} 1
+ ${flow_dict}= Get From List ${Record_keys} 2
+ ${NODE}= Get From Dictionary ${node_dict} keyValue
+ ${TABLE}= Get From Dictionary ${table_dict} keyValue
+ ${FLOW}= Get From Dictionary ${flow_dict} keyValue
+ ${rk_val}= Set Variable Node:${NODE},Table:${TABLE},Flow:${FLOW}
+ [Return] ${rk_val}
+
+Extract FLOWTABLESTATS RecordKeys
+ [Arguments] ${Record_keys}
+ [Documentation] Dissect Record keys for Flowtablestats
+ ${node_dict}= Get From List ${Record_keys} 0
+ ${table_dict}= Get From List ${Record_keys} 1
+ ${NODE}= Get From Dictionary ${node_dict} keyValue
+ ${TABLE}= Get From Dictionary ${table_dict} keyValue
+ ${rk_val}= Set Variable Node:${NODE},Table:${TABLE}
+ [Return] ${rk_val}
+
+Extract Row Values from TSDR Query
+ [Arguments] ${row_dict} ${tsdr_row} ${nbi_row} ${DATA_CATEGORY}
+ [Documentation] Extract the row values from query and generate it in DB format
+ ${nbi_value}= Get From List ${nbi_row} 0
+ ${nbi_time}= Get From List ${nbi_row} 1
+ ${MN}= Get From Dictionary ${row_dict} metricName
+ ${MV}= Get From Dictionary ${row_dict} metricValue
+ ${NID}= Get From Dictionary ${row_dict} nodeID
+ ${RK}= Get From Dictionary ${row_dict} recordKeys
+ ${time}= Get From Dictionary ${row_dict} timeStamp
+ ${DC}= Get From Dictionary ${row_dict} tsdrDataCategory
+ ${RK_VAL}= Run Keyword If '${DATA_CATEGORY}'=='PORTSTATS' Extract PORTSTATS RecordKeys ${RK}
+ ... ELSE IF '${DATA_CATEGORY}'=='FLOWSTATS' Extract FLOWSTATS RecordKeys ${RK}
+ ... ELSE IF '${DATA_CATEGORY}'=='FLOWTABLESTATS' Extract FLOWTABLESTATS RecordKeys ${RK}
+ ... ELSE IF '${DATA_CATEGORY}'=='QUEUESTATS' Extract QUEUESTATS RecordKeys ${RK}
+ ${epoch_time}= Convert Date ${time} epoch date_format=%a %b %d %H:%M:%S %Z %Y
+ ${epoch_time_int}= Convert To Integer ${epoch_time}
+ Should Match ${tsdr_row} *${NID}*
+ Should Match ${tsdr_row} *${DC}*
+ Should Match ${tsdr_row} *${MN}*
+ Should Match ${tsdr_row} *${RK_VAL}*
+ Should Match ${tsdr_row} *[${MV}]*
+ Should Match ${tsdr_row} *${epoch_time_int}*
+ Should Be Equal As Numbers ${nbi_time} ${epoch_time_int}
+ Should Be Equal As Numbers ${nbi_value} ${MV}
+
+Evaluate Datasets Length
+ [Arguments] ${tsdr_lines} ${query_output} ${nbi_output}
+ [Documentation] Compare the outputs returned from all Data Stores
+ ${query_count}= Get Length ${query_output}
+ ${tsdr_count}= Get Length ${tsdr_lines}
+ ${nbi_count}= Get Length ${nbi_output}
+ Should Be Equal As Numbers ${query_count} ${tsdr_count}
+ Should Be Equal As Numbers ${nbi_count} ${tsdr_count}
+
+Evaluate Datasets Value
+ [Arguments] ${tsdr_lines} ${query_output} ${nbi_output} ${TYPE}
+ [Documentation] Compare the outputs returned from all Data Stores
+ : FOR ${q_item} ${t_item} ${n_item} IN ZIP ${query_output} ${tsdr_lines}
+ ... ${nbi_output}
+ \ ${query_row}= Extract Row Values from TSDR Query ${q_item} ${t_item} ${n_item} ${TYPE}
+ : FOR ${found_line} IN @{matching_list}
+ \ @{split_line}= Split String ${found_line} |
+ \ ${hex_name}= Get From List ${split_line} 2
+ \ ${if_desc}= Decode Bytes To String ${hex_name} HEX
+ \ Append To List ${ifdesc_list} ${if_desc}
+ [Return] @{ifdesc_list}
+
+Write SNMP config
+ [Arguments] ${HOST}=127.0.0.1 ${community}=${SNMP_COMMUNITY}
+ [Documentation] Write SNMP Config File
+ Create File snmp.cfg credentials=[${HOST},${community}]
+ Append To File snmp.cfg \n
+ Move File snmp.cfg ${SNMP_PATH}
+
+Bringup Netflow
+ [Documentation] Brings up basic netflow setup .
+ Verify Feature Is Installed odl-tsdr-netflow-statistics-collector
+ Wait Until Keyword Succeeds 24x 10 sec Check Karaf Log Has Messages NetFlow Data Colletor Initialized
+ Start Tsdr Suite
+ Ping All Hosts
+ Configure Netflow
+
+Collect Data from SNMP Agent
+ [Arguments] ${SNMP_IP}=127.0.0.1 ${SNMP_AGENT_COMM}=${SNMP_COMMUNITY}
+ [Documentation] Poll for SNMP Agent OID
+ ${snmpagentinfo} Create Dictionary ip-address=${SNMP_IP} community=${SNMP_AGENT_COMM}
+ ${snmpagentcreate} Create Dictionary input=${snmpagentinfo}
+ ${snmpagentcreate_json}= json.dumps ${snmpagentcreate}
+ Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_QUERY}
+ ${resp}= RequestsLibrary.Post Request session /restconf/operations/snmp:get-interfaces data=${snmpagentcreate_json}
+ ${convert}= To Json ${resp.content}
+ @{dict1}= Get Dictionary Keys ${convert}
+ ${dict1_0}= Get From List ${dict1} 0
+ ${dict1_val}= Get From Dictionary ${convert} ${dict1_0}
+ @{ifEntry}= Get From Dictionary ${dict1_val} ifEntry
+ @{SNMP_ENTRY}= Create List
+ @{SNMP_VALUES}= Create List
+ : FOR ${int} IN @{ifEntry}
+ \ ${ifindex}= Get From Dictionary ${int} ifIndex
+ \ ${ifOutDiscards}= Get From Dictionary ${int} ifOutDiscards
+ \ ${ifInDiscards}= Get From Dictionary ${int} ifInDiscards
+ \ ${ifType}= Get From Dictionary ${int} ifType
+ \ ${ifInOctets}= Get From Dictionary ${int} ifInOctets
+ \ ${ifSpeed}= Get From Dictionary ${int} ifSpeed
+ \ ${ifOutQLen}= Get From Dictionary ${int} ifOutQLen
+ \ ${ifOutErrors}= Get From Dictionary ${int} ifOutErrors
+ \ ${ifPhysAddress}= Get From Dictionary ${int} ifPhysAddress
+ \ ${ifInUcastPkts}= Get From Dictionary ${int} ifInUcastPkts
+ \ ${ifOutNUcastPkts}= Get From Dictionary ${int} ifOutNUcastPkts
+ \ ${ifInErrors}= Get From Dictionary ${int} ifInErrors
+ \ ${ifOutOctets}= Get From Dictionary ${int} ifOutOctets
+ \ ${ifAdminStatus1}= Get From Dictionary ${int} ifAdminStatus
+ \ ${ifAdminStatus}= Get From Dictionary ${OPER_STATUS} ${ifAdminStatus1}
+ \ ${ifInUnknownProtos}= Get From Dictionary ${int} ifInUnknownProtos
+ \ ${ifOutUcastPkts}= Get From Dictionary ${int} ifOutUcastPkts
+ \ ${ifInNUcastPkts}= Get From Dictionary ${int} ifInNUcastPkts
+ \ ${ifMtu}= Get From Dictionary ${int} ifMtu
+ \ ${ifOperStatus1}= Get From Dictionary ${int} ifOperStatus
+ \ ${ifOperStatus}= Get From Dictionary ${OPER_STATUS} ${ifOperStatus1}
+ \ Append To List ${SNMP_ENTRY} grep NID=${SNMP_IP} | grep DC=SNMPINTERFACES | grep MN=IfOutDiscards | grep RK=ifIndex:${ifindex},ifName:Iso88023Csmacd,SnmpMetric:IfOutDiscards
+ \ Append To List ${SNMP_VALUES} ${ifOutDiscards}
+ \ Append To List ${SNMP_ENTRY} grep NID=${SNMP_IP} | grep DC=SNMPINTERFACES | grep MN=IfInDiscards | grep RK=ifIndex:${ifindex},ifName:Iso88023Csmacd,SnmpMetric:IfInDiscards
+ \ Append To List ${SNMP_VALUES} ${ifInDiscards}
+ \ Append To List ${SNMP_ENTRY} grep NID=${SNMP_IP} | grep DC=SNMPINTERFACES | grep MN=IfInOctets | grep RK=ifIndex:${ifindex},ifName:Iso88023Csmacd,SnmpMetric:IfInOctets
+ \ Append To List ${SNMP_VALUES} ${ifInOctets}
+ \ Append To List ${SNMP_ENTRY} grep NID=${SNMP_IP} | grep DC=SNMPINTERFACES | grep MN=IfOutQLen | grep RK=ifIndex:${ifindex},ifName:Iso88023Csmacd,SnmpMetric:IfOutQLen
+ \ Append To List ${SNMP_VALUES} ${ifOutQLen}
+ \ Append To List ${SNMP_ENTRY} grep NID=${SNMP_IP} | grep DC=SNMPINTERFACES | grep MN=IfOutErrors | grep RK=ifIndex:${ifindex},ifName:Iso88023Csmacd,SnmpMetric:IfOutErrors
+ \ Append To List ${SNMP_VALUES} ${ifOutErrors}
+ \ Append To List ${SNMP_ENTRY} grep NID=${SNMP_IP} | grep DC=SNMPINTERFACES | grep MN=IfInUcastPkts | grep RK=ifIndex:${ifindex},ifName:Iso88023Csmacd,SnmpMetric:IfInUcastPkts
+ \ Append To List ${SNMP_VALUES} ${ifInUcastPkts}
+ \ Append To List ${SNMP_ENTRY} grep NID=${SNMP_IP} | grep DC=SNMPINTERFACES | grep MN=IfOutNUcastPkts | grep RK=ifIndex:${ifindex},ifName:Iso88023Csmacd,SnmpMetric:IfOutNUcastPkts
+ \ Append To List ${SNMP_VALUES} ${ifOutNUcastPkts}
+ \ Append To List ${SNMP_ENTRY} grep NID=${SNMP_IP} | grep DC=SNMPINTERFACES | grep MN=IfInErrors | grep RK=ifIndex:${ifindex},ifName:Iso88023Csmacd,SnmpMetric:IfInErrors
+ \ Append To List ${SNMP_VALUES} ${ifInErrors}
+ \ Append To List ${SNMP_ENTRY} grep NID=${SNMP_IP} | grep DC=SNMPINTERFACES | grep MN=IfOutOctets | grep RK=ifIndex:${ifindex},ifName:Iso88023Csmacd,SnmpMetric:IfOutOctets
+ \ Append To List ${SNMP_VALUES} ${ifOutOctets}
+ \ Append To List ${SNMP_ENTRY} grep NID=${SNMP_IP} | grep DC=SNMPINTERFACES | grep MN=IfAdminStatus | grep RK=ifIndex:${ifindex},ifName:Iso88023Csmacd,SnmpMetric:IfAdminStatus
+ \ Append To List ${SNMP_VALUES} ${ifAdminStatus}
+ \ Append To List ${SNMP_ENTRY} grep NID=${SNMP_IP} | grep DC=SNMPINTERFACES | grep MN=IfInUnknownProtos | grep RK=ifIndex:${ifindex},ifName:Iso88023Csmacd,SnmpMetric:IfInUnknownProtos
+ \ Append To List ${SNMP_VALUES} ${ifInUnknownProtos}
+ \ Append To List ${SNMP_ENTRY} grep NID=${SNMP_IP} | grep DC=SNMPINTERFACES | grep MN=IfOutUcastPkts | grep RK=ifIndex:${ifindex},ifName:Iso88023Csmacd,SnmpMetric:IfOutUcastPkts
+ \ Append To List ${SNMP_VALUES} ${ifOutUcastPkts}
+ \ Append To List ${SNMP_ENTRY} grep NID=${SNMP_IP} | grep DC=SNMPINTERFACES | grep MN=IfInNUcastPkts | grep RK=ifIndex:${ifindex},ifName:Iso88023Csmacd,SnmpMetric:IfInNUcastPkts
+ \ Append To List ${SNMP_VALUES} ${ifInNUcastPkts}
+ \ Append To List ${SNMP_ENTRY} grep NID=${SNMP_IP} | grep DC=SNMPINTERFACES | grep MN=IfOperStatus | grep RK=ifIndex:${ifindex},ifName:Iso88023Csmacd,SnmpMetric:IfOperStatus
+ \ Append To List ${SNMP_VALUES} ${ifOperStatus}
+ [Return] ${SNMP_ENTRY} ${SNMP_VALUES}