Skip to content
Snippets Groups Projects
dsl_cpe_cli_mib.c 69.4 KiB
Newer Older
  • Learn to ignore specific revisions
  • Kenneth Johansson's avatar
    Kenneth Johansson committed
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000
    /******************************************************************************
    
                              Copyright (c) 2007-2015
                         Lantiq Beteiligungs-GmbH & Co. KG
    
      For licensing information, see the file 'LICENSE' in the root folder of
      this software module.
    
    ******************************************************************************/
    
    /** \file
       DSL CLI, access function implementation
    */
    
    #include "dsl_cpe_control.h"
    #if defined(INCLUDE_DSL_CPE_CLI_SUPPORT) && defined(INCLUDE_DSL_ADSL_MIB)
    
    #include "dsl_cpe_cli.h"
    #include "dsl_cpe_cli_console.h"
    #include "dsl_cpe_debug.h"
    #include "drv_dsl_cpe_api.h"
    #include "drv_dsl_cpe_api_ioctl.h"
    #include "drv_dsl_cpe_api_adslmib.h"
    #include "drv_dsl_cpe_api_adslmib_ioctl.h"
    
    #undef DSL_CCA_DBG_BLOCK
    #define DSL_CCA_DBG_BLOCK DSL_CCA_DBG_CLI
    
    
    /* for debugging: */
    #ifdef DSL_CLI_LOCAL
    #undef DSL_CLI_LOCAL
    #endif
    #if 1
    #define DSL_CLI_LOCAL
    #else
    #define DSL_CLI_LOCAL static
    #endif
    
    extern const char *sFailureReturn;
    
    static const DSL_char_t g_sMibLeg[] =
    #ifndef DSL_CPE_DEBUG_DISABLE
       "Long Form: %s" DSL_CPE_CRLF
       "Short Form: %s" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Input Parameter" DSL_CPE_CRLF
       "%s"
       "- DSL_uint8_t flags" DSL_CPE_CRLF
       "   line code = 0x1" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Output Parameter" DSL_CPE_CRLF
       "- DSL_Error_t nReturn" DSL_CPE_CRLF
       "%s"
       "- DSL_uint8_t flags" DSL_CPE_CRLF
       "- DSL_int_t adslLineCode" DSL_CPE_CRLF
       DSL_CPE_CRLF "";
    #else
       "";
    #endif
    DSL_CLI_LOCAL DSL_int_t DSL_CPE_CLI_MIB_LineEntryGet(
       DSL_int_t fd,
       DSL_char_t *pCommands,
       DSL_CPE_File_t *out)
    {
       DSL_int_t ret = 0;
       adslLineTableEntry_t pData;
       DSL_uint32_t flags = 0;
    
       if (DSL_CPE_CLI_CheckParamNumber(pCommands, 1, DSL_CLI_EQUALS) == DSL_FALSE)
       {
          return -1;
       }
    
       memset(&pData, 0x0, sizeof(adslLineTableEntry_t));
    
       sscanf (pCommands, "%x", &flags);
       pData.flags = (DSL_uint8_t)flags;
    
       ret = DSL_CPE_Ioctl (fd, DSL_FIO_MIB_ADSL_LINE_ENTRY_GET, (int) &pData);
    
       if (ret < 0)
       {
          DSL_CPE_FPrintf (out, sFailureReturn, DSL_CPE_RET_VAL(ret));
       }
       else
       {
          DSL_CPE_FPrintf (out, DSL_CPE_RET"flags=0x%x adslLineCode=%d"DSL_CPE_CRLF,
             DSL_CPE_RET_VAL(ret), pData.flags, pData.adslLineCode);
    
          DSL_CPE_FPrintf(out, DSL_CPE_CRLF);
       }
       return 0;
    }
    
    static const DSL_char_t g_sMibLeeg[] =
    #ifndef DSL_CPE_DEBUG_DISABLE
       "Long Form: %s" DSL_CPE_CRLF
       "Short Form: %s" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Input Parameter" DSL_CPE_CRLF
       "%s"
       "- DSL_uint32_t flags" DSL_CPE_CRLF
       "   atuc trans. capabilities = 0x1" DSL_CPE_CRLF
       "   atuc trans. config       = 0x2" DSL_CPE_CRLF
       "   atuc trans. actual       = 0x4" DSL_CPE_CRLF
       "   power state              = 0x8" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Output Parameter" DSL_CPE_CRLF
       "- DSL_Error_t nReturn" DSL_CPE_CRLF
       "%s"
       "- DSL_uint32_t flags" DSL_CPE_CRLF
       "- DSL_uint16_t adslLineTransAtucCap (hex)" DSL_CPE_CRLF
       "- DSL_uint16_t adslLineTransAtucConfig (hex)" DSL_CPE_CRLF
       "- DSL_uint16_t adslLineTransAtucActual (hex)" DSL_CPE_CRLF
       "- DSL_int_t adslLineGlitePowerState" DSL_CPE_CRLF
       "   none = 1" DSL_CPE_CRLF
       "   L0 = 2" DSL_CPE_CRLF
       "   L1 = 3" DSL_CPE_CRLF
       "   L3 = 4" DSL_CPE_CRLF
       DSL_CPE_CRLF "";
    #else
       "";
    #endif
    DSL_CLI_LOCAL DSL_int_t DSL_CPE_CLI_MIB_LineExtEntryGet(
       DSL_int_t fd,
       DSL_char_t *pCommands,
       DSL_CPE_File_t *out)
    {
       DSL_int_t ret = 0;
       adslLineExtTableEntry_t pData;
       DSL_uint32_t flags = 0;
    
       if (DSL_CPE_CLI_CheckParamNumber(pCommands, 1, DSL_CLI_EQUALS) == DSL_FALSE)
       {
          return -1;
       }
    
       memset(&pData, 0x0, sizeof(adslLineExtTableEntry_t));
    
       sscanf (pCommands, "%x", &flags);
       pData.flags = (DSL_uint8_t)flags;
    
       ret = DSL_CPE_Ioctl (fd, DSL_FIO_MIB_ADSL_LINE_EXT_ENTRY_GET, (int) &pData);
    
       if (ret < 0)
       {
          DSL_CPE_FPrintf (out, sFailureReturn, DSL_CPE_RET_VAL(ret));
       }
       else
       {
          DSL_CPE_FPrintf (out,
             DSL_CPE_RET"flags=0x%x adslLineTransAtucCap=0x%x "
             "adslLineTransAtucConfig=0x%x adslLineTransAtucActual=0x%x "
             "adslLineGlitePowerState=%d"DSL_CPE_CRLF,
             DSL_CPE_RET_VAL(ret), pData.flags,
             pData.adslLineTransAtucCap,
             pData.adslLineTransAtucConfig,
             pData.adslLineTransAtucActual,
             pData.adslLineGlitePowerState);
    
          DSL_CPE_FPrintf(out, DSL_CPE_CRLF);
       }
       return 0;
    }
    
    static const DSL_char_t g_sMibAtucpeg[] =
    #ifndef DSL_CPE_DEBUG_DISABLE
       "Long Form: %s" DSL_CPE_CRLF
       "Short Form: %s" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Input Parameter" DSL_CPE_CRLF
       "%s"
       "- DSL_uint8_t flags (hex)" DSL_CPE_CRLF
       "   serial number  = 0x1" DSL_CPE_CRLF
       "   vendor id      = 0x2" DSL_CPE_CRLF
       "   version number = 0x4" DSL_CPE_CRLF
       "   line status    = 0x8" DSL_CPE_CRLF
       "   output power   = 0x10" DSL_CPE_CRLF
       "   att. rate      = 0x20" DSL_CPE_CRLF
       "   attenuation    = 0x40" DSL_CPE_CRLF
       "   snr margin     = 0x80" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Output Parameter" DSL_CPE_CRLF
       "- DSL_Error_t nReturn" DSL_CPE_CRLF
       "%s"
       "- DSL_uint8_t flags (hex)" DSL_CPE_CRLF
       "- DSL_char_t serial_no[32]" DSL_CPE_CRLF
       "- DSL_char_t vendor_id[16]" DSL_CPE_CRLF
       "- DSL_uint16_t country_code (hex)" DSL_CPE_CRLF
       "- DSL_char_t provider_id[4]" DSL_CPE_CRLF
       "- DSL_char_t revision_info[2]" DSL_CPE_CRLF
       "- DSL_char_t version_no[16]" DSL_CPE_CRLF
       "- DSL_uint32_t Attn" DSL_CPE_CRLF
       "- DSL_uint32_t SnrMgn" DSL_CPE_CRLF
       "- DSL_uint32_t status" DSL_CPE_CRLF
       "   noDefect            = 0x0" DSL_CPE_CRLF
       "   lossOfFraming       = 0x1" DSL_CPE_CRLF
       "   lossOfSignal        = 0x2" DSL_CPE_CRLF
       "   lossOfPower         = 0x4" DSL_CPE_CRLF
       "   lossOfSignalQuality = 0x8" DSL_CPE_CRLF
       "   lossOfLink          = 0x10" DSL_CPE_CRLF
       "   dataInitFailure     = 0x20" DSL_CPE_CRLF
       "   configInitFailure   = 0x40" DSL_CPE_CRLF
       "   protocolInitFailure = 0x80" DSL_CPE_CRLF
       "   noPeerAtuPresent    = 0x100" DSL_CPE_CRLF
       "- DSL_int_t outputPwr" DSL_CPE_CRLF
       "- DSL_uint32_t attainableRate" DSL_CPE_CRLF
       DSL_CPE_CRLF "";
    #else
       "";
    #endif
    DSL_CLI_LOCAL DSL_int_t DSL_CPE_CLI_MIB_ATUC_PhysEntryGet(
       DSL_int_t fd,
       DSL_char_t *pCommands,
       DSL_CPE_File_t *out)
    {
       DSL_int_t ret = 0;
       adslAtucPhysEntry_t pData;
       DSL_char_t buf[256];
       DSL_uint32_t flags = 0;
    
       if (DSL_CPE_CLI_CheckParamNumber(pCommands, 1, DSL_CLI_EQUALS) == DSL_FALSE)
       {
          return -1;
       }
    
       memset(&pData, 0x0, sizeof(adslAtucPhysEntry_t));
    
       sscanf (pCommands, "%x", &flags);
       pData.flags = flags;
    
       ret = DSL_CPE_Ioctl (fd, DSL_FIO_MIB_ADSL_ATUC_PHYS_ENTRY_GET, (int) &pData);
    
       if (ret < 0)
       {
          DSL_CPE_FPrintf (out, sFailureReturn, DSL_CPE_RET_VAL(ret));
       }
       else
       {
          DSL_CPE_ArraySPrintF(buf, pData.serial_no,
             sizeof(pData.serial_no), sizeof(pData.serial_no[0]),
             DSL_ARRAY_FORMAT_HEX);
          DSL_CPE_FPrintf (out, DSL_CPE_RET"flags=0x%x serial_no=%s ", DSL_CPE_RET_VAL(ret),
             pData.flags, buf);
    
          DSL_CPE_ArraySPrintF(buf, pData.vendor_id.vendor_id,
             sizeof(pData.vendor_id.vendor_id), sizeof(pData.vendor_id.vendor_id[0]),
             DSL_ARRAY_FORMAT_HEX);
          DSL_CPE_FPrintf (out, "vendor_id=%s ", buf);
    
          DSL_CPE_FPrintf (out, "country_code=0x%x ", pData.vendor_id.vendor_info.country_code);
    
          DSL_CPE_ArraySPrintF(buf, pData.vendor_id.vendor_info.provider_id,
             sizeof(pData.vendor_id.vendor_info.provider_id), sizeof(pData.vendor_id.vendor_info.provider_id[0]),
             DSL_ARRAY_FORMAT_HEX);
          DSL_CPE_FPrintf (out, "provider_id=%s ", buf);
    
          DSL_CPE_ArraySPrintF(buf, pData.vendor_id.vendor_info.revision_info,
             sizeof(pData.vendor_id.vendor_info.revision_info), sizeof(pData.vendor_id.vendor_info.revision_info[0]),
             DSL_ARRAY_FORMAT_HEX);
          DSL_CPE_FPrintf (out, "revision_info=%s ", buf);
    
          DSL_CPE_ArraySPrintF(buf, pData.version_no,
             sizeof(pData.version_no), sizeof(pData.version_no[0]),
             DSL_ARRAY_FORMAT_HEX);
          DSL_CPE_FPrintf (out, "version_no=%s ", buf);
    
          DSL_CPE_FPrintf (out, "Attn=%d SnrMgn=%d ", pData.Attn, pData.SnrMgn);
    
          DSL_CPE_FPrintf (out, "status=%d ", pData.status);
          DSL_CPE_FPrintf (out, "outputPwr=%d ", pData.outputPwr);
          DSL_CPE_FPrintf (out, "attainableRate=%d"DSL_CPE_CRLF, pData.attainableRate);
          DSL_CPE_FPrintf(out, DSL_CPE_CRLF);
       }
       return 0;
    }
    
    static const DSL_char_t g_sMibAturpeg[] =
    #ifndef DSL_CPE_DEBUG_DISABLE
       "Long Form: %s" DSL_CPE_CRLF
       "Short Form: %s" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Input Parameter" DSL_CPE_CRLF
       "%s"
       "- DSL_uint8_t flags (hex)" DSL_CPE_CRLF
       "   serial number  = 0x1" DSL_CPE_CRLF
       "   vendor id      = 0x2" DSL_CPE_CRLF
       "   version number = 0x4" DSL_CPE_CRLF
       "   line status    = 0x20" DSL_CPE_CRLF
       "   output power   = 0x40" DSL_CPE_CRLF
       "   att. rate      = 0x80" DSL_CPE_CRLF
       "   attenuation    = 0x100" DSL_CPE_CRLF
       "   snr margin     = 0x200" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Output Parameter" DSL_CPE_CRLF
       "- DSL_Error_t nReturn" DSL_CPE_CRLF
       "%s"
       "- DSL_uint8_t flags (hex)" DSL_CPE_CRLF
       "- DSL_char_t serial_no[32]" DSL_CPE_CRLF
       "- DSL_char_t vendor_id[16]" DSL_CPE_CRLF
       "- DSL_uint16_t country_code (hex)" DSL_CPE_CRLF
       "- DSL_char_t provider_id[4]" DSL_CPE_CRLF
       "- DSL_char_t revision_info[2]" DSL_CPE_CRLF
       "- DSL_char_t version_no[16]" DSL_CPE_CRLF
       "- DSL_uint32_t Attn" DSL_CPE_CRLF
       "- DSL_uint32_t SnrMgn" DSL_CPE_CRLF
       "- DSL_uint32_t status" DSL_CPE_CRLF
       "   noDefect            = 0x0" DSL_CPE_CRLF
       "   lossOfFraming       = 0x1" DSL_CPE_CRLF
       "   lossOfSignal        = 0x2" DSL_CPE_CRLF
       "   lossOfPower         = 0x4" DSL_CPE_CRLF
       "   lossOfSignalQuality = 0x8" DSL_CPE_CRLF
       "- DSL_int_t outputPwr" DSL_CPE_CRLF
       "- DSL_uint32_t attainableRate" DSL_CPE_CRLF
       DSL_CPE_CRLF "";
    #else
       "";
    #endif
    DSL_CLI_LOCAL DSL_int_t DSL_CPE_CLI_MIB_ATUR_PhysEntryGet(
       DSL_int_t fd,
       DSL_char_t *pCommands,
       DSL_CPE_File_t *out)
    {
       DSL_int_t ret = 0;
       adslAturPhysEntry_t pData;
       DSL_char_t buf[256];
       DSL_uint32_t flags = 0;
    
       if (DSL_CPE_CLI_CheckParamNumber(pCommands, 1, DSL_CLI_EQUALS) == DSL_FALSE)
       {
          return -1;
       }
    
       memset(&pData, 0x0, sizeof(adslAturPhysEntry_t));
    
       sscanf (pCommands, "%x", &flags);
       pData.flags = flags;
    
       ret = DSL_CPE_Ioctl (fd, DSL_FIO_MIB_ADSL_ATUR_PHYS_ENTRY_GET, (int) &pData);
    
       if (ret < 0)
       {
          DSL_CPE_FPrintf (out, sFailureReturn, DSL_CPE_RET_VAL(ret));
       }
       else
       {
          DSL_CPE_ArraySPrintF(buf, pData.serial_no,
             sizeof(pData.serial_no), sizeof(pData.serial_no[0]),
             DSL_ARRAY_FORMAT_HEX);
          DSL_CPE_FPrintf (out, DSL_CPE_RET"flags=0x%x serial_no=%s ",
             DSL_CPE_RET_VAL(ret), pData.flags, buf);
    
          DSL_CPE_ArraySPrintF(buf, pData.vendor_id.vendor_id,
             sizeof(pData.vendor_id.vendor_id), sizeof(pData.vendor_id.vendor_id[0]),
             DSL_ARRAY_FORMAT_HEX);
          DSL_CPE_FPrintf (out, "vendor_id=%s ", buf);
    
          DSL_CPE_FPrintf (out, "country_code=0x%x ", pData.vendor_id.vendor_info.country_code);
    
          DSL_CPE_ArraySPrintF(buf, pData.vendor_id.vendor_info.provider_id,
             sizeof(pData.vendor_id.vendor_info.provider_id), sizeof(pData.vendor_id.vendor_info.provider_id[0]),
             DSL_ARRAY_FORMAT_HEX);
          DSL_CPE_FPrintf (out, "provider_id=%s ", buf);
    
          DSL_CPE_ArraySPrintF(buf, pData.vendor_id.vendor_info.revision_info,
             sizeof(pData.vendor_id.vendor_info.revision_info), sizeof(pData.vendor_id.vendor_info.revision_info[0]),
             DSL_ARRAY_FORMAT_HEX);
          DSL_CPE_FPrintf (out, "revision_info=%s ", buf);
    
          DSL_CPE_ArraySPrintF(buf, pData.version_no,
             sizeof(pData.version_no), sizeof(pData.version_no[0]),
             DSL_ARRAY_FORMAT_HEX);
          DSL_CPE_FPrintf (out, "version_no=%s ", buf);
    
          DSL_CPE_FPrintf (out, "Attn=%d SnrMgn=%d ", pData.Attn, pData.SnrMgn);
    
          DSL_CPE_FPrintf (out, "status=%d ", pData.status);
          DSL_CPE_FPrintf (out, "outputPwr=%d ", pData.outputPwr);
          DSL_CPE_FPrintf (out, "attainableRate=%d"DSL_CPE_CRLF, pData.attainableRate);
    
          DSL_CPE_FPrintf(out, DSL_CPE_CRLF);
       }
       return 0;
    }
    
    static const DSL_char_t g_sMibAtucceg[] =
    #ifndef DSL_CPE_DEBUG_DISABLE
       "Long Form: %s" DSL_CPE_CRLF
       "Short Form: %s" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Input Parameter" DSL_CPE_CRLF
       "%s"
       "- DSL_uint8_t flags (hex)" DSL_CPE_CRLF
       "   interleaver delay = 0x1" DSL_CPE_CRLF
       "   curr tx rate      = 0x2" DSL_CPE_CRLF
       "   prev tx rate      = 0x4" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Output Parameter" DSL_CPE_CRLF
       "- DSL_Error_t nReturn" DSL_CPE_CRLF
       "%s"
       "- DSL_uint8_t flags (hex)" DSL_CPE_CRLF
       "- DSL_uint32_t interleaveDelay" DSL_CPE_CRLF
       "- DSL_uint32_t currTxRate" DSL_CPE_CRLF
       "- DSL_uint32_t prevTxRate" DSL_CPE_CRLF
       DSL_CPE_CRLF "";
    #else
       "";
    #endif
    DSL_CLI_LOCAL DSL_int_t DSL_CPE_CLI_MIB_ATUC_ChanEntryGet(
       DSL_int_t fd,
       DSL_char_t *pCommands,
       DSL_CPE_File_t *out)
    {
       DSL_int_t ret = 0;
       adslAtucChanInfo_t pData;
       DSL_uint32_t flags = 0;
    
       if (DSL_CPE_CLI_CheckParamNumber(pCommands, 1, DSL_CLI_EQUALS) == DSL_FALSE)
       {
          return -1;
       }
    
       memset(&pData, 0x0, sizeof(adslAtucChanInfo_t));
    
       sscanf (pCommands, "%x", &flags);
       pData.flags = (DSL_uint8_t)flags;
    
       ret = DSL_CPE_Ioctl (fd, DSL_FIO_MIB_ADSL_ATUC_CHAN_ENTRY_GET, (int) &pData);
    
       if (ret < 0)
       {
          DSL_CPE_FPrintf (out, sFailureReturn, DSL_CPE_RET_VAL(ret));
       }
       else
       {
          DSL_CPE_FPrintf (out, DSL_CPE_RET"flags=0x%x interleaveDelay=%d currTxRate=%d prevTxRate=%d"DSL_CPE_CRLF,
          DSL_CPE_RET_VAL(ret),
          pData.flags, pData.interleaveDelay, pData.currTxRate, pData.prevTxRate);
    
          DSL_CPE_FPrintf(out, DSL_CPE_CRLF);
       }
       return 0;
    }
    
    static const DSL_char_t g_sMibAturceg[] =
    #ifndef DSL_CPE_DEBUG_DISABLE
       "Long Form: %s" DSL_CPE_CRLF
       "Short Form: %s" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Input Parameter" DSL_CPE_CRLF
       "%s"
       "- DSL_uint8_t flags (hex)" DSL_CPE_CRLF
       "   interleaver delay = 0x1" DSL_CPE_CRLF
       "   curr tx rate      = 0x2" DSL_CPE_CRLF
       "   prev tx rate      = 0x4" DSL_CPE_CRLF
       "   crc blk length    = 0x8" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Output Parameter" DSL_CPE_CRLF
       "- DSL_Error_t nReturn" DSL_CPE_CRLF
       "%s"
       "- DSL_uint8_t flags (hex)" DSL_CPE_CRLF
       "- DSL_uint32_t interleaveDelay" DSL_CPE_CRLF
       "- DSL_uint32_t currTxRate" DSL_CPE_CRLF
       "- DSL_uint32_t prevTxRate" DSL_CPE_CRLF
       "- DSL_uint32_t crcBlkLen" DSL_CPE_CRLF
       DSL_CPE_CRLF "";
    #else
       "";
    #endif
    DSL_CLI_LOCAL DSL_int_t DSL_CPE_CLI_MIB_ATUR_ChanEntryGet(
       DSL_int_t fd,
       DSL_char_t *pCommands,
       DSL_CPE_File_t *out)
    {
       DSL_int_t ret = 0;
       adslAturChanInfo_t pData;
       DSL_uint32_t flags = 0;
    
       if (DSL_CPE_CLI_CheckParamNumber(pCommands, 1, DSL_CLI_EQUALS) == DSL_FALSE)
       {
          return -1;
       }
    
       memset(&pData, 0x0, sizeof(adslAturChanInfo_t));
    
       sscanf (pCommands, "%x", &flags);
       pData.flags = (DSL_uint8_t)flags;
    
       ret = DSL_CPE_Ioctl (fd, DSL_FIO_MIB_ADSL_ATUR_CHAN_ENTRY_GET, (int) &pData);
    
       if (ret < 0)
       {
          DSL_CPE_FPrintf (out, sFailureReturn, DSL_CPE_RET_VAL(ret));
       }
       else
       {
          DSL_CPE_FPrintf (out, DSL_CPE_RET"flags=0x%x interleaveDelay=%d currTxRate=%d prevTxRate=%d "
             "crcBlkLen=%d"DSL_CPE_CRLF,
             DSL_CPE_RET_VAL(ret),
             pData.flags, pData.interleaveDelay, pData.currTxRate, pData.prevTxRate, pData.crcBlkLen);
    
          DSL_CPE_FPrintf(out, DSL_CPE_CRLF);
       }
       return 0;
    }
    
    #ifdef INCLUDE_DSL_PM
    #ifdef INCLUDE_DSL_CPE_PM_LINE_COUNTERS
    static const DSL_char_t g_sMibAturpdeg[] =
    #ifndef DSL_CPE_DEBUG_DISABLE
       "Long Form: %s" DSL_CPE_CRLF
       "Short Form: %s" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Input Parameter" DSL_CPE_CRLF
       "%s"
       "- DSL_uint32_t flags (hex)" DSL_CPE_CRLF
       "   LOFS              = 0x1" DSL_CPE_CRLF
       "   LOSS              = 0x2" DSL_CPE_CRLF
       "   LPR               = 0x4" DSL_CPE_CRLF
       "   ESS               = 0x8" DSL_CPE_CRLF
       "   valid intervals   = 0x10" DSL_CPE_CRLF
       "   invalid intervals = 0x20" DSL_CPE_CRLF
       "   15min elapsed     = 0x40" DSL_CPE_CRLF
       "   15min LOFS        = 0x80" DSL_CPE_CRLF
       "   15min LOSS        = 0x100" DSL_CPE_CRLF
       "   15min LPR         = 0x200" DSL_CPE_CRLF
       "   15min ESS         = 0x400" DSL_CPE_CRLF
       "   1day elapsed      = 0x800" DSL_CPE_CRLF
       "   1day LOFS         = 0x1000" DSL_CPE_CRLF
       "   1day LOSS         = 0x2000" DSL_CPE_CRLF
       "   1day LPR          = 0x4000" DSL_CPE_CRLF
       "   1day ESS          = 0x8000" DSL_CPE_CRLF
       "   1day elapsed prev = 0x10000" DSL_CPE_CRLF
       "   1day LOFS prev    = 0x20000" DSL_CPE_CRLF
       "   1day LOSS prev    = 0x40000" DSL_CPE_CRLF
       "   1day LPR prev     = 0x80000" DSL_CPE_CRLF
       "   1day ESS prev     = 0x100000" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Output Parameter" DSL_CPE_CRLF
       "- DSL_Error_t nReturn" DSL_CPE_CRLF
       "%s"
       "- DSL_uint32_t flags (hex)" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfLofs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfLoss" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfLprs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfESs" DSL_CPE_CRLF
       "- DSL_int_t adslAturPerfValidIntervals" DSL_CPE_CRLF
       "- DSL_int_t adslAturPerfInvalidIntervals" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfCurr15MinTimeElapsed" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfCurr15MinLofs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfCurr15MinLoss" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfCurr15MinLprs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfCurr15MinESs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfCurr1DayTimeElapsed" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfCurr1DayLofs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfCurr1DayLoss" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfCurr1DayLprs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfCurr1DayESs" DSL_CPE_CRLF
       "- DSL_int_t adslAturPerfPrev1DayMoniSecs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfPrev1DayLofs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfPrev1DayLoss" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfPrev1DayLprs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAturPerfPrev1DayESs" DSL_CPE_CRLF
       DSL_CPE_CRLF "";
    #else
       "";
    #endif
    DSL_CLI_LOCAL DSL_int_t DSL_CPE_CLI_MIB_ATUR_PerfDataEntryGet(
       DSL_int_t fd,
       DSL_char_t *pCommands,
       DSL_CPE_File_t *out)
    {
       DSL_int_t ret = 0;
       aturPerfDataEntry_t pData;
    
       if (DSL_CPE_CLI_CheckParamNumber(pCommands, 1, DSL_CLI_EQUALS) == DSL_FALSE)
       {
          return -1;
       }
    
       memset(&pData, 0x0, sizeof(aturPerfDataEntry_t));
    
       sscanf (pCommands, "%x", &pData.flags);
    
       ret = DSL_CPE_Ioctl (fd, DSL_FIO_MIB_ADSL_ATUR_PERF_DATA_ENTRY_GET, (int) &pData);
    
       if (ret < 0)
       {
          DSL_CPE_FPrintf (out, sFailureReturn, DSL_CPE_RET_VAL(ret));
       }
       else
       {
          DSL_CPE_FPrintf (out,
             DSL_CPE_RET"flags=0x%x "
             "adslAturPerfLofs=%d adslAturPerfLoss=%d adslAturPerfLprs=%d "
             "adslAturPerfESs=%d adslAturPerfValidIntervals=%d adslAturPerfInvalidIntervals=%d "
             "adslAturPerfCurr15MinTimeElapsed=%d adslAturPerfCurr15MinLofs=%d "
             "adslAturPerfCurr15MinLoss=%d adslAturPerfCurr15MinLprs=%d "
             "adslAturPerfCurr15MinESs=%d adslAturPerfCurr1DayTimeElapsed=%d "
             "adslAturPerfCurr1DayLofs=%d adslAturPerfCurr1DayLoss=%d "
             "adslAturPerfCurr1DayLprs=%d adslAturPerfCurr1DayESs=%d "
             "adslAturPerfPrev1DayMoniSecs=%d adslAturPerfPrev1DayLofs=%d "
             "adslAturPerfPrev1DayLoss=%d adslAturPerfPrev1DayLprs=%d "
             "adslAturPerfPrev1DayESs=%d"DSL_CPE_CRLF,
             DSL_CPE_RET_VAL(ret),
             pData.flags,
             pData.adslAturPerfLofs,
             pData.adslAturPerfLoss,
             pData.adslAturPerfLprs,
             pData.adslAturPerfESs,
             pData.adslAturPerfValidIntervals,
             pData.adslAturPerfInvalidIntervals,
             pData.adslAturPerfCurr15MinTimeElapsed,
             pData.adslAturPerfCurr15MinLofs,
             pData.adslAturPerfCurr15MinLoss,
             pData.adslAturPerfCurr15MinLprs,
             pData.adslAturPerfCurr15MinESs,
             pData.adslAturPerfCurr1DayTimeElapsed,
             pData.adslAturPerfCurr1DayLofs,
             pData.adslAturPerfCurr1DayLoss,
             pData.adslAturPerfCurr1DayLprs,
             pData.adslAturPerfCurr1DayESs,
             pData.adslAturPerfPrev1DayMoniSecs,
             pData.adslAturPerfPrev1DayLofs,
             pData.adslAturPerfPrev1DayLoss,
             pData.adslAturPerfPrev1DayLprs,
             pData.adslAturPerfPrev1DayESs);
          DSL_CPE_FPrintf(out, DSL_CPE_CRLF);
       }
       return 0;
    }
    
    static const DSL_char_t g_sMibAtucpdeg[] =
    #ifndef DSL_CPE_DEBUG_DISABLE
       "Long Form: %s" DSL_CPE_CRLF
       "Short Form: %s" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Input Parameter" DSL_CPE_CRLF
       "%s"
       "- DSL_uint32_t flags (hex)" DSL_CPE_CRLF
       "   LOFS              = 0x1" DSL_CPE_CRLF
       "   LOSS              = 0x2" DSL_CPE_CRLF
       "   ESS               = 0x4" DSL_CPE_CRLF
       "   INITS              = 0x8" DSL_CPE_CRLF
       "   valid intervals   = 0x10" DSL_CPE_CRLF
       "   invalid intervals = 0x20" DSL_CPE_CRLF
       "   15min elapsed     = 0x40" DSL_CPE_CRLF
       "   15min LOFS        = 0x80" DSL_CPE_CRLF
       "   15min LOSS        = 0x100" DSL_CPE_CRLF
       "   15min ESS         = 0x200" DSL_CPE_CRLF
       "   15min INIT        = 0x400" DSL_CPE_CRLF
       "   1day elapsed      = 0x800" DSL_CPE_CRLF
       "   1day LOFS         = 0x1000" DSL_CPE_CRLF
       "   1day LOSS         = 0x2000" DSL_CPE_CRLF
       "   1day ESS          = 0x4000" DSL_CPE_CRLF
       "   1day INIT         = 0x8000" DSL_CPE_CRLF
       "   1day elapsed prev = 0x10000" DSL_CPE_CRLF
       "   1day LOFS prev    = 0x20000" DSL_CPE_CRLF
       "   1day LOSS prev    = 0x40000" DSL_CPE_CRLF
       "   1day ESS prev     = 0x80000" DSL_CPE_CRLF
       "   1day INIT prev    = 0x100000" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Output Parameter" DSL_CPE_CRLF
       "- DSL_Error_t nReturn" DSL_CPE_CRLF
       "%s"
       "- DSL_uint32_t flags (hex)" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfLofs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfLoss" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfESs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfInits" DSL_CPE_CRLF
       "- DSL_int_t adslAtucPerfValidIntervals" DSL_CPE_CRLF
       "- DSL_int_t adslAtucPerfInvalidIntervals" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfCurr15MinTimeElapsed" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfCurr15MinLofs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfCurr15MinLoss" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfCurr15MinESs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfCurr15MinInits" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfCurr1DayTimeElapsed" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfCurr1DayLofs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfCurr1DayLoss" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfCurr1DayESs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfCurr1DayInits" DSL_CPE_CRLF
       "- DSL_int_t adslAtucPerfPrev1DayMoniSecs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfPrev1DayLofs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfPrev1DayLoss" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfPrev1DayESs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucPerfPrev1DayInits" DSL_CPE_CRLF
       DSL_CPE_CRLF "";
    #else
       "";
    #endif
    DSL_CLI_LOCAL DSL_int_t DSL_CPE_CLI_MIB_ATUC_PerfDataEntryGet(
       DSL_int_t fd,
       DSL_char_t *pCommands,
       DSL_CPE_File_t *out)
    {
       DSL_int_t ret = 0;
       atucPerfDataEntry_t pData;
    
       if (DSL_CPE_CLI_CheckParamNumber(pCommands, 1, DSL_CLI_EQUALS) == DSL_FALSE)
       {
          return -1;
       }
    
       memset(&pData, 0x0, sizeof(atucPerfDataEntry_t));
    
       sscanf (pCommands, "%x", &pData.flags);
    
       ret = DSL_CPE_Ioctl (fd, DSL_FIO_MIB_ADSL_ATUC_PERF_DATA_ENTRY_GET, (int) &pData);
    
       if (ret < 0)
       {
          DSL_CPE_FPrintf (out, sFailureReturn, DSL_CPE_RET_VAL(ret));
       }
       else
       {
          DSL_CPE_FPrintf (out,
             DSL_CPE_RET"flags=0x%x adslAtucPerfLofs=%d adslAtucPerfLoss=%d adslAtucPerfESs=%d "
             "adslAtucPerfInits=%d adslAtucPerfValidIntervals=%d adslAtucPerfInvalidIntervals=%d "
             "adslAtucPerfCurr15MinTimeElapsed=%d adslAtucPerfCurr15MinLofs=%d "
             "adslAtucPerfCurr15MinLoss=%d adslAtucPerfCurr15MinESs=%d "
             "adslAtucPerfCurr15MinInits=%d adslAtucPerfCurr1DayTimeElapsed=%d "
             "adslAtucPerfCurr1DayLofs=%d adslAtucPerfCurr1DayLoss=%d "
             "adslAtucPerfCurr1DayESs=%d adslAtucPerfCurr1DayInits=%d "
             "adslAtucPerfPrev1DayMoniSecs=%d adslAtucPerfPrev1DayLofs=%d "
             "adslAtucPerfPrev1DayLoss=%d adslAtucPerfPrev1DayESs=%d "
             "adslAtucPerfPrev1DayInits=%d"DSL_CPE_CRLF,
             DSL_CPE_RET_VAL(ret),
             pData.flags,
             pData.adslAtucPerfLofs,
             pData.adslAtucPerfLoss,
             pData.adslAtucPerfESs,
             pData.adslAtucPerfInits,
             pData.adslAtucPerfValidIntervals,
             pData.adslAtucPerfInvalidIntervals,
             pData.adslAtucPerfCurr15MinTimeElapsed,
             pData.adslAtucPerfCurr15MinLofs,
             pData.adslAtucPerfCurr15MinLoss,
             pData.adslAtucPerfCurr15MinESs,
             pData.adslAtucPerfCurr15MinInits,
             pData.adslAtucPerfCurr1DayTimeElapsed,
             pData.adslAtucPerfCurr1DayLofs,
             pData.adslAtucPerfCurr1DayLoss,
             pData.adslAtucPerfCurr1DayESs,
             pData.adslAtucPerfCurr1DayInits,
             pData.adslAtucPerfPrev1DayMoniSecs,
             pData.adslAtucPerfPrev1DayLofs,
             pData.adslAtucPerfPrev1DayLoss,
             pData.adslAtucPerfPrev1DayESs,
             pData.adslAtucPerfPrev1DayInits);
    
          DSL_CPE_FPrintf(out, DSL_CPE_CRLF);
       }
       return 0;
    }
    
    #ifdef INCLUDE_DSL_CPE_PM_HISTORY
    static const DSL_char_t g_sMibAtucieg[] =
    #ifndef DSL_CPE_DEBUG_DISABLE
       "Long Form: %s" DSL_CPE_CRLF
       "Short Form: %s" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Input Parameter" DSL_CPE_CRLF
       "%s"
       "- DSL_int_t IntervalNumber" DSL_CPE_CRLF
       "- DSL_uint32_t flags (hex)" DSL_CPE_CRLF
       "   LOF        = 0x1" DSL_CPE_CRLF
       "   LOS        = 0x2" DSL_CPE_CRLF
       "   ESS        = 0x4" DSL_CPE_CRLF
       "   INIT       = 0x8" DSL_CPE_CRLF
       "   VALID DATA = 0x10" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Output Parameter" DSL_CPE_CRLF
       "- DSL_Error_t nReturn" DSL_CPE_CRLF
       "%s"
       "- DSL_uint32_t flags (hex)" DSL_CPE_CRLF
       "- DSL_uint32_t intervalLOF" DSL_CPE_CRLF
       "- DSL_uint32_t intervalLOS" DSL_CPE_CRLF
       "- DSL_uint32_t intervalES" DSL_CPE_CRLF
       "- DSL_uint32_t intervalInits" DSL_CPE_CRLF
       "- DSL_int_t intervalValidData" DSL_CPE_CRLF
       DSL_CPE_CRLF "";
    #else
       "";
    #endif
    DSL_CLI_LOCAL DSL_int_t DSL_CPE_CLI_MIB_ATUC_IntervalEntryGet(
       DSL_int_t fd,
       DSL_char_t *pCommands,
       DSL_CPE_File_t *out)
    {
       DSL_int_t ret = 0;
       adslAtucIntvlInfo_t pData;
       DSL_uint32_t flags = 0;
    
       if (DSL_CPE_CLI_CheckParamNumber(pCommands, 2, DSL_CLI_EQUALS) == DSL_FALSE)
       {
          return -1;
       }
    
       memset(&pData, 0x0, sizeof(adslAtucIntvlInfo_t));
    
       sscanf (pCommands, "%d %x", &pData.IntervalNumber, &flags);
       pData.flags = (DSL_uint8_t)flags;
    
       ret = DSL_CPE_Ioctl (fd, DSL_FIO_MIB_ADSL_ATUC_INTERVAL_ENTRY_GET, (int) &pData);
    
       if (ret < 0)
       {
          DSL_CPE_FPrintf (out, sFailureReturn, DSL_CPE_RET_VAL(ret));
       }
       else
       {
          DSL_CPE_FPrintf (out,
             DSL_CPE_RET"flags=0x%x "
             "intervalLOF=%d intervalLOS=%d intervalES=%d "
             "intervalInits=%d intervalValidData=%d"DSL_CPE_CRLF,
             DSL_CPE_RET_VAL(ret),
             pData.flags,
             pData.intervalLOF,
             pData.intervalLOS,
             pData.intervalES,
             pData.intervalInits,
             pData.intervalValidData);
    
          DSL_CPE_FPrintf(out, DSL_CPE_CRLF);
       }
       return 0;
    }
    
    static const DSL_char_t g_sMibAturieg[] =
    #ifndef DSL_CPE_DEBUG_DISABLE
       "Long Form: %s" DSL_CPE_CRLF
       "Short Form: %s" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Input Parameter" DSL_CPE_CRLF
       "%s"
       "- DSL_int_t IntervalNumber" DSL_CPE_CRLF
       "- DSL_uint32_t flags (hex)" DSL_CPE_CRLF
       "   LOF        = 0x1" DSL_CPE_CRLF
       "   LOS        = 0x2" DSL_CPE_CRLF
       "   LPR        = 0x4" DSL_CPE_CRLF
       "   ESS        = 0x8" DSL_CPE_CRLF
       "   VALID DATA = 0x10" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Output Parameter" DSL_CPE_CRLF
       "- DSL_Error_t nReturn" DSL_CPE_CRLF
       "%s"
       "- DSL_uint32_t flags (hex)" DSL_CPE_CRLF
       "- DSL_uint32_t intervalLOF" DSL_CPE_CRLF
       "- DSL_uint32_t intervalLOS" DSL_CPE_CRLF
       "- DSL_uint32_t intervalLPR" DSL_CPE_CRLF
       "- DSL_uint32_t intervalES" DSL_CPE_CRLF
       "- DSL_int_t intervalValidData" DSL_CPE_CRLF
       DSL_CPE_CRLF "";
    #else
       "";
    #endif
    DSL_CLI_LOCAL DSL_int_t DSL_CPE_CLI_MIB_ATUR_IntervalEntryGet(
       DSL_int_t fd,
       DSL_char_t *pCommands,
       DSL_CPE_File_t *out)
    {
       DSL_int_t ret = 0;
       adslAturIntvlInfo_t pData;
       DSL_uint32_t flags = 0;
    
       if (DSL_CPE_CLI_CheckParamNumber(pCommands, 2, DSL_CLI_EQUALS) == DSL_FALSE)
       {
          return -1;
       }
    
       memset(&pData, 0x0, sizeof(adslAturIntvlInfo_t));
    
       sscanf (pCommands, "%d %x", &pData.IntervalNumber, &flags);
       pData.flags = (DSL_uint8_t)flags;
    
       ret = DSL_CPE_Ioctl (fd, DSL_FIO_MIB_ADSL_ATUR_INTERVAL_ENTRY_GET, (int) &pData);
    
       if (ret < 0)
       {
          DSL_CPE_FPrintf (out, sFailureReturn, DSL_CPE_RET_VAL(ret));
       }
       else
       {
          DSL_CPE_FPrintf (out,
             DSL_CPE_RET"flags=0x%x "
             "intervalLOF=%d intervalLOS=%d intervalLPR=%d "
             "intervalES=%d intervalValidData=%d"DSL_CPE_CRLF,
             DSL_CPE_RET_VAL(ret),
             pData.flags,
             pData.intervalLOF,
             pData.intervalLOS,
             pData.intervalLPR,
             pData.intervalES,
             pData.intervalValidData);
    
          DSL_CPE_FPrintf(out, DSL_CPE_CRLF);
       }
       return 0;
    }
    #endif /* INCLUDE_DSL_CPE_PM_HISTORY*/
    #endif /* INCLUDE_DSL_CPE_PM_LINE_COUNTERS*/
    
    #ifdef INCLUDE_DSL_CPE_PM_CHANNEL_COUNTERS
    static const DSL_char_t g_sMibAtuccpdeg[] =
    #ifndef DSL_CPE_DEBUG_DISABLE
       "Long Form: %s" DSL_CPE_CRLF
       "Short Form: %s" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Input Parameter" DSL_CPE_CRLF
       "%s"
       "- DSL_uint32_t flags (hex)" DSL_CPE_CRLF
       "   recv_blk               = 0x1" DSL_CPE_CRLF
       "   tx_blk                 = 0x2" DSL_CPE_CRLF
       "   corr_blk               = 0x4" DSL_CPE_CRLF
       "   uncorr_blk             = 0x8" DSL_CPE_CRLF
       "   valid intervals        = 0x10" DSL_CPE_CRLF
       "   invalid intervals      = 0x20" DSL_CPE_CRLF
       "   15min time elapsed     = 0x40" DSL_CPE_CRLF
       "   15min recv_blk         = 0x80" DSL_CPE_CRLF
       "   15min tx_blk           = 0x100" DSL_CPE_CRLF
       "   15min corr_blk         = 0x200" DSL_CPE_CRLF
       "   15min uncorr_blk       = 0x400" DSL_CPE_CRLF
       "   1day time elapsed      = 0x800" DSL_CPE_CRLF
       "   1day recv_blk          = 0x1000" DSL_CPE_CRLF
       "   1day tx_blk            = 0x2000" DSL_CPE_CRLF
       "   1day corr_blk          = 0x4000" DSL_CPE_CRLF
       "   1day uncorr_blk        = 0x8000" DSL_CPE_CRLF
       "   prev 1day time elapsed = 0x10000" DSL_CPE_CRLF
       "   prev 1day recv_blk     = 0x20000" DSL_CPE_CRLF
       "   prev 1day tx_blk       = 0x40000" DSL_CPE_CRLF
       "   prev 1day corr_blk     = 0x80000" DSL_CPE_CRLF
       "   prev 1day uncorr_blk   = 0x100000" DSL_CPE_CRLF
       DSL_CPE_CRLF
       "Output Parameter" DSL_CPE_CRLF
       "- DSL_Error_t nReturn" DSL_CPE_CRLF
       "%s"
       "- DSL_uint32_t flags (hex)" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanReceivedBlks" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanTransmittedBlks" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanCorrectedBlks" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanUncorrectBlks" DSL_CPE_CRLF
       "- DSL_int_t adslAtucChanPerfValidIntervals" DSL_CPE_CRLF
       "- DSL_int_t adslAtucChanPerfInvalidIntervals" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanPerfCurr15MinTimeElapsed" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanPerfCurr15MinReceivedBlks" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanPerfCurr15MinTransmittedBlks" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanPerfCurr15MinCorrectedBlks" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanPerfCurr15MinUncorrectBlks" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanPerfCurr1DayTimeElapsed" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanPerfCurr1DayReceivedBlks" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanPerfCurr1DayTransmittedBlks" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanPerfCurr1DayCorrectedBlks" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanPerfCurr1DayUncorrectBlks" DSL_CPE_CRLF
       "- DSL_int_t adslAtucChanPerfPrev1DayMoniSecs" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanPerfPrev1DayReceivedBlks" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanPerfPrev1DayTransmittedBlks" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanPerfPrev1DayCorrectedBlks" DSL_CPE_CRLF
       "- DSL_uint32_t adslAtucChanPerfPrev1DayUncorrectBlks" DSL_CPE_CRLF
       DSL_CPE_CRLF "";
    #else
       "";
    #endif
    DSL_CLI_LOCAL DSL_int_t DSL_CPE_CLI_MIB_ATUC_ChanPerfDataEntryGet(
       DSL_int_t fd,
       DSL_char_t *pCommands,
       DSL_CPE_File_t *out)
    {
       DSL_int_t ret = 0;
       atucChannelPerfDataEntry_t pData;
    
       if (DSL_CPE_CLI_CheckParamNumber(pCommands, 1, DSL_CLI_EQUALS) == DSL_FALSE)
       {
          return -1;
       }
    
       memset(&pData, 0x0, sizeof(atucChannelPerfDataEntry_t));
    
       sscanf (pCommands, "%x", &pData.flags);
    
       ret = DSL_CPE_Ioctl (fd, DSL_FIO_MIB_ADSL_ATUC_CHAN_PERF_DATA_ENTRY_GET, (int) &pData);
    
       if (ret < 0)
       {
          DSL_CPE_FPrintf (out, sFailureReturn, DSL_CPE_RET_VAL(ret));
       }
       else
       {
          DSL_CPE_FPrintf (out,
             DSL_CPE_RET"flags=0x%x "
             "adslAtucChanReceivedBlks=%d adslAtucChanTransmittedBlks=%d "
             "adslAtucChanCorrectedBlks=%d adslAtucChanUncorrectBlks=%d "
             "adslAtucChanPerfValidIntervals=%d adslAtucChanPerfInvalidIntervals=%d "
             "adslAtucChanPerfCurr15MinTimeElapsed=%d adslAtucChanPerfCurr15MinReceivedBlks=%d "
             "adslAtucChanPerfCurr15MinTransmittedBlks=%d adslAtucChanPerfCurr15MinCorrectedBlks=%d "
             "adslAtucChanPerfCurr15MinUncorrectBlks=%d adslAtucChanPerfCurr1DayTimeElapsed=%d "
             "adslAtucChanPerfCurr1DayReceivedBlks=%d adslAtucChanPerfCurr1DayTransmittedBlks=%d "
             "adslAtucChanPerfCurr1DayCorrectedBlks=%d adslAtucChanPerfCurr1DayUncorrectBlks=%d "
             "adslAtucChanPerfPrev1DayMoniSecs=%d adslAtucChanPerfPrev1DayReceivedBlks=%d "