Archives

How To Verify SSL Certificate From A Shell Prompt

The s_client and s_server options provide a way to launch SSL-enabled command-line clients and servers
If you’re trying to configure a service that includes a TLS/SSL handshake and you want to know if the problem you’re experiencing is related to the application, firewall, certificate trust, misconfiguration, etc. here’s a way to eliminate TLS/SSL from your list [...]

change speed of network card, find speed of network card, mii-tool, ethtool

Task: Find full or half duplex speed
You can use dmesg command to find out your duplex mode:
# dmesg | grep -i duplex
Output:
eth0: link up, 100Mbps, full-duplex, lpa 0×45E1
ethtool command
Uss ethtool to display or change ethernet card settings. To display duplex speed, enter:
# ethtool eth1
Output:
Settings for eth1:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports [...]

Setting cpu affinity for a certain task in Linux, cpu affinity

If you are running 4  servers assuming you are using Dual Xeon processors ( classed as 4 cpu’s in linux)
Server 1 uses 60% CPU Usage
Server 2 Uses 60% CPU Usage
Server 3 Uses 20% CPU Usage
Server 4 Uses 20% CPU Usage
Rather than letting the distro automtically assign CPU’s it is sometimes better for you to do [...]