Sample bat file, Sample bat file 101 – HP XP RAID Manager Software User Manual
Page 101

Using RAID Manager
101
Example:
C:\HORCM\etc\>set HORCM_CONF=C:\Documents and
Settings\RMadmin\horcm10.conf
C:\HORCM\etc\>set HORCMINST=10
C:\HORCM\etc\>set HORCM_EVERYCLI=1
C:\HORCM\etc\>horcmstart
horcmstart
must be executed without arguments.
Sample BAT file
A batch file can be useful for reestablishing user access after a system
reboot.
@echo off
echo Run at
Date /T
Time /T
rem (1) Allow a user to use HORCM_CMD by adding a
user_name to the physical drive
rem (1a) Add an user name to all physical drives
rem usage: chgacl /A:
c:\horcm\tool\chgacl /A:RMadmin Phys
rem (1b) Add a user name to one or more physical drives
rem usage: chgacl /A:
c:\horcm\tool\chgacl /A:RMadmin \\.\PHYSICALDRIVE0
\\.\PHYSICALDRIVE1
rem (2) Allowing an user to use -x mount/umount option
of the RM commands
rem (2a) Add the user name to ALL volumes
rem usage: chgacl /A:
c:\horcm\tool\chgacl /A:RMadmin Volume
rem (2b) Add the user name to one or more volumes
rem usage: chgacl /A:
c:\horcm\tool\chgacl /A:RMadmin
\\.\Volume{7dd3ba6b-2f98-11d7-a48a-806d6172696f}
rem (3) Allow a user to use the "-x portscan" option of
RM commands
rem (3a) Add a user name0 to access list of ALL SCSI
ports
rem usage: chgacl /A:
c:\horcm\tool\chgacl /A:RMadmin Scsi
rem (3b) Add the user name to Access List of one or more
SCSI ports
rem usage: chgacl /A:
c:\horcm\tool\chgacl /A:RMadmin Scsi0 Scsi1