ExtremeSwitching (EXOS)

 View Only
  • 1.  RAM and in-built storage (Internal HDD, CF etc) and external CF?

    Posted 07-19-2016 02:38
    Hi, The title is self explanatory. I need commands to check the internal storage (hard disk, internal compact flash etc) and external compact flash for all platform running EXOS in order to find out the total size, in-use and available etc.

    Thanks

    Harkanwal



  • 2.  RE: RAM and in-built storage (Internal HDD, CF etc) and external CF?

    Posted 07-19-2016 04:31
    Please issue "fdisk -l" command after entering debug-mode. To enter debug-mode, you need a debug mode password which you can get it from GTAC. Below is a sample output of it.

    * SW1.1 # enable debug-mode

    EXOS version: 15.3.1.4
    System MAC : 00:04:96:37:3B:9F
    Challenge : kL3yMw7pIK*SFdFSntN%QjX6pIuw+J0HU6EQ8VIF/jmh8cTLEMvrsDtjRfPL3VCLg
    TVPpj3JfpkECq91Gep8VVpcWdqySeg9C0qnGYmUGRtz/8PiiiauSJLZEE4PNiiFn0
    DeueN6Xr3I%iC5Dbs/deMJh51EypML4vyKLUMgjV535tHAcZx/Qhyyg*E9dQufzqV
    E1CEVEDT%A*E8YPL/pve%x1NPt%%88kz%2cc4i/zL3DvoonUIpd4TiQDqeyTiQi*5
    3az5aLJHZGzSF+7Uj87fBIBkrYHeEiMJH7oR4/t*dr2oo4SJWgJ08/vIYS7EN5CRa
    *6IHvzB%B7CcjQeXQ==

    NOTE: The password you received will only be valid for another 59 minutes.

    Enter debug mode password:
    * (debug) SW1.2 #

    2. Enter a command "!fdisk -l"

    * (debug) SW1.3 # fdisk -l

    Disk /dev/hda: 262 MB, 262930432 bytes
    16 heads, 32 sectors/track, 1003 cylinders
    Units = cylinders of 512 * 512 = 262144 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 81 20480+ 6 FAT16
    Partition 1 does not end on cylinder boundary
    /dev/hda2 81 161 20480+ 6 FAT16
    Partition 2 does not end on cylinder boundary
    /dev/hda3 161 977 208962 5 Extended
    Partition 3 does not end on cylinder boundary
    /dev/hda5 161 441 71680+ 13 Unknown
    /dev/hda6 441 721 71680+ 13 Unknown
    /dev/hda7 721 785 16384+ 13 Unknown
    /dev/hda8 785 977 49152+ 6 FAT16
    * (debug) SW1.4 #

    If you insert additional CF memory into this MSM, then you will see another “Disk /dev/had” in the output (In above example, there is no additional CF memory inserted)


  • 3.  RE: RAM and in-built storage (Internal HDD, CF etc) and external CF?

    Posted 07-19-2016 07:42
    Isn't a "ls" not enough? and a "sh mem" for RAM.

    * Leaf1.1 # ls
    drw-r--r-- 2 root root 1024 Oct 12 2015 dhcp
    -rw-r--r-- 1 admin admin 2877 Apr 19 2015 eventd.pol
    -rw-r--r-- 1 admin admin 10083 Mar 15 2015 eventd.py
    -rw-r--r-- 1 root root 9078 Mar 15 2015 eventd.pyc
    -rw-r--r-- 1 admin admin 927 Jan 18 2016 l2pbr-from-net.pol
    -rw-r--r-- 1 admin admin 888 Jan 18 2016 l2pbr-to-net.pol
    drw-r--r-- 2 root root 1024 Oct 12 2015 lost+found
    -rw-r--r-- 1 admin admin 21298 Jun 30 18:45 nms.xsf
    -rw-r--r-- 1 root root 292671 Aug 3 2015 old_non_stack.cfg
    -rw-r--r-- 1 root root 1226049 Jul 13 22:26 primary.cfg
    -rw-r--r-- 1 admin admin 33 Mar 20 2015 pyshell.py
    -rw-r--r-- 1 root root 443717 Feb 17 10:34 secondary.cfg
    -rw-r--r-- 1 admin admin 344 Mar 15 2015 setup.xsf
    -rw-r--r-- 1 admin admin 3454 Mar 15 2015 shell.py
    drwxr-xr-x 2 root root 1024 Jul 14 08:10 vmt

    1K-blocks Used Available Use%
    181576 7648 173928 4%
    * Leaf1.2 #
    * Leaf1.2 #
    * Leaf1.2 # sh memory

    System Memory Information
    -------------------------
    Total DRAM (KB): 2097152
    System (KB): 76264
    User (KB): 364700
    Free (KB): 1656188



  • 4.  RE: RAM and in-built storage (Internal HDD, CF etc) and external CF?

    Posted 07-19-2016 08:09
    Hi David,
    Thanks for the update. But surprisingly, I did not find it any impressive to keep dependency on TAC for these simple things.

    I have few commands as below:

    1) "show memory", "top" etc commands are there for memory.

    2) "show memorycard", i believe, is for the external compact flash. If yes what is the internal-memory storage capacity then (e.g. for BD8806 with MSM48c)

    "ls" is showing in 1K-blocks and I am not sure if it is 512-bytes or what?

    From the below output of "ls" ; shall I consider that the internal-memory is 8 MB.

    1K-blocks Used Available Use%
    16384 636 15748 4%

    Regards,

    Harkanwaljeet Singh



  • 5.  RE: RAM and in-built storage (Internal HDD, CF etc) and external CF?

    Posted 08-06-2016 04:57
    Hi Harkanwaljeet,
    1) "show memory" shows system memory information in other word, system DRAM. You can see total DRAM and free from the output. In case of MSM128, it has 1G DRAM so:

    (debug) BD6.4 # sh memory

    System Memory Information
    -------------------------
    MSM-A Total DRAM (KB): 1048576
    MSM-A System (KB): 40152
    MSM-A User (KB): 304000
    MSM-A Free (KB): 704424
    MSM-B Total DRAM (KB): 1048576
    MSM-B System (KB): 40152
    MSM-B User (KB): 316716
    MSM-B Free (KB): 691708

    You can see total DRAM as 1GB and Free memory is 704MB.

    2) "show memorycard" shows external USB memory (maybe CF card if it was old model). But it seems the output of this command doesn't show the size of external memory.

    BD-X8.1 # show memorycard
    Memorycard is present in USB-1.

    So to see the size, you need to execute "fdisk -l" command in debug-mode as I mentioned.

    3) "ls" just shows a portion of "/usr/local/cfg" directory and "ls internal-memory" also shows a portion of "/usr/local/tmp" directory.

    1K-blocks Used Available Use%
    16384 6268 10116 38%

    1K-blocks Used Available Use%
    49038 580 48458 1%

    I believe 1K-blocks means 1024. Therefore, I think the size of "ls" is about 16M and "ls internal-memory" is about 50M.


  • 6.  RE: RAM and in-built storage (Internal HDD, CF etc) and external CF?

    Posted 09-02-2016 11:28
    An article was written that helps to explain this topic:
    How to check free memory and disk space in EXOS