How to specify value of -subjName argument when running report via command line (Legacy KB ID CNC TS26288 )

Document ID : KB000023375
Last Modified Date : 14/02/2018
Show Technical Document Details

Question: What is the switch for –subjName when running a report from command line

Answer: In eHealth distributed environment the value of -subjName is specified as 


In eHealth stand-alone environment the value of -subjName is specified as


Here is how you can get the machine_id of your eHealth system in eHealth distributed environment.
On the DC (Distributed Console), run
   nhisql "select machine_id, name from nh_machine;"
To get the element id, in eHealth distributed environment login to the poller (cluster member) of the concern element, in eHealth standalone environment login to the eHealth system and run
   nhExportConfig -dciOut export.dci
And then search for the element entry in export.dci. The 3rd column entry on the line,i.e. 1000099, is the element id.

99,Alice-RH,1000099,,,,"Cisco Internetwork Operating System Software IOS (tm) 3700 Software (C3725-IK9S-M), Version 12.3(10), RELEASE SOFTWARE (fc3)Copyright (c) 1986-2004 by cisco Systems, Inc.Compiled Mon 16-Aug-04 23:05 by kellythw","",,"Core Router Stats",,,,cisco-rh-rtr.mtf,,blabla!,,,"Router",JMX0820L4M8,,,,,"concord, ciscoPing",,,,,Alice-RH,,cisco-rh-rtr.mtf,Alice-RH,,,,,,,9,,,,,,,,pst8pdt,,00:0F:F7:72:D0:40,,,,,,,,,,259728283,,alice,,,"453d1de4000b71b0",,,,xxxxx!,,, 



Please refer to How to run a report from a command line for more details about how you can use nhReport command

Related Issues/Questions:
How to specify value of -subjName argument when running report via command line
What are the numbers shown as -subjName of nhReport command

Problem Environment:

(Legacy KB ID CNC TS26288 )