I find the command findstr to work as an almost acceptable replacement for grep. I use FOR FINDSTR ECHO TYPE commands extensively. I have added the GNU windows release of grep and am looking to add gawk. Cygwin is not on the systems yet but I haven't looked at calling scripts through that util yet.
John Trainer
"Spearman, David"
<[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 12/07/2005 01:09 PM |
|
grep is not available on windows however one can download cygwin32 or posix windows/unix commands off the web. We use posix, works fine. Just make sure you path it.
David Spearman
County of Henrico, Va.
-----Original Message-----
From: Chapman, Scott [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 07, 2005 4:04 PM
To: Winter, Todd; Spearman, David; veritas-bu@mailman.eng.auburn.edu
Subject: RE: [Veritas-bu] Obtaining NB client host properties from command line
Is bpgetconfig what you are looking for? Maybe, "bpgetconfig -M <client-name> | grep -i exclude" . . . I assume grep is available on windows?
____________________________________________________________
Scott Chapman
Insurance Corporation of British Columbia - Victoria
ph: 250.414.7650 cell: 250.213.9295
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Winter, Todd
Sent: Wednesday, December 07, 2005 12:37 PM
To: Spearman, David; veritas-bu@mailman.eng.auburn.edu
Subject: RE: [Veritas-bu] Obtaining NB client host properties from
command line
That doesn’t seem to work.
All I get back when I use the bpclient command is the client name
and an empty ip address field. No detailed settings for the client.
Todd Winter
Intel Corp.
D1C Automation -
Infrastructure Group
[EMAIL PROTECTED]
From: Spearman, David [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 07, 2005 11:20 AM
To: Winter, Todd
Subject: RE: [Veritas-bu] Obtaining NB client host properties from command line
Try the bpblient command
bpclient - L -client xxxxxx where xxxxx is th eclient name
David Spearman
County of Henrico, VA.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Winter, Todd
Sent: Wednesday, December 07, 2005 2:00 PM
To: veritas-bu@mailman.eng.auburn.edu
Subject: [Veritas-bu] Obtaining NB client host properties from command line
Is there a way to get Netbackup client host properties from the command line? I’m looking for something similar to bppllist (which spits out all the settings for a policy). In particular I’m interested in querying clients for their exclude lists via command line.
BTW, my environment is all NB 4.5 on Windows 2000.
Thanks…
Todd Winter
Intel Corp.
D1C Automation - Infrastructure Group
[EMAIL PROTECTED]