Welcome! » Log In » Create A New Profile

Need a bach script using client_info

Posted by Anonymous 
Need a bach script using client_info
August 29, 2013 06:21AM
vexz wrote: [quote] [quote]Does anyone have a script out there that i can use to run the line command: client_info
against a file that contain a few hundred clients?

[/quote] [/quote]

[quote]I am not familiar with client_info but it sounds like you just need a pretty simple shell script.[/quote]note backticks around "cat client_info" below:

for client_host in `cat client_info` do echo ================== echo ${client_host} information: client_info "${client_host}" done

--
Dan Pritts
ICPSR Computing & Network Services
University of Michigan
Need a bach script using client_info
August 29, 2013 07:28AM
As you asked for a "batch" as opposed to a "bash" command line, maybe this will do what you want:
for /f "usebackq tokens=3" %a IN (`bpplclients -allunique -noheader`) do < at > bpclntcmd -hn %a

It is assumed that you have bin and admincmd in you %PATH% variable.

Many regards,

Pat Whelan
Principal Remote Product Specialist - NBU
Business Critical Services
Symantec Corporation 
www.symantec.com
                                                                          

Mobile: +44(0) 771 492 3085 (Prefered)
Office: +44(0) 118 943 6715
Email: patrick_whelan < at > symantec.com
                                                           

                                                                          

-----Original Message-----
From: veritas-bu-bounces < at > mailman.eng.auburn.edu [mailto] On Behalf Of vexz
Sent: 29 August 2013 03:52
To: VERITAS-BU < at > MAILMAN.ENG.AUBURN.EDU
Subject: [Veritas-bu] Need a bach script using client_info

Does anyone have a script out there that i can use to run the line command: client_info against a file that contain a few hundred clients?

Thanks

+----------------------------------------------------------------------
|This was sent by youngb31 < at > yahoo.com via Backup Central.
|Forward SPAM to abuse < at > backupcentral.com.
+----------------------------------------------------------------------

_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
_______________________________________________
Veritas-bu maillist - Veritas-bu < at > mailman.eng.auburn.edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
Sorry, you do not have permission to post/reply in this forum.