Friday, July 24, 2009

Robocopy Exit Codes

Return codes list that are used by the Robocopy utility:

  • 0 No files were copied. No failure was encountered. No files were mismatched. The files already exist in the destination directory; therefore, the copy operation was skipped.
  • 1 All files were copied successfully.
  • 2 There are some additional files in the destination directory that are not present in the source directory. No files were copied.
  • 3 Some files were copied. Additional files were present. No failure was encountered.
  • 5 Some files were copied. Some files were mismatched. No failure was encountered.
  • 6 Additional files and mismatched files exist. No files were copied and no failures were encountered. This means that the files already exist in the destination directory.
  • 7 Files were copied, a file mismatch was present, and additional files were present.
  • 8 Several files did not copy.
  • Any value greater than 8 indicates that there was at least one failure during the copy operation.

Here are a full details of the return codes that could be in a batch file:
if errorlevel 16 echo ***FATAL ERROR*** & goto end
if errorlevel 15 echo FAIL MISM XTRA COPY & goto end
if errorlevel 14 echo FAIL MISM XTRA & goto end
if errorlevel 13 echo FAIL MISM COPY & goto end
if errorlevel 12 echo FAIL MISM & goto end
if errorlevel 11 echo FAIL XTRA COPY & goto end
if errorlevel 10 echo FAIL XTRA & goto end
if errorlevel 9 echo FAIL COPY & goto end
if errorlevel 8 echo FAIL & goto end
if errorlevel 7 echo MISM XTRA COPY & goto end
if errorlevel 6 echo MISM XTRA & goto end
if errorlevel 5 echo MISM COPY & goto end
if errorlevel 4 echo MISM & goto end
if errorlevel 3 echo XTRA COPY & goto end
if errorlevel 2 echo XTRA & goto end
if errorlevel 1 echo COPY & goto end
if errorlevel 0 echo –no change– & goto end
:end

For Robocopy Syntax see http://technet.microsoft.com/en-us/library/cc733145(WS.10).aspx

WSS 3.0 Search cli command

A shortest list of stsadm to control wss 3.0 search service

  • stsadm -o spsearch -action list
    list of all the current WSS Search service settings
  • stsadm -o spsearch -action stop
    stop WSS Search service
  • stsadm -o spsearch -action stop [-f]
    stop WSS Search service and remove all index files
  • stsadm -o spsearch -action start
    start WSS Search service
  • Stsadm -o spsearch -action fullcrawlstart
    start a full crawl of content
  • Stsadm -o spsearch -action fullcrawlstop
    stop a full crawl of content

Wednesday, July 15, 2009

P-Miner?!?!

General purpose performance analyzer and collector?

SNMP protocol is so interesting. With that you are able to “trap” a lot of parameters about network devices. Generally it used to monitoring servers, switch or any other device that are on classical IT infrastructure or it used to collect performance parameters, too. But…

…but there are a lot of other area (not strictly IT competence) that have a lot of network (and heterogeneous) devices that they expose a lot of interesting parameters to collect.

Generally monitoring and performance tools are designed to collect information for servers, switch, ups, application, …

Well, is there a product that can acquire parameters through SNMP and, at the same time, is flexible and specially is cross “area”?

We needed a product to collect performance parameters (and some value, too) from a lot of different devices. Like servers, applications, network devices, general purpose probes, PLC, and any other devices used in industrial plants.

Market search answer do not satisfied our necessity, and…

We realized that!

We haven’t invented nothing, we have devised “only” a new approach!

What’s P-Miner?

P-Miner is our idea of general purpose performanceuntitled and “value” collector. It’s based on a series of embedded modules that can acquire any type of metrics from any type of SNMP-devices through the lan.

The innovation is that the system contain a special expression language that can permit to acquire, correlate and analyze different kind of data.

image

With this approach the system may read a value (throw SNMP MIB) and afterwards elaborate and represent its in a suitable mode. Also…

With similar regular expression you may set alarms condition on captured data, like this

untitled

All data, alarms, errors and so could be viewed in two graphical mode. The first is a view with value plotted on a various time interval diagram.

untitled
The second view, called “synoptic view”, represents items status.

pminer_synoptic2

Items status are defined with preconfigured rules or personal rules (via regular expressions). With this view, in a single sight, P-Miner show which device are not working properly or is in the state that pay attention. Operators can tag any items to create a small and basically history of device.

Obviously, P-Miner is completely configurable and is Vendor independent. Specific vendor probe are not necessary, you can build your probe simply with SNMP query analyzer and regular expression.

Actually P-Miner is on-line in some customers and collect metrics on Microsoft/Linux servers and Microsoft/java application servers, switches, PLC, UPS and automation applications in critical environment, specially in industrial plants.

http://tinyurl.com/pminerbrochure