cancel
Showing results for 
Search instead for 
Did you mean: 

How to customize output in command line?

Amico88
Not applicable

Hi guys!

I wish to know if I can edit the standard output or the user mode output option in a command used in command line. For instance, I use "bpimagelist -bakcupid backupid" in command line on the server to identify in what tape is located certain image, but I did it on a batch with around 200 images at time, and report the logs in specified archive by me. So, if I could edit the output to show only some information about every image on the batch this would make my work of analyze so much easier. I already tried to use the -l, -L or even -U options, but any of them make the output or too confuse (for -l), too long (for -L) or, in the worst case, too short (for -U).

Anybody can help me?

1 ACCEPTED SOLUTION

Accepted Solutions

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

Hello

 

Use bpimagelist -l and then filter the fields to your requirement.

 

https://support.symantec.com/en_US/article.TECH5584.html

 

To filter the fields on windows you can use the FOR and findstr commands to manipulate the output.

 

Example of using FOR/findstr with bpimagelist.

https://www-secure.symantec.com/connect/forums/tape-policy-report

View solution in original post

3 REPLIES 3

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified
I don't have a system to test right now, but you may want to try -media instead of -L or -l or -U. See if this post helps: https://www-secure.symantec.com/connect/forums/bpimagelist-columns

RiaanBadenhorst
Moderator
Moderator
Partner    VIP    Accredited Certified

Hello

 

Use bpimagelist -l and then filter the fields to your requirement.

 

https://support.symantec.com/en_US/article.TECH5584.html

 

To filter the fields on windows you can use the FOR and findstr commands to manipulate the output.

 

Example of using FOR/findstr with bpimagelist.

https://www-secure.symantec.com/connect/forums/tape-policy-report

Genericus
Moderator
Moderator
   VIP   

Read the docs or the man pages, I had some crazy commands to extract the SLP names in one of my scripts, then was reviewing the man pages, and found nbstl -b - outputs the SLP name directly.

From "nbstl -L | grep -i name | grep Vault01 | cut -c38-" to "nbstl -b", LOL

Symantec likes to keep us on our toes, these change with NB versions, too.

Every time I upgrade, I have to redo my aliases, for added or removed features.

NetBackup 9.1.0.1 on Solaris 11, writing to Data Domain 9800 7.7.4.0
duplicating via SLP to LTO5 & LTO8 in SL8500 via ACSLS