コード例 #1
0
def get_enb_status(client, args):
    """ Get status information for a particular eNodeB """
    req = EnodebIdentity()
    req.device_serial = args.device_serial
    enb_status = client.GetEnodebStatus(req)
    _print_status_line('eNodeB Connected', enb_status.connected)
    _print_status_line('eNodeB Configured', enb_status.configured)
    _print_status_line('Opstate Enabled', enb_status.opstate_enabled)
    _print_status_line('RF TX on', enb_status.rf_tx_on)
    _print_status_line('GPS Connected', enb_status.gps_connected)
    _print_status_line('PTP Connected', enb_status.ptp_connected)
    _print_status_line('MME Connected', enb_status.mme_connected)
    _print_status_line('GPS Longitude', enb_status.gps_longitude)
    _print_status_line('GPS Latitude', enb_status.gps_latitude)
    _print_status_line('FSM State', enb_status.fsm_state)
コード例 #2
0
def reboot_enodeb(client, args):
    req = EnodebIdentity()
    req.device_serial = args.device_serial
    client.Reboot(req)
コード例 #3
0
def configure_enodeb(client, args):
    req = EnodebIdentity()
    req.device_serial = args.device_serial
    client.Configure(req)