08-12-2011 01:42 AM
Hi there,
I'm searching for a CLI-Command (Solaris) to give me same information as "Inventory and Collection Status" Report in Web-GUI
[Web-GUI URL: https://<server>/rme/devStatus.do]
As we are actually adding devices via dcrcli-script it would help a lot getting information regarding collection of inventory/config data via CLI to
bypass Web-GUI.
I searched thru cwcli but wasn't able to find a suitable subcommand equal to the GUI-Report.
Anybody out there able to give me a hint?
Thanks for any feedback
Lothar
08-12-2011 02:40 AM
Hi,
Kindly refer to the following user Guide URL for the cwcli utilities which describe how to get the Inventory report generated from CLI :-
refer to overview of Overview :- cwcli invreport command.
Hope it helps,
Many Thanks,
Gaganjeet
08-12-2011 04:47 AM
Hi Chugh,
thanks for the provided link, unfortunately with cwcli (regarding the doc) there is no similar output possible
as shown in UI with "Inventory and Config Collection Status" Report.
I need a CLI output for Inventory and Collection Fetch process and its results with timestamp to prove
correct adding of new devices via CLI.
maybe any perl-scripts available giving similar output
Best Regards
Lothar
08-12-2011 04:56 AM
Hi,
Thanks for the update. So, are you looking for update for the Inventory job status from time to time and details for the jobs.
Correct me if I am wrong.
Many Thanks,
Gaganjeet
08-14-2011 11:29 PM
Hi Chugh,
as in the Web-UI report available I need a possiblity getting information about successful or failed inventory and config collection after adding a new device via CLI (dcrcli).
This report only run for the newly added devices.
This would help a lot, as we add devices via CLI and actually then have to connect to Web-UI 'Inv&ConfigColl Report' for getting status of inventory and config collection.
Using CLI is very time-saving for us.
Best Regards
Lothar
08-17-2011 10:50 PM
Hi Chugh,
I searched around the RME-DB with dbreader tool and was able to put a SQL-Query together
to output alsmost the same information provided in WEB-UI-Interface.
Putting these Query in a Perl-Script that connects with DB and executes SQL-Query solved the problem.
For everybody trying the same here's the SQL-Query (remarks and update are welcome).
my $STATUS = "select C.ElementName, B.Inventory_Collection_Status, B.Failure_Reason, B.Last_updated_time, A.Status, A.Comments, A.UpdatedAt from DCMA_Archive_Status A, Dev_Mgmt_Status B, NetworkElement C where C.ElementName like '$device_name' AND C.NetworkElementID = A.NetworkElementID AND C.NetworkElementID = B.NetworkElementID";
Thanks for your support
Lothar
08-17-2011 11:21 PM
Hi Lothar,
I rated it very helpful
Kindly confirm if you are able to see the report for the newly added device from CLI.
many Thanks,
Gaganjeet
08-18-2011 02:56 AM
Hi Lothar,
great that you posted the query - which makes it much easier for others to do similar things.
One comment I have is, if you need this info for multiple or all devices instead of just a single one, to use the Open Database Schema to get the info for all devices at once and lookup in the result the devices you need. You can also use it for remote access of the DB views.
This should contain the Inventory Information needed.
Martin
09-12-2011 10:56 PM
Hi Gaganjeet,
yes with performing the SQL-Query I was able getting information about the
Inv/Config collection status.
Some cosmetics in output and the CLI-Report is done.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: