HP MSA P2000 G3 – View live performance statistics in CLI

The HP P2000 G3 MSA Arrays have statistical counters that provide array performance measurements across different levels, such as disks, Vdisks, host ports, controllers, and volumes. Each component supports a list of performance metrics such as IOPS, Queue Depth, and Bytes per second.With the following commands we can get these live performance statistics.

show controller-statistics
show Vdisk-statistics
show disk-statistics
show volume-statistics
show host-port-statistics
Posted in Datacenter | Leave a comment

Useful Windows keyboard shortcuts

Open Task Manager –> ctrl+shift+esc
Quit program –> alt+F4
Right click –> shift+F10
Main window menu(minimize…) –> alt+space
Open menu in a program –> alt
open properties –> alt+enter
create new folder –>ctrl+shift+n
Cursor in address bar –> alt+d
Search –> F3
New tab –> ctrl+t
Use the arrow keys to switch between open items –> alt+tab+arrows(alt pressed)
Go up one level –> alt+up arrow
Move through tabs –> ctrl+tab
move backwards through tabs –> ctrl+shift+tab
System properties –> win+pause
Focus on the taskbar –> win+t
Shutdown menu –> alt+F4
Preview the desktop –> win+space
Maximize window –> win+up arrow
Minimize window –> win+down arrow
Projector –> win+p

Posted in Windows | Leave a comment

VMware – Force shutdown of a stuck VM

Sometimes a VM is stuck and can’t be killed with vSphere Client

Login through ssh to the Esxi server and get a list of running VMs identified by World ID:

esxcli vm process list

Power off one of the virtual machines from the list using this command:

esxcli vm process kill --type=force --world-id=7331933
Posted in Virtualization | Comments Off on VMware – Force shutdown of a stuck VM

Troubleshooting Group Policy update issues

Problem: Logon scripts not running.
Check for event ID 1058 in System Event Log.In the details tab find the sysvol path pointing to the gpt.ini file.Check if the file is accessible.
Check which DC the pc uses to login to AD:
echo %logonserver%
From command prompt run gpupdate to check issues

Posted in Windows | Comments Off on Troubleshooting Group Policy update issues

Setting timezone on CentOS

Timezone data files are stored on:

/usr/share/zoneinfo

 

$ sudo rm /etc/localtime
$ sudo ln -s /usr/share/zoneinfo/Europe/Athens /etc/localtime
#
# now check it's ok
#
$ date
Wed Oct  1 12:42:33 GMT 2008
Posted in Linux | Comments Off on Setting timezone on CentOS

Create large file from command prompt

A quick way to create a file of a specific size from command prompt:

fsutil file createnew C:\bigfile.txt 5000000000

The above command will create bigfile.txt with size 4,65GB.

Posted in Windows | Comments Off on Create large file from command prompt