|
The tw_remove_darkspace utility enables you to remove any previously-discovered Dark Space DiscoveryAccess nodes from the datastore.
BackgroundOriginally BMC Atrium Discovery kept all nodes, including dark space nodes. This Dark Space Suppression scheme was called Keep All and is now deprecated. The tw_remove_darkspace utility removes these extra nodes immediately; although they would be removed as usual over a period of time during DDD aging. When an endpoint is discovered and there is no response, it is considered NoResponse. The system traverses back along the complete DiscoveryAccess chain and if it finds any DiscoveryAccess with an associated device then the endpoint is still considered NoResponse. It may be, for example, that the machine is temporarily down. Where no associated device is found, the endpoint is then considered dark space and the subsequent behavior depends on the dark space removal setting. This may be either:
An effect of DDD aging is that an endpoint, which at one point in time had an associated device, can become a chain of no response DiscoveryAccesses. So, tw_remove_darkspace may find new dark space that it can remove, however, this would have been removed automatically when the endpoint is next scanned. If an endpoint was associated with an inferred device (Host, MFPart, NetworkDevice, Printer) at any time it remains connected via an AccessFailure until the inferred device is removed, even if that device has changed endpoints. UsageRun tw_remove_darkspace while the services are running. Existing discoveries can be running while you execute the utility. When run, the utility stops reasoning, removes dark space, and then restarts reasoning. You might notice a pause in any existing discoveries while the utility runs. The utility outputs the results in the tw_remove_darkspace.log file. To use the utility, type the following command at the $TIDEWAY/bin/ directory: tw_remove_darkspace [options] where options are either the command described in the following table or the standard, inherited options detailed in Using command line utilities.
User exampleIn the following example, the utility is run with no options to remove dark space DA nodes from the datastore. $TIDEWAY/bin/tw_remove_darkspace Password: system ------------------------------------------------------------------------------ WARNING: Dark space removal may take considerable time to complete. WARNING: Please be patient. ------------------------------------------------------------------------------ Stopping Reasoning processing events Checking for dark space Found 113 IPs to check Checking IPs 0 to 112 113 of which are dark space Completed removal of dark space DiscoveryAccess nodes Check for unconnected DiscoveryRunsNo unconnected DiscoveryRuns Restarting Reasoning processing events ------------------------------------------------------------------------------ Dark space removal complete. |

1 Comment
comments.show.hideMay 03, 2012
Marko Vlaovic
Since the command could run for a longer period of time, maybe it would be good to provide more useful example:
running
allows you to
a) run the command in the background (to get the prompt back so you can exit the session in a normal manner) (&)
b) exit the current session and go home without the need to leave your terminal open yet keep the command running (because by default exiting your session terminates all running commands) (nohup)
c) push the password to a command (since the "run in background" option & provides no password input, and if you can't provide the password, the command fails) (--password)
Once the command is done, or later when you log back in to ADDM CLI, simply check the /command_starting_dir/nohup.out file or /log/tw_remove_darkspace.log for results
I have run the
nohup tw_remove_darkspace
because at that time i didn't know the --password option was available. since "&" option prevents me from entering the password, i had to omit "&" and enter the password, however once the command started i had to escape back to prompt to get myself to log out from the session.
The first example should be the best choice.
Marko