The whitespace is the blank line returned for each of those
nodes in your smartset which do not have a routerSysName.
That is, the non-routers. So to strip out those blank lines,
nvUtil l Cisco "%routerSysName%" | grep -v "^$"
Cordially,
Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Detroit
"Westphal,
Raymond" To: "NV List (E-mail)"
<nv-l@lists.tivoli.com>
<RWestphal@erac.c cc:
om> Subject: [nv-l] nvUtil
questions
06/20/2002 01:36
PM
Hello Everyone.
NV 7.1.2 on AIX 4.3.3
If you have a Cisco or other equipment collection (SmartSet), try this:
nvUtil l Cisco "%Selection Name%"
nvUtil l Cisco "%routerSysName%"
The output of the Selection Name version of the command contains no extra
characters. The line count of the output on both commands is the same but
the routerSysName nvUtil command includes a large amount of white space. Is
there an easy way within the nvUtil command to strip out these extraneous
spaces?
Thanks in advance.
Ray Westphal
Enterprise Rent-A-Car
---------------------------------------------------------------------
To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com
*NOTE*
This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)
|