Ets_Odb_Run_Command()

Abstract

Runs an ODB command and returns the output in a list.

Syntax

Ets_Odb_Run_Command (state_ptr, command)
Argument Type Description
state_ptr void * Simulation state
command const char * ODB command to be executed

Return Type

PrgT_List *

List of output strings from the command.

ets_api_odb.h

Example

int dest_ip_objid;
char tmp [VOSC_STR_LEN];
sprintf (tmp, "proldiag %d ip_interfaces", dest_ip_objid);
// first check if the sim hasn't initialized.
PrgT_List *ip_addrs_output = Ets_Odb_Run_Command (sim_state_ptr, tmp);
char *line = (char *)prg_list_access (ip_addrs_output, 0);

Details

Simulation flow is not interrupted by this function. The command and response do not appear in the console.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com