Search This Blog

SCSI Sense commands

I just can't figure this one out.
The ESX hosts we have in the environment are reporting issues with connectivity to the storage fabric. They connect fine and push data back and forth but one server in particular reports that it keeps losing connectivity to one of the paths through powerpath. Then it fixes itself.

With the vkernel log it shows SCSI Sense Codes and points to Destination then the Host and back and forth. When I get the time this has to be resolved.

Ever wanted a way to ping an entire subnet and don't have access to a tool to do it? Well this one liner allows that.

The For at the beginning says the variable $i is equal to one, the semicolon separates it from the amount of times the loop is run 1..254 and then the $i++ increments the loop by 1. (You can specify every 5th IP if you want)

The next section runs the windows builtin ping.exe command (make sure you include the .EXE extension) with the switch -n (which means number of times) and then in brackets you are specifying the IP to ping. The where statement at the end is looking for a match of "bytes=32" default output for a successful ping.

I was working with VMware Update Manager and was running a scan on the entire VMguest infrastructure. Well the Update Manager service hung. I am not going to say anything more about that. :)

So I went to the UM server and attempted to restart the service. It sat in stop pending for quite awhile so I decided to kill the process. hmmm how do I do that? I was going to use powershell but the only cmdlet's available are to get- and stop- and restart-. All in the same token as going through the GUI.

Tasklist.exe /SVC
This displays all of the services running and their PID

Taskkill.exe /PID <PID #> /T
This terminates the service and child processes.

This killed the Update Scan on the VIclient and allowed me to restart the service.