Comments Off

The return code from Robocopy is a bit map, defined as follows:

0×10 Serious error. Robocopy did not copy any files. This is either a usage error or an error due to insufficient access privileges on the source or destination directories.
0×08 Some files or directories could not be copied (copy errors occurred and the retry limit was exceeded). Check these errors further.
0×04 Some Mismatched files or directories were detected. Examine the output log. Housekeeping is probably necessary.
0×02 Some Extra files or directories were detected. Examine the output log. Some housekeeping may be needed.
0×01 One or more files were copied successfully (that is, new files have arrived).
0×00 No errors occurred, and no copying was done. The source and destination directory trees are completely synchronized.

You can use this information in a batch file to report the most serious anomalies, as follows:

if errorlevel 16 echo ***FATAL ERROR*** & goto end
if errorlevel 8 echo **FAILED COPIES** & goto end
if errorlevel 4 echo *MISMATCHES* & goto end
if errorlevel 2 echo EXTRA FILES & goto end
if errorlevel 1 echo Copy successful & goto end
if errorlevel 0 echo –no change– & goto end
:end

Alternatively, full details of the return code could be reported as follows:

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

VLAN configuration on Fedora Core / Red Hat / CentOS

Posted: 30th January 2008 by renumbus in Blogroll, Linux
Comments Off

The original article was found on http://www.tummy.com/journals/entries/jafo_20061130_063931

The configuration of VLANs under FC/RHEL/CentOS is something that I always end up looking in the “ifup” script and experimenting around with. This is made worse by there being two different conventions that can be used for the interface naming. Here’s how I set up VLANs. First of all, the base interface needs to be configured. Usually, it’s already got at least a stub file, which needs to be Read the rest of this entry »

Speed up Firefox on Ubuntu

Posted: 20th October 2007 by renumbus in Blogroll, Linux
Comments Off

After Ubuntu upgrade I noticed that Firefox become too slow.

It seems that IPv6 had been enabled again.
If I type #ifconfig it shows ipv6 address on Read the rest of this entry »

Windows 2000 PC with profiles stored on a server gives an error:

“You do not have permission to access your central profile located at \\server\users\username”

However, a Windows XP based computer logs in without any problem”

Solution:

1. On your domain controller open Active Directory Users and Computers

2. Open user’s properties

3. Add a backslash ‘\’ at the end of Profile Path: , i.e. change \\server\users\username to \\server\users\username\

Hope it helps!

Package xxx.rpm is not signed

Posted: 26th August 2007 by renumbus in Blogroll, Linux
Comments Off

I downloaded an .rpm package but if I run
# rpm -ivh xxx.rpm
It shows a long list of dependences needed to install.

If I run
yum install xxx.rpm

I’ve got an error message
Package xxx.rpm is not signed

Solution:

Edit /etc/yum.conf

replace gpgcheck=1 to gpgcheck=0