2021年12月20日 星期一

arcsight express 出現manager license is not valid?

1 . 使用arcsight 使用者登入.

2. 進入 /opt/arcsight/logger/current/arcsight/bin 執行

./mysql -u arcsight -p

3. 輸入 arcsight 密碼.

4. 執行

use arcsight;

5. 在 mysql> 執行:

show table status like 'arc_not%';

Output 出現如下:
arc_notification_history      | InnoDB |      xx| Compact    | 3461124 |            xxx|   387350528 |               ...
arc_notification_registry     | InnoDB |      xx| Compact    | 1671599 |            xxx|  1534590976 |              ...

Note: The size of the arc_notification_registry above is 1,534,590,976 (1.5GB) and it has 1,671,599 rows. These are large values for this table.

6. Truncate the tables, as follows:

a. 將Manager 服務 stop,/etc/init.d/arcsight_services stop manager.

b. Enter the following commands at the mysql> prompt. If necessary, login again by repeating Steps 1-4 above.

set foreign_key_checks=0;

truncate table arc_notification_history;

truncate table arc_notification_registry;

set foreign_key_checks=1;

exit

7. 重啟Manager(Start the Manager).

8. 重新登入Console(Login to the Console).

參考:https://community.microfocus.com/cyberres/arcsight/f/arcsight-discussions/344782/manager-license-is-not-valid/924818#924818

2021年12月9日 星期四

windows 11右鍵轉換

 改為windows 10 模式,以下存檔為bat

reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve

taskkill /f /im explorer.exe & start explorer.exe


 改為windows 11 模式,以下存檔為bat

reg delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f

taskkill /f /im explorer.exe & start explorer.exe

2021年11月26日 星期五

Ubuntu 20.04 Converter VM 至97%錯誤?

1. 開機後出現grub>,執行ls -l,看Filesystem type ext* 的partition在哪裡,我的是(hd0,gpt2)--sda2,並將UUID編號紀錄,及(hd0,gpt1) type fat 的UUID。或者登入desktop 光碟機開機進入後,叫出終端機執行sudo blkid ,將資訊複製到writer中

2.用desktop光碟開機,選try ubuntu,進入後執行terminal進入dos視窗

3.sudo mount /dev/sda2 /mnt

   sudo nano /mnt/etc/fstab 修改2個的UUID及格式後存檔

   UUID=xxxx-xxxx-xxxx-xxxx-xxxx   /    ext4   defults   0   1

   UUID=xxxx-xxxx         /boot/efi     vfat   defaults   0    1

4.修改grub.cfg

   cd /mnt/boot/grub

   sudo chmod 747 grub.cfg

   sudo nano grub.cfg   --將sda2的UUID改成現在的,約23個

   sudo chmod 444 grub.cfg

5.重機開機

6.仍然會到grub>,這時下以下的指令

   set root=(hd0,gpt2)

    set prefix=(hd0,gpt2)/boot/grub

    insmod normal

    normal --會進入畫面

6.之後執行 sudo update-grub 和 sudo grub-install /dev/sda

7.重新開機就大功告成


                  

2021年11月3日 星期三

Win10 命令提示字元視窗 (cmd) 游標消失的問題

 

Win10 命令提示字元視窗 (cmd) 游標消失的問題


到 "控制台/滑鼠" 表單去將 "能見度" 裡面的 "在打字時隱藏指標" 取消勾選即可
重新啟動命令提示視窗即可。

2021年10月20日 星期三

Linux find使用

 


find "{$PATH}" -name "file name" -exec grep -H "{$CONTENT}" {} \;

例如:

find / -name abc.xml
搜尋整個系統中, 是否有檔名為abc.xml的檔案.


find ./kernel -name "*.txt" -exec grep -H "test" {} \;  
要搜尋./kernel底下所有的.txt檔, 內容含有"test"的地方.

參考:https://dotblogs.com.tw/grayyin/2016/09/12/134821

2021年10月19日 星期二

Putty 白底黑字設定

 用了幾天的Putty,黑底白字還不錯,不過綠字、藍字就真的是給他很不清楚,


Putty--> Window-->Colours-->General options for colour usage
勾選 Use system colours
存檔後,再用Putty登入,就成了我要的白底彩字畫面了

參考:http://blog.3cnet.tw/2013/08/putty.html

2021年9月2日 星期四