หน้าเว็บ

วันศุกร์ที่ 21 มิถุนายน พ.ศ. 2562

Windows :: Windows Activation Error ทั้ง Windows 10 และ Windows 7

Windows :: Windows Activation Error ทั้ง Windows 10 และ Windows 7
0X8004FE33


แก้โดย
1. ปล่อยเน็ตออกตรง
2. เอา Proxy ของเครื่องออก
ลอง Activateใหม่

https://support.microsoft.com/en-us/help/921471/windows-activation-or-validation-fails-with-error-code-0x8004fe33

วันอาทิตย์ที่ 16 มิถุนายน พ.ศ. 2562

VMware :: VMware Esxi Upgrade 6.7 update U1 Error

VMware :: VMware Esxi Upgrade 6.7 update U1 Error
[root@esxi99:/vmfs/volumes/543e1f7f-9c6a2848-b192-2c44fd93cff0/ISO/UpDateVM/UpdateVm 6.7] esxcli software vib update -d /vmfs/volumes/543e1f7f-9c6a2848-b192-2c44fd93cff0/ISO/UpDa
teVM/UpdateVm\ 6.7/update-from-esxi6.7-6.7_update01.zip
[DependencyError]
VIB VMware_bootbank_esx-base_6.7.0-1.28.10302608 requires esx-update << 6.7.0-1.29, but the requirement cannot be satisfied within the ImageProfile.
VIB VMware_bootbank_esx-base_6.7.0-1.28.10302608 requires esx-update >= 6.7.0-1.28, but the requirement cannot be satisfied within the ImageProfile.
Please refer to the log file for more details.

แก้โดย
Open the ESXi firewall for HTTP traffic. The ESXi host must have internet access.
  1. esxcli network firewall ruleset set -e true -r httpClient


แล้ว Update โดยใช้คำสั่ง
  1. esxcli software profile update -p ESXi-6.7.0-20181002001-standard  -d /vmfs/volumes/543e1f7f-9c6a2848-b192-2c44fd93cff0/ISO/UpDateVM/UpdateVm\ 6.7/update-from-esxi6.7-6.7_update01.zip


Close ESXi firewall.
  1. esxcli network firewall ruleset set -e false -r httpClient


แล้วค่อย Update Patch อื่นตามปกติ

https://communities.vmware.com/thread/598912

วันศุกร์ที่ 7 มิถุนายน พ.ศ. 2562

VMware :: VMware Esxi cancel copy task

Cannot cancel copy task in ESXi Web interface
On Esxi only, not ESX: Restart the VM client daemon after SSH Login

/etc/init.d/hostd restart

https://serverfault.com/questions/889256/cannot-cancel-copy-task-in-esxi-web-interface

วันพฤหัสบดีที่ 6 มิถุนายน พ.ศ. 2562

VMware :: VMware Esxi Upgrade 6.5 To 6.7
(วิธีนี้ทำไม่ได้)
ถ้าจะ Download File มา Upgrade ใหม่ต้องสมัครเมล์ใหม่ และอาจจะได้ Licence ใหม่
เมื่อเขา Download Esxi 6.7 จะมีข้อความบอก ว่าไม่สามารถ UP จาก Version 6.5 ไป 6.7 ไม่ได้
https://my.vmware.com/group/vmware/details?downloadGroup=ESXI670&productId=742#errorCheckDiv

วิธีที่ทำได้คือ Download และ Upgrade ผ่าน Code ลองแล้วผ่านใช้ได้
How to update ESXi 6.5 to 6.7 via command line

1. Place the host you are about to upgrade into Maintenance Mode.
2. Now SSH into the host using PuTTY (or any other SSH client/terminal).
3. Type the following command to open the firewall for outgoing HTTP requests:

esxcli network firewall ruleset set -e true -r httpClient


4. Type the following command to upgrade to the latest ESXi 6.7 Build 9484548 (latest as of writing)

*** ถ้า DNS ปิดต้อง Fix resolv.conf
[code]nano /etc/resolv.conf[/code]
add nameserver
[quote]nameserver 8.8.8.8[/quote]
esxcli software profile update -d https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml -p ESXi-6.7.0-20180804001-standard


5. After the update has finished disable the HTTP firewall rule by typing:
esxcli network firewall ruleset set -e false -r httpClient


6. And finally, reboot the ESXi host to complete the upgrade.
reboot

Once the host comes back online, remove it from Maintenance mode and you’re good to go. It also wouldn’t hurt to also disable SSH when you’re done, for security purposes.

Tip: To view a list of all available ESXi profiles type the following in your SSH session:

esxcli software sources profile list --depot=https://hostupdate.vmware.com/software/VUM/PRODUCTION/main/vmw-depot-index.xml

https://miketabor.com/how-to-upgrade-esxi-6-5-to-esxi-6-7/


แล้วค่อย Update Patches 6.7 ต่อ
https://intranet.sci.com/blog.php?u=281&b=1527

VMware :: Vmware ESXi 6.5.0 Upgrade patches last version ESXi650-201905001 : 13635690 Show warning

VMware :: Vmware ESXi 6.5.0 Upgrade patches last version ESXi650-201905001 : 13635690
Show warning
This host is potentially vulnerable to issues described in CVE-2018-3646, please refer to https://kb.vmware.com/s/article/55636 for details and VMware recommendations.
Fix the problem by.
1. Connect to the ESXi host by opening a web browser to https://HOSTNAME.
2. Click the Manage tab
3. Click the Advanced settings sub-tab
4. Click in the Filter box and search VMkernel.Boot.hyperthreadingMitigation
5. Select the setting by name and click the Edit pencil icon
6. Change the configuration option to true (default: false)
7. Click Save.
8. Reboot the ESXi host for the configuration change to go into effect.

https://kb.vmware.com/s/article/55806

วันศุกร์ที่ 31 พฤษภาคม พ.ศ. 2562

Axapta :: Close Periods Axapta ทำให้ Ax เร็วขึ้น Inventsum ไม่คำนวณเยอะ

Axapta :: Close Periods Axapta ทำให้ Ax เร็วขึ้น Inventsum ไม่คำนวณเยอะ
** จะปิด Periods ใน Axapta สำคัญ **
1. ต้องสอบถาม งบง. ว่าทำฝั่งบัญชีเสร็จแล้วหรือยัง เพราะถ้าปิดไปแล้ว งบง. จะไม่สามารถปรับยอดหรือ Adjust ฝั่งบัญชีได้
2. วันที่ใน InventJournalTrans ต้องไม่มีค้าง ที่ยังไม่ได้ Post ต้องไม่มีในเดือนที่จะปิด
2.1. ค้างเปลี่ยนวันที่ใน Line และใส่ Remark นอกเล่มว่า งทส. เปลี่ยนวันที่
2.2. บางรายการมีการลบเล่มทิ้งแต่รายการใน Line ยังไม่อยู่ ต้องลบออก ไม่ได้ใช้งาน

1. Run Check ไม่มีการ Update แค่ดูเฉย ๆ
1.1. InventJournalTrans มีวันที่ที่จะ Close อยู่หรือไม่
1.2. InventJournalTrans มี แต่ InventJournalTable ไม่มี ถูกลบไป แต่ยังไม่ได้ Post
1.3. InventJournalTrans มี แต่ InventJournalTable ไปหาต่อที่ InventTrans ว่าถูก Post หรือไม่
Info ได้ Jouranl ออกมา ไปตรวจสอบ
  1. static void CheckCloseAC(Args _args)
  2. {
  3.     InventJournalTable      myInventJournalTable;
  4.     InventJournalTrans      myInventJournalTrans;
  5.     InventTrans             myInventTrans;
  6.  
  7.     LedgerJournalTrans      myLedgerJournalTrans;
  8.     LedgerJournalTable      myLegerJournalTable;
  9.     ;
  10.  
  11. ///// ###### Not Post. ####### ///////
  12.     WHILE
  13.     SELECT JournalId, TransDate FROM myInventJournalTrans
  14.     GROUP BY JournalId, TransDate
  15.     JOIN myInventJournalTable
  16.     WHERE myInventJournalTable.JournalId == myInventJournalTrans.JournalId
  17.         && myInventJournalTable.Posted == NoYes::No
  18.         && myInventJournalTrans.TransDate >= str2date("1/6/2015",123)
  19.         && myInventJournalTrans.TransDate <= str2date("31/6/2015",123)
  20.     {
  21.         info(strfmt("%1 : %2", myInventJournalTrans.JournalId, myInventJournalTrans.TransDate));
  22.     }
  23.  
  24. ///// ###### Delete Journal But InventJournalTrans remain data. ##########  /////
  25.     WHILE
  26.     SELECT JournalId, TransDate FROM myInventJournalTrans
  27.     GROUP BY JournalId, TransDate
  28.     WHERE myInventJournalTrans.TransDate >= str2date("1/6/2015",123)
  29.         && myInventJournalTrans.TransDate <= str2date("31/6/2015",123)
  30.     {
  31.         SELECT JournalId FROM myInventJournalTable
  32.         WHERE myInventJournalTable.JournalId == myInventJournalTrans.JournalId;
  33.         if(!myInventJournalTable.JournalId){
  34.             info(strfmt("%1 : %2", myInventJournalTrans.JournalId, myInventJournalTrans.TransDate));
  35.             //Check Post.
  36.             SELECT firstOnly myInventTrans
  37.             WHERE myInventTrans.TransRefId == myInventJournalTrans.JournalId;
  38.             if(!myInventTrans.TransRefId){
  39.                 info(myInventJournalTrans.JournalId);
  40.             }
  41.  
  42.         }
  43.     }
  44. }


2. เปลี่ยนวันที่ใน InventJournalTrans ให้เป็นวันที่ 1/1/2019 และแก้ Remark ( Update ข้อมูล เปลี่ยนวันที่ไปทีละเดือน Run ครั้งเดียว ถ้า Run ซ้ำ Remark จะเบิ้น)
  1. static void TWO_UpdateCloseAC(Args _args)
  2. {
  3.     InventJournalTable      myInventJournalTable;
  4.     InventJournalTrans      myInventJournalTransUpdate;
  5.     InventJournalTable      myInventJournalTableUpdate;
  6.     InventJournalTrans      myInventJournalTrans;
  7.     ;
  8.  
  9. /*    WHILE
  10.     SELECT * FROM myInventJournalTable
  11.     WHERE myInventJournalTable.Posted == NoYes::No
  12.         //&& myInventJournalTable.JournalId == "15-0003320"
  13.         && myInventJournalTable.TransDate >= str2date("1/3/2015",123)
  14.         && myInventJournalTable.TransDate <= str2date("31/3/2015",123)*/
  15.     WHILE
  16.     SELECT JournalId, TransDate FROM myInventJournalTrans
  17.     GROUP BY JournalId, TransDate
  18.     JOIN myInventJournalTable
  19.     WHERE myInventJournalTable.JournalId == myInventJournalTrans.JournalId
  20.         && myInventJournalTable.Posted == NoYes::No
  21.         && myInventJournalTrans.TransDate >= str2date("1/11/2018",123)
  22.         && myInventJournalTrans.TransDate <= str2date("31/11/2018",123)
  23.     {
  24.         myInventJournalTable = InventJournalTable::find(myInventJournalTrans.JournalId);
  25.         info(strfmt("%1", myInventJournalTable.JournalId));
  26.         ttsbegin;
  27.             WHILE
  28.             SELECT FORUPDATE myInventJournalTransUpdate
  29.             WHERE myInventJournalTransUpdate.JournalId == myInventJournalTable.JournalId
  30.             {   //### Update All Line To 1/1/2019 ####//
  31.                 myInventJournalTransUpdate.TransDate = str2date("1/1/2019", 123);
  32.                 myInventJournalTransUpdate.update();
  33.             }
  34.         ttscommit;
  35.  
  36.         //### Update InventTable ###//
  37.         ttsbegin;
  38.             SELECT FORUPDATE myInventJournalTableUpdate
  39.             WHERE myInventJournalTableUpdate.JournalId == myInventJournalTable.JournalId;
  40.                 //myInventJournalTableUpdate.TransDate = str2date("1/1/2019", 123);
  41.                 if(myInventJournalTable.Cause == ""){
  42.                      myInventJournalTableUpdate.Cause = strfmt("(งทส. เปลี่ยนวันที่ เดิม %1)", myInventJournalTable.TransDate);
  43.                 } else {
  44.                      myInventJournalTableUpdate.Cause = strfmt("%1 (งทส. เปลี่ยนวันที่ เดิม %2)", myInventJournalTable.Cause, myInventJournalTable.TransDate);
  45.                 }//Close If.
  46.                 myInventJournalTableUpdate.update();
  47.         ttscommit;
  48.  
  49.     }//Close While.
  50.  
  51.     info("Update Finish.");
  52. }


3. ทดลอง Close Periods ดู

วันอังคารที่ 28 พฤษภาคม พ.ศ. 2562

VMware :: VMware Add Disk Formate And Add To Ubuntu

VMware :: VMware Add Disk Formate And Add To Ubuntu
ใช้ได้หลายวิธี
1. นำ Disk ไป Boot Gpart Disk
2. ใช้คำสั่ง Fdisk ยุ่งยาก
3. แบบง่าย ใช้คำสั่ง cfdisk
  1. fdisk -l
  1. cfdisk /dev/sdb1
ทำดังนี้
Delete
Create
Type
Write
Quit
4. formate เป็น ext4
  1. mkfs.ext4 /dev/sdb1

5. mount
  1. mount -t ext4 /dev/sdb1 /mnt


http://manpages.ubuntu.com/manpages/disco/man8/cfdisk.8.html