- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: search/exclude issue
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 06:18 AM
тАО11-24-2009 06:18 AM
I'm trying to perform a search excluding GLOBAL_SALES*.COM with the following symbol:
CHECKINFO :== pipe search sy0:[operator.logs]opslog1.log/exclude=GLOBAL_SALES*.COM "''f$cvtime(,"ABSOLUTE","DATE")'","''
f$cvtime("YESTERDAY","ABSOLUTE","DATE")'"|search sys$pipe: info
But it's not recognising the 'exclude='.
Any super brains see what I'm doing wrong?
Many thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 06:29 AM
тАО11-24-2009 06:29 AM
Re: search/exclude issue
How can you tell: Error message? get all?
What would you like to exclude?
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 06:33 AM
тАО11-24-2009 06:33 AM
Re: search/exclude issue
dir sy0:[operator.logs]opslog1.log
gives an error message or shows one or several files ?
And the shorter command
search sy0:[operator.logs]opslog1.log/exclude=GLOBAL_SALES*.COM "''f$cvtime(,"ABSOLUTE","DATE")'","''
f$cvtime("YESTERDAY","ABSOLUTE","DATE")'"
shows what ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 06:43 AM
тАО11-24-2009 06:43 AM
Re: search/exclude issue
To expand on someone else's question, if you
$ DIR SY0:[OPERATOR.LOGS]OPSLOG1.LOG
does it show any global_sales*.com?
So what are you really trying to do?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 06:44 AM
тАО11-24-2009 06:44 AM
Re: search/exclude issue
It is currently ignoring the '/exclude=GLOBAL_SALES*.COM, as jobs named 'Global_Sales*.com' are still appearing.
I hope this is clearer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 06:50 AM
тАО11-24-2009 06:50 AM
Re: search/exclude issue
Your command provides a list which includes all logmessages, not just "Info", and also doesn't exclude 'Global_Sales*.com'.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 06:53 AM
тАО11-24-2009 06:53 AM
SolutionIf you want to exclude matching strings within files as I am guessing is the case, you'll need to use a series of SEARCH commands and some with /MATCH=NOT or similar such.
I've switched to grep a while back. Far more cryptic, but also far more capable than SEARCH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 07:06 AM
тАО11-24-2009 07:06 AM
Re: search/exclude issue
sea sy0:[operator.logs]opslog1.log /out=1.out
sea/match=NAND/out=2.out 1.out info, GLOBAL_SALES
sea 2.out info
(just a hint)
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-24-2009 01:47 PM
тАО11-24-2009 01:47 PM
Re: search/exclude issue
Just an aside... please make sure you realise that the references to F$CVTIME are resolved at the time the symbol is defined, not at the time you enter the CHECKINFO command.
I can't think of a way to substitute variable dates inside a symbol, other than executing a procedure.
(oh, and I tend to agree with Hoff, grep blows SEARCH away).