Friday, January 10, 2025

KVM Switch vs Docking Station vs Synergy (Software solution

 KVM (Keyboard, Video(Monitor), Mouse) switch is mainly used to control multiple PCs or servers via a single keyboard, monitor and mouse (also referred to as the 'console').


Docking Station, expands the connectivity options and functionality of laptops, tablets, or mobile devices by providing a centralized hub for connecting peripherals.


Synergy is a KVM switch alternative, a software solution that enables users to share a single keyboard and mouse between multiple computers.


***

Wednesday, January 8, 2025

WiFi turning off automatically on Windows 10

By default in Windows 10, wifi turns off automatically to save power/battery when system is idle.


To disable this, follow below steps.

Scenario 1:

Step 1: Press "windows + x" and select "Device manager"

Step 2: Expand "Network adapters" and select any device like "Intel(R) Dual Band Wireless-AC 3160"

Step 3: Right click to open "properties" for above selected device(Intel(R) Dual Band Wireless-AC 3160).

Step 4: Select tab "Power Management"

Step 5: Un check "Allow the computer to turn off this device to save power"

Scenario 2:

Go to "power options" ==> "change plan settings" ==> "change advanced power settings"


Now, under "wireless Adapter Settings" ==> "power saving Mode"

Choose Onbattery and Plugged in to "Maximum Performance"


Now, good to go.


***

Sunday, January 5, 2025

Possible scenarios for EXE process going down in Tigergraph DB

 There are three scenarios that can cause the exe to go down:

OOM (Out-Of-Memory can cause exe down)

Can be verified in "dmesg" file

SIGTERM (this is the graceful shutdown, for example, if run gadmin stop exe)

SIGKILL (ungracefull shutdown, SIGKILL sent by some other processes).

For above two scenario's can be searched in EXE logs.


***

Packet Capture

Two utilities to monitor network are 

1) Wireshark

2) tcpdump

1) Wireshark, is a network protocol analyzer and which generally uses filetype called .pcap or packet capture to record traffic.

The most pertinent part of a packet is its data payload and protocol information.

2) tcpdump is a built in command line utility that captures network traffic.

Command "$ sudo tcpdump -i eth1" will capture packets on eth1 interface.

Now, specifying tcpdump to only list traffic from the source 127.168.0.1 and save the information to a file.

$ sudo tcpdump -i eth0 -w packets.pcap src 127.168.0.1 

Then use a tool like tshark to see our packets in the command line.

$ $ tshark -r packets.pcap


***