Jump to content
XPEnology Community

FOXBI

Developer
  • Posts

    159
  • Joined

  • Last visited

  • Days Won

    14

Posts posted by FOXBI

  1. On 4/19/2020 at 5:43 PM, nemesis122 said:

    CPU Info  is not working anymore since DSM 

    Version: 6.2.3-25423

    https://www.synology.com/de-de/releaseNote/DS3615xs#ver_25423

     

    Could you help me in this case?

    thanks

     

     

    On 4/19/2020 at 8:30 PM, ramzes508 said:

    Hello! I also have problems with version DSM 6.2.3-25423.

     

    On 4/20/2020 at 1:57 PM, yuyuko said:

    hello ,I have problem with DSM 6.2.3-25423.
    It can't work with DSM 6.2.3,i checked fiels and found DSM6.2.3 changed  format from h.cpu to g.cpu in web style.
    hope dev can slove this QAQ.

     

    17 hours ago, Flint said:

    For 6.2.3 in ch_cpuinfo.sh replace:

    string 178:

    form

    sed -i "s/${dt}.model]);/${dt}.model]);${cpu_info}/g" $BKUP_DIR/admin_center.js

    to

    sed -i "s/${dt}.model])\}/${dt}.model])\}${cpu_info}/g" $BKUP_DIR/admin_center.js

    string 659:

    from

    dt=h

    to

    dt=g

    This workaroung will fix web view but break backward compatibility of script. Use it only with 6.2.3.

     

    How to fix mobile view idk yet...

     

    16 hours ago, yuyuko said:

    thx,that works OWO
    hope ppl there can fix mobile view ~

     

     

     

    Today update ^^

     

     

    You can download the new ch cpuinfo with new DSM support.

     

     

    On 8/17/2018 at 11:41 PM, FOXBI said:

    Change Log

     

    1. Support DSM 6.2.3-25423 

    2. Change of CPU information collection method, Collect using only /proc/cpuinfo.

        Do not use dmidecode(for systems without dmidecode commands ...)

    3. Support MultiLanguage(User can modify LANG.txt and apply it)

        Maintaining Korean / English support by default

     

    Sample image(by Google trans)

    ch_cpuinfo_pol.png.0ebc2dae3332f22c1912c0801ac93b29.png

     

    ch_cpuinfo_rus.png.c8c1e8e0af914914d8f2ea23ff2bfc88.png

     

    =============================================

     

    Download links:

     

    ch_cpuinfo ver 2.1.1-r01 - new version update

    ->  ch_cpuinfo.tar 50 kB · 0 downloads

     

    • Like 2
    • Thanks 2
  2. On 11/1/2019 at 8:19 AM, viktortrass said:

    sorry but I don't understand what I have to do exactly, I have the original DSM pat of my actual installed version but I don't find anything about this two files

     

    do use 7zip

     

    1. extract DSMxxx.pat check of hda1.tgz file

     

    2. extract hda1.tgz check of hda1 follder 

     

    3. extract hda1 check  of hda1~ folder

     

    eg.) c:\DSM_DS3615xs_24922\hda1\hda1~\usr\syno\synoman\webman\modules\AdminCenter

     

    4. you can find original admin_center.js & admin_center.hs.gz

     

    5 do use sftp, upload and overwite two files.

     

    After checking back your DSM information

     

    and then you do run again.

  3. 8 hours ago, viktortrass said:

    hello, first of all thanks for the great effort.

    I have a problem, I executed the script on my previous cpu and worked well but now I have changed it to Intel Xeon E3-1265LV2, I choose the redo option but nothing happens, tried to delete \root\xpenology and do first run but still nothing, it shows the same as before. what can I do friend?

     

    when i made ch_cpuinfo, i think ed about only DSM version upgrade. but, may be don't thinked about hardware change.

     

    if you can find path file location "/usr/syno/synoman/webman/modules/AdminCenter/admin_center.js" ""/usr/syno/synoman/webman/modules/AdminCenter/admin_center.js.gz"

     

    after extract original file in DSMxxx.pat, copy to overwrite location.

    or

    edit by vi tool source.

     

    and then you do run again.

  4. - Outcome of the update: SUCCESSFUL
    - DSM version prior update: DSM 6.2.2-24922 Update 2
    - Loader version and model: JUN'S LOADER v1.03b - DS3615xs
    - Using custom extra.lzma: NO
    - Installation type: VM - HP ML310 v2 (1220v3/32GB) VMWare ESXi 6.0 Update3 + RDM/USB Disable/NIC E1000e)
    - Additional comments: REBOOT REQUIRED

     

    - Outcome of the update: SUCCESSFUL
    - DSM version prior update: DSM 6.2.2-24922 Update 2
    - Loader version and model: JUN'S LOADER v1.04b - DS918+
    - Using custom extra.lzma: NO
    - Installation type: VM - HP ML310 v2 (1220v3/32GB) VMWare ESXi 6.0 Update3 /USB Enable/NIC vmxnet3)
    - Additional comments: REBOOT REQUIRED

  5. On ‎8‎/‎1‎/‎2019 at 11:00 AM, FOXBI said:
    On ‎7‎/‎13‎/‎2019 at 6:13 AM, ed_co said:

    +1 Number of threads of the i7 8700 is incorrect!! I guess the calculation is wrong...

    If the owner of the script is about to support the 6.2.2-24922 version, could as well fix the bug...

    Even though it is really good to see your processor and not the crappy celeron one...

    Edited July 13 by ed_co

     

    On ‎1‎/‎24‎/‎2019 at 10:52 PM, raeesumer said:

    Thanks for the script. CPU information updated successfully.

     

    But the number of threads shows wrong.

     

    For Intel core i7 8700 processor, It is 6 core and 12 threads. But system shows 8 threads only.

     

    My guess is that the maximum thread represented in DSM is 8.

    I have not had a system with more than 8 threads, so I have not checked,

    can you show me the full results of your system cat /proc/cpuinfo  ?

     

     

     

    I have prepared 8 core and above environment and tested it and it seems to be well expressed.

     

    ch_cpuinfo_004.png.83472d1d18131b54c3ded84011078a42.png

     

    If the "/proc/cpuinfo" value is not displayed incorrectly, the assigned value appears normally.

     

    If you above 8 cores and check that the result of ch_cpuinfo matches the value of "/proc/cpuinfo" with the actual CPU or the assigned CPU.

     

  6. On 12/24/2018 at 6:37 AM, gericb said:

    OK.  Seems logical to me, if you could include the functionality to simple restore the "original" DSM code/information in those cases where things might have become corrupted or the backup was no longer the "original" DSM code/information.  Something quite and simple.  What do you think?      Thank You for all of your hard work and magical code work!  MUCH APPRECIATED!

     

    3) Restore the function to backup and restore files easily.

     

    But, In the case of 2) Redo, if it is difficult to restore original by updating in lower version (eg. F.cpu .... -> h.cpu ....),

     

    It seems to have made.

     

    I do not know if it was the right answer to your question. :)

    • Thanks 1
  7. On 7/13/2019 at 6:13 AM, ed_co said:

    +1 Number of threads of the i7 8700 is incorrect!! I guess the calculation is wrong...

    If the owner of the script is about to support the 6.2.2-24922 version, could as well fix the bug...

    Even though it is really good to see your processor and not the crappy celeron one...

    Edited July 13 by ed_co

     

    On 1/24/2019 at 10:52 PM, raeesumer said:

    Thanks for the script. CPU information updated successfully.

     

    But the number of threads shows wrong.

     

    For Intel core i7 8700 processor, It is 6 core and 12 threads. But system shows 8 threads only.

     

    My guess is that the maximum thread represented in DSM is 8.

    I have not had a system with more than 8 threads, so I have not checked,

    can you show me the full results of your system cat /proc/cpuinfo  ?

    • Thanks 1
  8. 이미 오래전에 하신질문이라 이미 해결 하셨을 수도있지만.

     

    결론부터 말씀드리면 v2인 ivybridge는 안됩니다.

     

    저도 E3-1230 v2 환경에서 갖은 방법을 다 동원해봐도 안되었는데

     

    E3-1220 v3으로 바꾸고 그냥 바로 되더라고요.. haswell 이상이어야 된다고 합니다.

  9. Dear Xpenology forum members,

     

    I'm come back!!!!

     

     

    I have been very busy at work. So I could not cope with the changed code because I could not upgrade DSM.

     

    But!

     

    I have recently successfully migrationed the "ivybridge" of existing my systems to "haswell". I also added an additional LAN card.

     

    The latest version of "DSM 6.2.2-24922 Update 2" is now available for the DS3615xs, 918+ and other versions.

     

    I'll be updating and distributing the "ch_cpuinfo" tool soon so that it will work with the latest version.

     

    I'm sorry to have kept you waiting so long, and thank you for waiting. See you soon.

     

     

    Dear @Polanskiman , Thank you for your patience and care for the topic I could not manage. I'll update soon.

     

     

    Dear @gericb , Thank you for your concern and supportive mentality :)

    • Like 4
    • Thanks 1
  10. 10 hours ago, sd2d said:

    Here is it:

      spoiler (Reveal hidden contents)

    root@HOME-NAS-BACKUP:/volume1/PUBLIC# sh -x ch_cpuinfo.sh
    + ver=5.2
    + clear
    + WORK_DIR=/usr/syno/synoman/webman/modules/AdminCenter
    + MWORK_DIR=/usr/syno/synoman/mobile/ui
    + BKUP_DIR=/root/Xpenology_backup
    + VER_DIR=/etc.default
    + cecho c 'DSM CPU Information Change Tool ver. \033[0;31m5.2\033[00m - made by                                                                                                                                                              FOXBI\n'
    + '[' -n '' ']'
    + bgcolor=0
    + code='\033['
    + case "$1" in
    + color='\033[0;36m'
    + text='\033[0;36mDSM CPU Information Change Tool ver. \033[0;31m5.2\033[00m - m                                                                                                                                                             ade by FOXBI\n\033[0m'
    + echo -e '\033[0;36mDSM CPU Information Change Tool ver. \033[0;31m5.2\033[00m                                                                                                                                                              - made by FOXBI\n\033[0m'
    DSM CPU Information Change Tool ver. 5.2 - made by FOXBI

    + '[' -d /etc.default ']'
    + VER_FIL=/etc/VERSION
    + '[' -f /etc/VERSION ']'
    ++ cat /etc/VERSION
    ++ grep majorversion
    ++ awk -F = '{print $2}'
    ++ sed 's/\"//g'
    + MA_VER=6
    ++ cat /etc/VERSION
    ++ grep minorversion
    ++ awk -F = '{print $2}'
    ++ sed 's/\"//g'
    + MI_VER=2
    ++ cat /etc/VERSION
    ++ grep buildnumber
    ++ awk -F = '{print $2}'
    ++ sed 's/\"//g'
    + BL_NUM=23739
    ++ cat /etc/VERSION
    ++ grep smallfixnumber
    ++ sed 's/\"//g'
    ++ awk -F = '{print $2}'
    + BL_FIX=0
    + BL_CHK=237390
    ++ date +%Y%m%d%H%M%S
    + TIME=20181219181319_237390
    + STIME=20181219181319_237390
    + '[' 6 -gt 4 ']'
    + '[' 6 -eq 5 ']'
    + cecho g 'Your version of DSM is \033[0;36mDSM \033[0;31m6.2\033[0;32m continue                                                                                                                                                             ...\033[00m\n'
    + '[' -n '' ']'
    + bgcolor=0
    + code='\033['
    + case "$1" in
    + color='\033[0;32m'
    + text='\033[0;32mYour version of DSM is \033[0;36mDSM \033[0;31m6.2\033[0;32m c                                                                                                                                                             ontinue...\033[00m\n\033[0m'
    + echo -e '\033[0;32mYour version of DSM is \033[0;36mDSM \033[0;31m6.2\033[0;32                                                                                                                                                             m continue...\033[00m\n\033[0m'
    Your version of DSM is DSM 6.2 continue...

    + read -n1 -p '1) First run  2) Redo  3) Restore - Select Number : ' run_select
    1) First run  2) Redo  3) Restore - Select Number : 2+ case "$run_select" in
    + run_check=redo
    + echo -e '\n '


    + '[' redo == redo ']'
    + READ_YN 'Do you want to proceed again? Restore to original file backup and proceed.(Cancel : q) [y/n] : '
    + read -n1 -p 'Do you want to proceed again? Restore to original file backup and proceed.(Cancel : q) [y/n] : ' Y_N
    Do you want to proceed again? Restore to original file backup and proceed.(Cancel : q) [y/n] : y+ case "$Y_N" in
    + Y_N=y
    + echo -e '\n'


    + '[' y == y ']'
    + re_check=y
    + BLCHECK_FN redo
    + bl_check=n
    + '[' -d /root/Xpenology_backup ']'
    ++ ls -l /root/Xpenology_backup/
    ++ grep '^d'
    ++ wc -l
    + BK_CNT=1
    + '[' 1 -gt 0 ']'
    ++ ls -l /root/Xpenology_backup/
    ++ grep '^d'
    ++ grep 237390
    ++ wc -l
    + BK_CNT=1
    + '[' 1 -gt 0 ']'
    ++ ls -l /root/Xpenology_backup/
    ++ grep '^d'
    ++ grep 237390
    ++ awk '{print $9}'
    ++ head -1
    + TIME=20181124155631_237390
    ++ ls -l /root/Xpenology_backup/
    ++ grep '^d'
    ++ wc -l
    ++ grep -v 237390
    + BK_CNT=0
    + '[' 0 -gt 0 ']'
    + '[' y == n ']'
    ++ grep '^d'
    ++ ls -l /root/Xpenology_backup/
    ++ awk '{print $9}'
    ++ head -1
    + STIME=20181124155631_237390
    + BLSUB_FN redo
    ++ echo 20181124155631_237390
    + TIME=20181124155631_237390
    + '[' redo == run ']'
    + RERUN_FN redo
    + '[' redo == redo ']'
    + ls -l /root/Xpenology_backup/
    + grep '^d'
    + grep -v 237390
    + sh
    + awk '{print "rm -rf /root/Xpenology_backup/"$9}'
    + GATHER_FN
    + '[' -f /sbin/dmidecode ']'
    ++ dmidecode
    ++ grep SMBIOS
    ++ egrep 'NO|sorry'
    ++ wc -l
    + DMI_CHK=0
    + '[' 0 -gt 0 ']'
    ++ dmidecode -t processor
    ++ grep Version
    ++ grep -v Unknown
    ++ sed s/CPU//g
    ++ awk '{print $2}'
    ++ sort -u
    ++ sed 's/(.)//g'
    ++ sed 's/(..)//g'
    ++ grep -v Not
    + cpu_vendor='
    Intel'
    + '[' '
    Intel' == AMD ']'
    ++ dmidecode -t processor
    ++ grep Version
    ++ grep -v Unknown
    ++ grep -v Not
    ++ awk '{print $3}'
    ++ sed 's/(.)//g'
    ++ sed 's/(..)//g'
    ++ sed s/CPU//g
    ++ sort -u
    + cpu_family='
    Xeon'
    ++ dmidecode -t processor
    ++ grep Version
    ++ grep -v Unknown
    ++ sed s/CPU//g
    ++ awk '{ if (index($5,"@")!=0) { print $4 } else { print $4" "$5 } }'
    ++ sed 's/(.)//g'
    ++ sed 's/(..)//g'
    ++ grep -v Not
    ++ sort -u
    + cpu_series='
    E5504'
    ++ cat /proc/cpuinfo
    ++ grep '^physical id'
    ++ sort -u
    ++ wc -l
    + PICNT=1
    ++ cat /proc/cpuinfo
    ++ grep '^core id'
    ++ sort -u
    ++ wc -l
    + CICNT=4
    ++ cat /proc/cpuinfo
    ++ grep '^cpu cores'
    ++ sort -u
    ++ awk '{print $NF}'
    + CCCNT=4
    ++ cat /proc/cpuinfo
    ++ grep '^siblings'
    ++ sort -u
    ++ awk '{print $NF}'
    + CSCNT=4
    ++ cat /proc/cpuinfo
    ++ grep '^processor'
    ++ wc -l
    + THCNT=4
    ++ cat /proc/cpuinfo
    ++ grep processor
    ++ wc -l
    + ODCNT=4
    + '[' 4 -gt 0 ']'
    + '[' 1 == 0 ']'
    + '[' 1 -gt 1 ']'
    + TPCNT='1 CPU'
    + TCCNT=4
    + '[' 4 -gt 1 ']'
    + TCCNT='4 Cores '
    + '[' 4 -gt 1 ']'
    + PCCNT='\/4 Cores '
    + '[' 4 -gt 1 ']'
    + TTCNT='4 Threads'
    + cpu_cores='4 Cores (1 CPU\/4 Cores | 4 Threads)'
    + '[' -f /usr/syno/synoman/webman/modules/AdminCenter/admin_center.js ']'
    + '[' -f /usr/syno/synoman/mobile/ui/mobile.js ']'
    ++ cat /usr/syno/synoman/webman/modules/AdminCenter/admin_center.js
    ++ grep '.model]);if(Ext.isDefined'
    ++ wc -l
    + info_cnt=1
    ++ cat /usr/syno/synoman/mobile/ui/mobile.js
    ++ wc -l
    ++ grep 'ds_model")},{name:"ram_size'
    + info_cnt_m=1
    + '[' 1 -eq 0 ']'
    + COMMENT05_FN
    + echo -e 'You have verified and installed the previous version. Contiue...\n'
    You have verified and installed the previous version. Contiue...

    + run_check=run
    + EXEC_FN
    + '[' -d /usr/syno/synoman/webman/modules/AdminCenter ']'
    + READ_YN 'Auto Excute, If you select n, proceed interactively  (Cancel : q) [y/n] : '
    + read -n1 -p 'Auto Excute, If you select n, proceed interactively  (Cancel : q) [y/n] : ' Y_N
    Auto Excute, If you select n, proceed interactively  (Cancel : q) [y/n] : y+ case "$Y_N" in
    + Y_N=y
    + echo -e '\n'


    + '[' y == y ']'
    + mkdir -p /root/Xpenology_backup/20181124155631_237390
    + '[' y == y ']'
    + '[' n == y ']'
    + RECOVER_FN
    + '[' -d /root/Xpenology_backup/20181124155631_237390 ']'
    + cd /usr/syno/synoman/webman/modules/AdminCenter
    + tar -xf /root/Xpenology_backup/20181124155631_237390/admin_center.tar
    + '[' -f /root/Xpenology_backup/20181124155631_237390/mobile.tar ']'
    + cd /usr/syno/synoman/mobile/ui
    + tar -xf /root/Xpenology_backup/20181124155631_237390/mobile.tar
    + '[' y == y ']'
    + echo -e 'Restore to source and continue.\n'
    Restore to source and continue.

    + PREPARE_FN
    + '[' -f /usr/syno/synoman/webman/modules/AdminCenter/admin_center.js ']'
    + '[' -f /usr/syno/synoman/mobile/ui/mobile.js ']'
    + '[' '' == y ']'
    + cd /usr/syno/synoman/webman/modules/AdminCenter
    + tar -cf /root/Xpenology_backup/20181124155631_237390/admin_center.tar admin_center.js admin_center.js.gz
    + cd /usr/syno/synoman/mobile/ui
    + tar -cf /root/Xpenology_backup/20181124155631_237390/mobile.tar mobile.js mobile.js.gz
    + '[' 6 -eq 6 ']'
    + '[' 2 -ge 2 ']'
    + mv /usr/syno/synoman/webman/modules/AdminCenter/admin_center.js.gz /root/Xpenology_backup/
    + mv /usr/syno/synoman/mobile/ui/mobile.js.gz /root/Xpenology_backup/
    + cd /root/Xpenology_backup/
    + gzip -df /root/Xpenology_backup/admin_center.js.gz
    + gzip -df /root/Xpenology_backup/mobile.js.gz
    + GATHER_FN
    + '[' -f /sbin/dmidecode ']'
    ++ dmidecode
    ++ grep SMBIOS
    ++ wc -l
    ++ egrep 'NO|sorry'
    + DMI_CHK=0
    + '[' 0 -gt 0 ']'
    ++ dmidecode -t processor
    ++ grep Version
    ++ grep -v Unknown
    ++ sed s/CPU//g
    ++ awk '{print $2}'
    ++ sed 's/(.)//g'
    ++ sed 's/(..)//g'
    ++ grep -v Not
    ++ sort -u
    + cpu_vendor='
    Intel'
    + '[' '
    Intel' == AMD ']'
    ++ dmidecode -t processor
    ++ grep Version
    ++ grep -v Unknown
    ++ sed s/CPU//g
    ++ sed 's/(..)//g'
    ++ grep -v Not
    ++ awk '{print $3}'
    ++ sed 's/(.)//g'
    ++ sort -u
    + cpu_family='
    Xeon'
    ++ dmidecode -t processor
    ++ grep Version
    ++ grep -v Unknown
    ++ sed s/CPU//g
    ++ sed 's/(..)//g'
    ++ awk '{ if (index($5,"@")!=0) { print $4 } else { print $4" "$5 } }'
    ++ sed 's/(.)//g'
    ++ grep -v Not
    ++ sort -u
    + cpu_series='
    E5504'
    ++ cat /proc/cpuinfo
    ++ grep '^physical id'
    ++ wc -l
    ++ sort -u
    + PICNT=1
    ++ cat /proc/cpuinfo
    ++ grep '^core id'
    ++ sort -u
    ++ wc -l
    + CICNT=4
    ++ cat /proc/cpuinfo
    ++ grep '^cpu cores'
    ++ sort -u
    ++ awk '{print $NF}'
    + CCCNT=4
    ++ cat /proc/cpuinfo
    ++ grep '^siblings'
    ++ sort -u
    ++ awk '{print $NF}'
    + CSCNT=4
    ++ cat /proc/cpuinfo
    ++ grep '^processor'
    ++ wc -l
    + THCNT=4
    ++ cat /proc/cpuinfo
    ++ grep processor
    ++ wc -l
    + ODCNT=4
    + '[' 4 -gt 0 ']'
    + '[' 1 == 0 ']'
    + '[' 1 -gt 1 ']'
    + TPCNT='1 CPU'
    + TCCNT=4
    + '[' 4 -gt 1 ']'
    + TCCNT='4 Cores '
    + '[' 4 -gt 1 ']'
    + PCCNT='\/4 Cores '
    + '[' 4 -gt 1 ']'
    + TTCNT='4 Threads'
    + cpu_cores='4 Cores (1 CPU\/4 Cores | 4 Threads)'
    + PERFORM_FN
    + '[' -f /root/Xpenology_backup/admin_center.js ']'
    + '[' -f /root/Xpenology_backup/mobile.js ']'
    + '[' 6 -ge 6 ']'
    ++ echo 'f.cpu_vendor="
    Intel";f.cpu_family="
    Xeon";f.cpu_series="
    E5504";f.cpu_cores="4 Cores (1 CPU\/4 Cores | 4 Threads)";'
    + cpu_info='f.cpu_vendor="
    Intel";f.cpu_family="
    Xeon";f.cpu_series="
    E5504";f.cpu_cores="4 Cores (1 CPU\/4 Cores | 4 Threads)";'
    + sed -i 's/f.model]);/f.model]);f.cpu_vendor="
    Intel";f.cpu_family="
    Xeon";f.cpu_series="
    E5504";f.cpu_cores="4 Cores (1 CPU\/4 Cores | 4 Threads)";/g' /root/Xpenology_backup/admin_center.js
    sed: -e expression #1, char 37: unterminated `s' command
    ++ echo '{name: "cpu_series",renderer: function(value){var cpu_vendor="
    Intel";var cpu_family="
    Xeon";var cpu_series="
    E5504";var cpu_cores="4 Cores (1 CPU\/4 Cores | 4 Threads)";return Ext.String.format('\''{0} {1} {2} [ {3} ]'\'', cpu_vendor, cpu_family, cpu_series, cpu_cores);},label: _T("status", "cpu_model_name")},'
    + cpu_info_m='{name: "cpu_series",renderer: function(value){var cpu_vendor="
    Intel";var cpu_family="
    Xeon";var cpu_series="
    E5504";var cpu_cores="4 Cores (1 CPU\/4 Cores | 4 Threads)";return Ext.String.format('\''{0} {1} {2} [ {3} ]'\'', cpu_vendor, cpu_family, cpu_series, cpu_cores);},label: _T("status", "cpu_model_name")},'
    + sed -i 's/"ds_model")},/"ds_model")},{name: "cpu_series",renderer: function(value){var cpu_vendor="
    Intel";var cpu_family="
    Xeon";var cpu_series="
    E5504";var cpu_cores="4 Cores (1 CPU\/4 Cores | 4 Threads)";return Ext.String.format('\''{0} {1} {2} [ {3} ]'\'', cpu_vendor, cpu_family, cpu_series, cpu_cores);},label: _T("status", "cpu_model_name")},/g' /root/Xpenology_backup/mobile.js
    sed: -e expression #1, char 91: unterminated `s' command
    + APPLY_FN
    + '[' -f /root/Xpenology_backup/admin_center.js ']'
    + '[' -f /root/Xpenology_backup/mobile.js ']'
    + cp -Rf /root/Xpenology_backup/admin_center.js /usr/syno/synoman/webman/modules/AdminCenter/
    + cp -Rf /root/Xpenology_backup/mobile.js /usr/syno/synoman/mobile/ui/
    + '[' 6 -eq 6 ']'
    + '[' 2 -ge 2 ']'
    + gzip -f /root/Xpenology_backup/admin_center.js
    + gzip -f /root/Xpenology_backup/mobile.js
    + mv /root/Xpenology_backup/admin_center.js.gz /usr/syno/synoman/webman/modules/AdminCenter/
    + mv /root/Xpenology_backup/mobile.js.gz /usr/syno/synoman/mobile/ui/
    + COMMENT09_FN
    + echo -e 'The operation is complete!! It takes about 1-2 minutes to reflect, \n(Please refresh the DSM page with F5 or after logout/login and check the information.)'
    The operation is complete!! It takes about 1-2 minutes to reflect,
    (Please refresh the DSM page with F5 or after logout/login and check the information.)
    + exit 0
     

     

     

     

    It looks like the last time I contacted fhocorp

    + cpu_vendor='
    Intel'
    
    + cpu_family='
    Xeon'
    
    + cpu_series='
    E5504'

    The variable contains a blank line.
     

    Last time was Nehalem CPU ..

     

    Can you show the result of "dmidecode -t processor"?

     

     

    It seems that certain CPUs may be blank when collecting information.

  11. On 12/16/2018 at 2:04 AM, sd2d said:

    sed: -e expression #1, char 37: unterminated `s' command
    sed: -e expression #1, char 91: unterminated `s' command
    The operation is complete!! It takes about 1-2 minutes to reflect,
    (Please refresh the DSM page with F5 or after logout/login and check the information.)
    -ash: DSM: command not found

     

    Maybe you should comment on the result of `sh -x ch_cpuinfo.sh`

  12. On 12/14/2018 at 5:22 PM, fhocorp said:

    ok

    Please find my current admin_center.js file in the attachements.

     

    Thank you.

     

    Your "admin_center.js" file is not problem.

     

    I think that one thing that I mentioned before is the cause.

     

    It seems that line wrapping is still inserted in the process of collecting information and putting it into a variable.

     

    Your GATHER_FN function

    Spoiler

    + GATHER_FN
    + '[' -f /sbin/dmidecode ']'
    ++ dmidecode
    ++ grep SMBIOS
    ++ egrep 'NO|sorry'
    ++ wc -l
    + DMI_CHK=0
    + '[' 0 -gt 0 ']'
    ++ dmidecode -t processor
    ++ grep Version
    ++ grep -v Unknown
    ++ grep -v Not
    ++ sed s/CPU//g
    ++ awk '{print $2}'
    ++ sed 's/(.)//g'
    ++ sed 's/(..)//g'
    ++ sort -u
    + cpu_vendor='
    Intel'
    + '[' '
    Intel' == AMD ']'
    ++ dmidecode -t processor
    ++ grep Version
    ++ grep -v Unknown
    ++ sed 's/(..)//g'
    ++ grep -v Not
    ++ awk '{print $3}'
    ++ sed 's/(.)//g'
    ++ sed s/CPU//g
    ++ sort -u
    + cpu_family='
    Xeon'
    ++ dmidecode -t processor
    ++ grep Version
    ++ grep -v Unknown
    ++ sed 's/(..)//g'
    ++ sed s/CPU//g
    ++ sed 's/(.)//g'
    ++ awk '{ if (index($5,"@")!=0) { print $4 } else { print $4" "$5 } }'
    ++ grep -v Not
    ++ sort -u
    + cpu_series='
    E5440'
    ++ cat /proc/cpuinfo
    ++ grep '^physical id'
    ++ sort -u
    ++ wc -l
    + PICNT=1
    ++ cat /proc/cpuinfo
    ++ grep '^core id'
    ++ sort -u
    ++ wc -l
    + CICNT=4
    ++ cat /proc/cpuinfo
    ++ grep '^cpu cores'
    ++ sort -u
    ++ awk '{print $NF}'
    + CCCNT=4
    ++ cat /proc/cpuinfo
    ++ grep '^siblings'
    ++ sort -u
    ++ awk '{print $NF}'
    + CSCNT=4
    ++ cat /proc/cpuinfo
    ++ grep '^processor'
    ++ wc -l
    + THCNT=4
    ++ cat /proc/cpuinfo
    ++ grep processor
    ++ wc -l
    + ODCNT=4
    + '[' 4 -gt 0 ']'
    + '[' 1 == 0 ']'
    + '[' 1 -gt 1 ']'
    + TPCNT='1 CPU'
    + TCCNT=4
    + '[' 4 -gt 1 ']'
    + TCCNT='4 Cores '
    + '[' 4 -gt 1 ']'
    + PCCNT='\/4 Cores '
    + '[' 4 -gt 1 ']'
    + TTCNT='4 Threads'
    + cpu_cores='4 Cores (1 CPU\/4 Cores | 4 Threads)'

     

     

    My GATHER_FN function

    Spoiler

    + GATHER_FN
    + '[' -f /sbin/dmidecode ']'
    ++ dmidecode
    ++ grep SMBIOS
    ++ egrep 'NO|sorry'
    ++ wc -l
    + DMI_CHK=0
    + '[' 0 -gt 0 ']'
    ++ dmidecode -t processor
    ++ grep Version
    ++ grep -v Unknown
    ++ grep -v Not
    ++ sed 's/(.)//g'
    ++ awk '{print $2}'
    ++ sed s/CPU//g
    ++ sed 's/(..)//g'
    ++ sort -u
    + cpu_vendor=Intel
    + '[' Intel == AMD ']'
    ++ dmidecode -t processor
    ++ grep Version
    ++ grep -v Unknown
    ++ grep -v Not
    ++ sed 's/(..)//g'
    ++ awk '{print $3}'
    ++ sed s/CPU//g
    ++ sort -u
    ++ sed 's/(.)//g'
    + cpu_family=Xeon
    ++ dmidecode -t processor
    ++ grep Version
    ++ grep -v Unknown
    ++ grep -v Not
    ++ sort -u
    ++ sed 's/(..)//g'
    ++ awk '{ if (index($5,"@")!=0) { print $4 } else { print $4" "$5 } }'
    ++ sed s/CPU//g
    ++ sed 's/(.)//g'
    + cpu_series='E3-1230 V2'
    ++ cat /proc/cpuinfo
    ++ grep '^physical id'
    ++ sort -u
    ++ wc -l
    + PICNT=1
    ++ cat /proc/cpuinfo
    ++ grep '^core id'
    ++ sort -u
    ++ wc -l
    + CICNT=8
    ++ cat /proc/cpuinfo
    ++ grep '^cpu cores'
    ++ sort -u
    ++ awk '{print $NF}'
    + CCCNT=8
    ++ cat /proc/cpuinfo
    ++ grep '^siblings'
    ++ sort -u
    ++ awk '{print $NF}'
    + CSCNT=8
    ++ cat /proc/cpuinfo
    ++ grep '^processor'
    ++ wc -l
    + THCNT=8
    ++ cat /proc/cpuinfo
    ++ grep processor
    ++ wc -l
    + ODCNT=8
    + '[' 8 -gt 0 ']'
    + '[' 1 == 0 ']'
    + '[' 1 -gt 1 ']'
    + TPCNT='1 CPU'
    + TCCNT=8
    + '[' 8 -gt 1 ']'
    + TCCNT='8 Cores '
    + '[' 8 -gt 1 ']'
    + PCCNT='\/8 Cores '
    + '[' 8 -gt 1 ']'
    + TTCNT='8 Threads'
    + cpu_cores='8 Cores (1 CPU\/8 Cores | 8 Threads)'

     

    Please compare.

     

    Collected CPU information is entered into the line without entering the variables thoroughly.

     

    + cpu_vendor='
    Intel'
    
    + cpu_family='
    Xeon'
    
    + cpu_series='
    E5440'

     

    The variables of the collected information are continuously changed and displayed.

    + cpu_info='f.cpu_vendor="
    Intel";f.cpu_family="
    Xeon";f.cpu_series="
    E5440";f.cpu_cores="4 Cores (1 CPU\/4 Cores | 4 Threads)";'
    + sed -i 's/f.model]);/f.model]);f.cpu_vendor="
    Intel";f.cpu_family="
    Xeon";f.cpu_series="
    E5440";f.cpu_cores="4 Cores (1 CPU\/4 Cores | 4 Threads)";/g' /root/Xpenology_backup/admin_center.js
    sed: -e expression #1, char 37: unterminated `s' command

     

    This is correct.

    + cpu_info='f.cpu_vendor="Intel";f.cpu_family="Xeon";f.cpu_series="E3-1230 V2";f.cpu_cores="8 Cores (1 CPU\/8 Cores | 8 Threads)";'
    + sed -i 's/f.model]);/f.model]);f.cpu_vendor="Intel";f.cpu_family="Xeon";f.cpu_series="E3-1230 V2";f.cpu_cores="8 Cores (1 CPU\/8 Cores | 8 Threads)";/g' /root/Xpenology_backup/admin_center.js

     

    Why the space is in the GATHER_FN function should be checked one line at a time.

     

    To find out why. in the GATHER_FN function's should be checked one line, one line...by command. 

     

    I am sorry that I can not solve it right now. :61_sob:

  13. 16 hours ago, fhocorp said:

    + cpu_vendor='

    Intel'

    + '[' '

    Intel' == AMD ']'

    ++ dmidecode -t processor

    ++ grep Version

    ++ grep -v Unknown

    ++ sed 's/(..)//g'

    ++ awk '{print $3}'

    ++ sed s/CPU//g

    ++ sed 's/(.)//g'

    ++ sort -u

    ++ grep -v Not

    + cpu_family='

    Xeon'

     

    There is no abnormality in particular.

     

    But, Is there a way to change the line when pasting it like this? Or does it look like the terminal window has changed lines or lines?

     

     

    admin_center.js file copy to admin_center.js_bak

     

    Try typing in the terminal to see if there are any errors

     

    # sed -i 's/f.model]);/f.model]);f.cpu_vendor="Intel";f.cpu_family="Xeon";f.cpu_series="E5440";f.cpu_cores="4 Cores (1 CPU\/4 Cores | 4 Threads)";/g' /tmp/admin_center.js_bak

     

    If you do not get an error, ch_cpuinfo.sh may have been blanked or wrapped in the process of moving it to your DSM.

     

     

    Please run it and let me know the result.

     

     

  14. 9 hours ago, gericb said:

    Curious...have you by chance, included in your code, the "original" DSM Model Name, CPU, CPU Clock Rate, CPU Cores in your code, for the "3) Restore" function, so that it's possible to overwrite flawed data with the factory original version?

     

    no, That does not mean that.

     

     

    While upgrading ch_cpuinfo from 1.0 to 5.0. Collection methods, results, etc. have been changed.

     

    That's why I've been struggling to minimize problems that could occur when using previous ch_cpuinfo users.

     

     

    The "RERUN_FN" function is the function that contains the process of modifying the modified file again.

     

    In this process, all users have the same DSM environment, so there is a possibility of errors.

     

     

    I hope I have answered your question correctly. :)

     

    English is too hard :61_sob:

  15. 7 hours ago, fhocorp said:
    
    DSM CPU Information Change Tool ver. 5.2 - made by FOXBI
    
    Your version of DSM is DSM 6.1 continue...
    
    1) First run  2) Redo  3) Restore - Select Number : 2
    
    Do you want to proceed again? Restore to original file backup and proceed.(Cance                         l : q) [y/n] : y
    
    You have verified and installed the previous version. Contiue...
    
    Auto Excute, If you select n, proceed interactively  (Cancel : q) [y/n] : y
    
    Restore to source and continue.
    
    sed: -e expression #1, char 37: unterminated `s' command
    sed: -e expression #1, char 91: unterminated `s' command
    The operation is complete!! It takes about 1-2 minutes to reflect,
    (Please refresh the DSM page with F5 or after logout/login and check the informa                         tion.)
    ash-4.3#

    Running DSM 6.1.7-15284 Update 2

     

     

    I have made some parts of the old version of ch_cpuinfo that allow me to cope with the problem and some problems may arise.

     

    It is also a good idea to proceed after restoring the original with No. 3 restores.

     

    If you want to know more exactly where the error is, go to sh -x ch_cpuinfo.sh and show me the error detected part.

     

    Thank you

×
×
  • Create New...