Rigido
ADSM.ORG Senior Member
Hi,
for my everyday checks I use some scripts from the command line, something like:
With TSM v5 it's easy to have a "nice looking" output, it's sufficient to have a well sized window and you'll have something like:
Well, with v6 you'll have:
It looks like v5 will trim unnecessary blanks and v6 will not, I even tried to cast all columns as varchar but it looks like some columns aren't cast as I wanted.
Is there any better (and faster) way to have the same output on v6 as v5? Keep in mind that I'm talking about scripts that I use on the admin command line and not as external (so no dataonly etc.).
Thanks.
EDIT: While writing I said that looks like v6 doesn't "trim" so I even tried to ltrim(rtrim(COLUMN)) but it didn't work.
for my everyday checks I use some scripts from the command line, something like:
Code:
select NODE_NAME,PLATFORM_NAME,DOMAIN_NAME,TCP_NAME,TCP_ADDRESS,(CURRENT_DATE - date(LASTACC_TIME)) as LAST_ACC from NODES where NODE_NAME like upper('%$1%')
Code:
tsm: TSMU04>run qip test
NODE_NAME PLATFORM_NAME DOMAIN_NAME TCP_NAME TCP_ADDRESS LAST_ACC
------------------ ---------------- ------------------ ------------------ ------------------ --------
TESTSQL TDP MSSQL Win64 PD_SQL TIDBSTIM02WTST 10.248.164.82 665
Code:
NODE_NAME: IPTSVIL
PLATFORM_NAME: WinNT
DOMAIN_NAME: PD_BA
TCP_NAME: IPTSVIL
TCP_ADDRESS: 10.233.163.104
LAST_ACC: 0
Is there any better (and faster) way to have the same output on v6 as v5? Keep in mind that I'm talking about scripts that I use on the admin command line and not as external (so no dataonly etc.).
Thanks.
EDIT: While writing I said that looks like v6 doesn't "trim" so I even tried to ltrim(rtrim(COLUMN)) but it didn't work.
Last edited: