Lapas

piektdiena, 2015. gada 10. jūlijs

Test bandwidth between two hosts

Install iperf CLI tool:
apt-get install iperf
or
download for windows from https://iperf.fr/

Run iperf as server on one host(192.168.0.1):
iperf -s

Run client on other host(192.168.0.100):

iperf -c 192.168.0.1 -t 30 -i 5

Output:
------------------------------------------------------------
Client connecting to 192.168.0.1, TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.0.100 port 49363 connected with 192.168.0.1 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 5.0 sec  53.8 MBytes  90.2 Mbits/sec
[  3]  5.0-10.0 sec  55.0 MBytes  92.3 Mbits/sec
[  3] 10.0-15.0 sec  54.2 MBytes  91.0 Mbits/sec
[  3] 15.0-20.0 sec  55.2 MBytes  92.7 Mbits/sec
[  3] 20.0-25.0 sec  54.1 MBytes  90.8 Mbits/sec
[  3] 25.0-30.0 sec  54.1 MBytes  90.8 Mbits/sec
[  3]  0.0-30.0 sec   327 MBytes  91.3 Mbits/sec


Use parameter -w 1m to specify TCP window size .

Detailed information: http://openmaniak.com/iperf.php
Information about TCP windowing: https://www.slashroot.in/ 

trešdiena, 2015. gada 8. jūlijs

trešdiena, 2015. gada 1. jūlijs

Force HP ILO to reset network interface

When you apply new network settings - ILO shows message: "There are pending changes that may not take effect until iLO is reset."
To force ILO reset use putty to ssh ILO and type commands:

cd /map1
reset


Source: eMware

otrdiena, 2015. gada 26. maijs

Export/Import DHCP server reservations list

Run CMD as administrator on source server

c:\> netsh dhcp server \\MY_SERVER_NAME scope 192.168.1.0 dump>c:\dhcp.txt

Delete unnecessary commands, update "server name" and/or "scope"
Run CMD as administrator on destination server

c:\> netsh exec c:\dhcp.txt

otrdiena, 2015. gada 12. maijs

Recover deleted user from Office 365

Connect to MSOnline using powershell and run the code:

Restore-MsolUser -UserPrincipalName user1@o365info.com -AutoReconcileProxyConflicts -NewUserPrincipalName user1@o365info.com

Source: o365info.com

trešdiena, 2015. gada 22. aprīlis

Cannot insert new column in Excel

Error message: "To prevent possible loss of data, Microsoft Excel cannot shift nonblank cells off the worksheet."

Select first unnecessary column -  CTRL+Shift+Right - selects all columns till end.

Press separately magic combination ALT, E, A, A (Clear All content)

Source: wizardofexcel.com

pirmdiena, 2015. gada 30. marts

Bypass powershell security warning

To bypass security warning when running scripts from UNC path, just run powershell with -ExecutionPolicy argument

PowerShell -ExecutionPolicy Bypass -File \\server\share\filename.ps1