Posted by: mahkokwei | February 7, 2010

What’s inside System State?

Probably we do often heard of “System State” when performing backup and restoration. Ever wondering what is System State and what components are included?

  • There are 3 things which ALWAYS included System State:
    COM+ Class Registration Database
    Boot files, system files
    System files and Windows File Protection
  • Certificate Services database will be included when it is a Certificate Services Server.
  • Active Directory directory service will be included when it is a domain.
  • SYSVOL will be included when server is a Domain Controller.
  • Cluster database info is in when it is a cluster server.
  • IIS Metadirectory included if IIS is installed.

When backing up and perform restoration, there’s no way to choose out the individual components in System State as a result of dependency of each components.

What if the System State got restored to another location other than the native root drive? Yes we can do that, but only partial of the components will be found as below:

Available Not Available
Registry AD directory services
SYSVOL Certificate services db
Cluster db info COM+ Registration db
system boot  

When we click on access nodes in Citrix Web Interface (for me is version 4.5), suppose it will execute the ICA file automatically by default. But this does not happen to me. Usually what we do is uninstall and reinstall the ICA client. This may not able to solve the problem. (I’ve experienced that).

This is what should happen when click on access nodes:

  1. It starts download the file.
  2. For my case, it saves to Temporary Internet Files folder. (some may prompt asking where to save the file)
  3. The downloaded ICA file will be openned automatically using  ICA Emulator Engine (Win32). (Under C:\Program Files\Citrix\)

This are the steps I’ve done to enable auto ICA file execution [to associate ICA file type so it will always be openned using ICA Emulator Engine (Win32)]:

  1. Open Windows Explorer
  2. On menu bar, click on Tools  menu > click Folder Options
  3. In Folder Options window box, select File Types tab
  4. Select ICA/ Citrix ICA client extension in Registered file types
  5. Click on Advanced, select Confirm open after download check box.
  6. for Open with, click Change, make sure ICA Emulator Engine (Win32) is selected, and select Always use the selected program to open this kind of file check box. 

However, this detailed steps only works for Windows XP. For Vista, it can be done in Default Programs.

Posted by: mahkokwei | February 8, 2009

Dell DRAC default password

Each Dell DRAC comes with a default password; user: “root” password: “calvin”. but most of the time we change them for security purposes.

It is not impossible we may forget the password, or wrongly reset password. Password reset can be done using racadm command line tool.

In DRAC 4, the first index slot was “root” by default.

In DRAC 5, index 1 is “Administrator”, index 2 is “root”. this is required to know to identify which Id’s password to reset.

Example to reset password using racadm command:

DRAC 4: racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 1 “newpasswordhere

DRAC 5: racadm config -g cfgUserAdmin -o cfgUserAdminPassword -i 2 “newpasswordhere

Example to display the Id’s info using racadm command:

DRAC 4: racadm getconfig -g cfgUserAdmin -i 1

DRAC 5: racadm getconfig -g cfgUserAdmin -i 2

Posted by: mahkokwei | December 23, 2008

Reset HP iLO2 password

I have 2 HP DL servers where I’ve lost its password. This is really troublesome when supporting the serve remotely. I’ve asked a few colleagues of mine, they replied to perform reinstallation for the iLO2. OHH MAN… that’s is along process…..

Last week, I found something that finally solves my problem, to change the password or add a user into iLO2, using Remote Insight Board Command Language.

here’s the solution:

log in your server using administrator account (I’m using a Domain Admin).

My server already got installed the following:

– install SNMP, prerequisite for HP Insight Management Agents

–  install HP Insight Management Agents.

– download and extract HP Lights-Out Online configuration Utility to C:\hp\ilo

– downloaded HP Lights-Out XML Scripting Sample for Windows.

the xml script we are going to use (can be found in the downloaded XML Scripting Sample) is “Administrator_reset_pw.xml”

<ribcl VERSION=”2.0″>
  <login USER_LOGIN=”Administrator” PASSWORD=”boguspassword”>  
    <user_INFO MODE=”write”>
    <mod_USER USER_LOGIN=”Administrator”>
    <password value=”newpass”/>

open it using notepad, and modify <mod_USER USER_LOGIN=”Administrator”> where “Administrator” is your account’s username,                              <password value=”newpass”/> where “newpass” is your desired password.

Next, using cmd, browse to C:\hp\ilo, run command as below:

HPONCFG.exe /f Administrator_reset_pw.xml /l log.txt > output.txt

See the result at log.txt and output.txt. In my case, I’m succeed!!

So how about adding a user? same, find “add user.xml”, modify the appropriate value and you are good to go!

Actually HPONCFG.EXE can do more things that these. I downloaded a copy of pdf version iLO scripting and command line guide. Enjoy!

Posted by: mahkokwei | December 21, 2008


ROBOCOPY will be the default tool for me to perform file copy from a server to another server. Recently, I found XXCOPY while searching for ROBOCOPY errors occurred during file copy. Below are some explanations and comparison between them.

ROBOCOPY and XXCOPY are actually origin from Microsoft’s XCOPY. Behavior between XCOPY and XXCOPY are very close compare to ROBOCOPY.

 srcdir        srcspec      XXCOPY Allows wildcards anywhere any number
 dstdir        dstdir       Destination specifier
 file          ----         Part of srcspec to be XCOPY compatible
 file...       /IN<file>    /IN allows additional filename patterns
 /S            /S           Copy subdirectories
 /E            /E           copy subdirectories even if its empty
 /LEV:<n>      /DL<n>       Limit the number of directory levels
 /MOV          /RC          Delete from source after copying
                            (Move files)
 /MOVE         /RC/E        Delete from source after copying 
                            (Move files and Dirs)
 /PURGE        /Z           Delete dst files/dirs no longer exist in src
 /MIR          /CLONE       Mirror a directory tree
 /A+:<mask>    ----         Add the given Attributes to copied files.
 /A-:<mask>    ----         Remove the given Attributes from copied files.
 ----          /KS/KD/KN    Keep the src attributes/dst attrib/sets new
 ----          /AC          Clear src archive bit
 /CREATE       /CLONE/TR0   Create directory tree + 0-length files only.
 /FAT          /N           Create destination files using 8.3 names.
 /A            /A           Copy only files with the Archive attribute set
 /M            /M           Like /A, but remove A-bit from source files.
 /IA:<mask>    /AT<mask>    Include only files with some of the Attrib set.
 /XA:<mask>    /AX<mask>    Exclude files with any of given Attributes set.
 /XF           /X<file>     Exclude File matching given name/path/wildcard
 /XD           /X<dir\>     Exclude Directories matching given names/paths.
 /XC           /BS          Exclude changed files 
 /XN           /BO          Exclude newer files  
 /XO           /BN          Exclude older files  
 /XX           /Z           Exclude extra files
 /XL           /U           EXclude Lonely files/dirs
 /IS           /BI0         Include Same files
 /MAX:<n>      /SZ:-<n>     Exclude files bigger than n bytes.
 /MIN:<n>      /SZ:<n>-     Exclude files smaller than n bytes.
 /MAXAGE:<n>   /DA#<n>      Exclude files older than n days/date.
 /MINAGE:<n>   /DB#<n>      Exclude files newer than n days/date.
 /LOG:<file>   /ON<file>    Output status to LOG file 
                            (overwrite existing log).
 /LOG+:<file>  /OA<file>    Output status to LOG file 
                            (append to existing log).
 /L            /L           List only (no copy, timestamp, or delete action)
 /NP           /PB0         Enable/Disable progress display
 /R:<n>        -----        Number of retries on failed copies
 /W:<n>        -----        Wait time between retries: 
                            default is 30 seconds.
 ----          /CR<n>       XXCOPY retry period is specified in seconds.
 /SEC          /SC          Copyies Security information.
 /SECFIX       /SF          Fixes up security information without copy.
 /X            ----         Report extra files, not just those selected.
 /V            ----         Produce Verbose output, showing skipped files.
 ----          /Q<n>        Control various quiet (verboseness) levels
Features found only in ROBOCOPY:
 /Z                Copy file in restartable mode for quick retry later
 /TIMFIX           Fix timestamps on existing destination files.
 /REG              Save /R:n and /W:n in the Registry as default
 /TBD              Wait for sharenames To Be Defined (retry error 67).
 /ETA              Show Estimated Time of Arrival of copied files.
Features found only in XXCOPY:
 WildWildSrc       Wildcards anywhere any number in the source
 /X*\dir*\         Exclusion dir may be in any level and with wildcards
 /EX<file>         Exclusion specifiers supplied in a text file.
 /CF               Command file which removes size limit of command line.
 /RS/RD/RX         Delete file/directory (not just a copy utility)
 /DA#/DB#          File age specifier in Days, Hours, Minutes, or Seconds.
 /CCY              handle a cyclic copy to proceed.
 /SP               Span backup into multiple volume (for floppy, CD-RW)
 /SX               Flatten a directory tree
 /SG               Gather files into a directory
 /Lxxx             List (/L) with a customized display format
 /BZL/BZS/BZX/BZS  Backup if size is larger/smaller/different/same
 /NX               Preserve short filename
 /NL               Restore long filename after a SFN-only copy
 /NS               Restore short filename
 /NW/ND            Select filename-matching algorithm (Win32 vs DOS)
 /NP               Precise filename matching (no alias-matching)
 /FL/FU            Use Filetime in LocalTime/UTC-time
 /FW/FA/FC         Use Filetime in Last-Write, Last-Access, Create
 /FF               Fuzzy Filetime with adjustable margin in 
                   time comparison
 /TR<n>            Copy first n bytes to the destination file
 /ED/ED0           Delete/leave an empty directory when deleting
 /CK/CK0           Enable/disable remaining-space check before copy
 /IA/IP            Terminate if destination is absent/present
 /CB/CQ            Continue batch (batch enhancer feature)
 /NI<n>            Be nice to other tasks (add idle to ease CPU demand)
 /ER               Report exit code in XCOPY-compatible mode
 /V2               Verify a file-copy on a byte-by-byte comparison basis.
 /SZ!<n>-<m>       Exclude range <n>-<m>  which ROBOCOPY can't do
 /TS+/TS-/TD+/TD-  Time comparison with offset 
                   (inter-timezone synchronization)
 /WS/WE/P/PD/PW/YY Control for user prompts on various occasions
 /PC               Prompt on create (in addition to prompt on overwrite)
 /PB               Progress Bar for the entire job
 /PB<n>            Progress Bar for file with adjustable cutoff size.
 /MD               Make Directory (mkdir) for log file, etc. within XXCOPY
 /oX               Output the list of exclusion items after optimization
 /xxxx/?           Smart help with a focused list of relevant switches

Several differences between ROBOCOPY AND XXCOPY:

ROBOCOPY provides more detailed statistics than XXCOPY.

ROBOCOPY provides percentage display on each file while XXCOPY has progress bars for the entire job as well as single file copy with variable cutoff limit.

When aborting ROBOCOPY, it abruptly ends the whole job without any display of statictics thus far completed. Compare with XXCOPY, it first waits for the completion of the file copy in progress and provides statistics.

Apparently, ROBOCOPY is designed more towards backup and archiving operation, and XXCOPY has a wider scope in non-backup related file management operations.

 But…. there’s no free lunch in this world….. XXCOPY is a shareware (pay to get full functions on network capability) and ROBOCOPY had already bundled in Windows Vista (I’m using Ultimate edition).

Anyway, for more info about XXCOPY: