Table 12
specifies the options you can use with these commands:
Table 12: Inventory script command options
Option
Value
-d
None
If present, the command will use the default EPICenter
password ("") and will not prompt for a password.
-n
EPICenter server port number
-o
Name of file to receive output. If you don't specify a path,
the file will be placed in the current directory
(user\scripts\bin).
-p
EPICenter user password
-u
EPICenter user name
-s
For the msinv.bat and msinv.sh commands only: Name
(and path) of file containing EPICenter server list
NOTE
The inv.bat, inv.sh, slot.bat, and slot.sh scripts retrieve information only from an EPICenter server that runs on the
same machine as the scripts.
Inventory Export Examples
The following examples illustrate the usage of these commands.
To export slot information to the file
●
is "admin123" and password is "sesame" under Windows, enter the following command:
slots.bat -u admin123 -p sesame -o slotinventory.csv
Under Linux or Solaris, enter the following command:
slots.sh -u admin123 -p sesame -o slotinventory.csv
This will not prompt for a password, and will output the results to the specified file.
To export device information to the console, after prompting for a password under Windows, enter
●
the following command:
inv.bat
Under Linux or Solaris, enter the following command:
inv.sh
This command will login with the default user name (admin), will prompt for the password, and
will output the results to the console.
To export device information to the console, using the default login and default password under
●
Windows, enter the following command:
inv.bat -d -o output.csv
Under Linux or Solaris, enter the following command:
inv.sh -d -o output.csv
EPICenter Concepts and Solutions Guide
from the EPICenter database whose login
slotinventory.csv
Inventory Export Scripts
Default
If -p option not present, prompts for
password
8080
output written to console (stdout)
""
admin
<epc_install_dir>\user\scripts\
config\servers.txt under Windows,
<epc_install_dir>/user/scripts/
config/servrs.txt under Linux or Solaris
243
Need help?
Do you have a question about the EPICenter Guide and is the answer not in the manual?