monitube2-mgmt_ui.c File Reference

Relating to the user interface (commands) of monitube-mgmt. More...

#include <sync/common.h>
#include <junoscript/xmllib_pub.h>
#include <junoscript/xmlrpc.h>
#include <junoscript/xmlstr.h>
#include <ddl/defs.h>
#include "monitube2-mgmt_main.h"
#include "monitube2-mgmt_config.h"
#include "monitube2-mgmt_conn.h"
#include "monitube2-mgmt_logging.h"

Go to the source code of this file.

Functions

static int32_t monitube_show_stats (mgmt_sock_t *msp, parse_status_t *csb UNUSED, char *unparsed UNUSED)
static int32_t monitube_clear_stats (mgmt_sock_t *msp, parse_status_t *csb UNUSED, char *unparsed UNUSED)

Variables

static const parse_menu_t show_sync_monitube_menu []
static const parse_menu_t clear_sync_monitube_menu []
static const parse_menu_t show_sync_menu []
static const parse_menu_t clear_sync_menu []
static const parse_menu_t show_menu []
static const parse_menu_t clear_menu []
const parse_menu_t master_menu []


Detailed Description

Relating to the user interface (commands) of monitube-mgmt.

Contains callback functions that get executed by commands on the router

Definition in file monitube2-mgmt_ui.c.


Function Documentation

static int32_t monitube_clear_stats ( mgmt_sock_t *  msp,
parse_status_t *csb  UNUSED,
char *unparsed  UNUSED 
) [static]

Clear cached stats for one monitor's config group or all of them

Parameters:
[in] msp management socket pointer
[in] csb parsed info status (contains subcodes/arguments)
[in] unparsed unparsed command string
Returns:
0 if no error

Definition at line 184 of file monitube2-mgmt_ui.c.

References clear_stats().

static int32_t monitube_show_stats ( mgmt_sock_t *  msp,
parse_status_t *csb  UNUSED,
char *unparsed  UNUSED 
) [static]

Shows the monitube stats optionally just for one monitoring config group

Parameters:
[in] msp management socket pointer
[in] csb parsed info status (contains subcodes/arguments)
[in] unparsed unparsed command string
Returns:
0

Definition at line 62 of file monitube2-mgmt_ui.c.

References flowstat_s::flow_addr, flowstat_s::flow_port, ss_info_s::id, flowstat_s::last_mdi_df, flowstat_s::last_mdi_mlr, ss_info_s::name, next_flowstat(), next_flowstat_ss(), next_serviceset(), flowstat_s::reports, flowstat_ss_s::ssid, STATS_BASE_WINDOW, and flowstat_s::window_position.


Variable Documentation

const parse_menu_t clear_menu[] [static]

Initial value:

 {
    { "sync", NULL, 0, clear_sync_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
}
clear ... commands

Definition at line 257 of file monitube2-mgmt_ui.c.

const parse_menu_t clear_sync_menu[] [static]

Initial value:

 {
    { "monitube", NULL, 0, clear_sync_monitube_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
}
clear sync ... commands

Definition at line 241 of file monitube2-mgmt_ui.c.

const parse_menu_t clear_sync_monitube_menu[] [static]

Initial value:

 {
    { "statistics", NULL, 0, NULL, monitube_clear_stats },
    { NULL, NULL, 0, NULL, NULL }
}
clear sync monitube ... commands

Definition at line 225 of file monitube2-mgmt_ui.c.

const parse_menu_t master_menu[]

Initial value:

 {
    { "show", NULL, 0, show_menu, NULL },
    { "clear", NULL, 0, clear_menu, NULL }, 
    { NULL, NULL, 0, NULL, NULL }
}
main menu of commands

Definition at line 265 of file monitube2-mgmt_ui.c.

Referenced by main().

const parse_menu_t show_menu[] [static]

Initial value:

 {
    { "sync", NULL, 0, show_sync_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
}
show ... commands

Definition at line 249 of file monitube2-mgmt_ui.c.

const parse_menu_t show_sync_menu[] [static]

Initial value:

 {
    { "monitube", NULL, 0, show_sync_monitube_menu, NULL },
    { NULL, NULL, 0, NULL, NULL }
}
show sync ... commands

Definition at line 233 of file monitube2-mgmt_ui.c.

const parse_menu_t show_sync_monitube_menu[] [static]

Initial value:

 {
    { "statistics", NULL, 0, NULL, monitube_show_stats },
    { NULL, NULL, 0, NULL, NULL }
}
show sync monitube ... commands

Definition at line 217 of file monitube2-mgmt_ui.c.


2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:27:04 2010 for SDK Your Net Corporation Monitube2 IPTV Monitoring Example: monitube2-mgmt 1.0 by Doxygen 1.5.1