Specifications
Book Title
Ridgeline Concepts and Solutions Guide
356
NOTE
The inv.bat, inv.sh, slot.bat, and slot.sh scripts retrieve information only from an Ridgeline 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 slotinventory.csv from the Ridgeline database whose login 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
This command will login using the default user name (admin) and the default password, and will
output the results to the file
output.csv in the user\scripts\bin directory.
● To export device information from the Ridgeline databases on the multiple servers under Windows,
edit the
servers.txt file in the user\scripts\config directory, then enter the following command:
msinv.bat -d -o devices.csv -s serverlist2.txt
Under Linux or Solaris, edit the servers.txt file in the user/scripts/config directory, then enter
the following command:
msinv.sh -d -o devices.csv -s serverlist2.txt
This command logs in to each of the Ridgeline servers specified in the file serverlist2.txt, using
the default login and password, and output the device information from these servers to the file
devices.csv. The devices.scv file is created in the user\scripts\bin directory.
The SNMPCLI Utility
The SNMPCLI utility provides three basic SNMP query capabilities, that can be used to access the
values of MIB objects kept by the SNMP agents of the devices you are managing. Accessing these