HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- An HIDS question
Operating System - HP-UX
1833738
Members
2641
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
03-02-2005 03:06 AM
03-02-2005 03:06 AM
Hi,
I am currently testing and configuring HIDS and I am wondering if "*" works?
I would like to monitor specific subdirs in a file system, for example my directory tree is:
/andrew/u1/code/test1
/andrew/u1/code/test2
/andrew/u2/code/test1
/andrew/u2/code/test2
I only want to monitor changes made in "test1" subdir, but when I use: /andrew/*/code/test1
in Schedule Manager, I don't get any alerts.
Any help would be great.
Thanks
Andrew
I am currently testing and configuring HIDS and I am wondering if "*" works?
I would like to monitor specific subdirs in a file system, for example my directory tree is:
/andrew/u1/code/test1
/andrew/u1/code/test2
/andrew/u2/code/test1
/andrew/u2/code/test2
I only want to monitor changes made in "test1" subdir, but when I use: /andrew/*/code/test1
in Schedule Manager, I don't get any alerts.
Any help would be great.
Thanks
Andrew
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 06:38 AM
03-02-2005 06:38 AM
Solution
Andrew -
Please refer to p.126 (Unix Regular Expressions) in the v3.0 Admin Guide for good examples that will answer your question. This page also encourages you to refer to the regexp(5) man page. The last example on page 126 describes what you need to do. Try something like this:
^/andrew/u[1,2]/code/test1/
or something a bit more general such as
^/andrew/[^/]*/code/test1/
Be sure to anchor your RE at the beginning (^) and to specify the last slash at the end (also see examples for why this makes a difference).
When you specify "/andrew/*/code/test1" you are tryig to match 0 or more forward slahes and nothing else, so the "u1" or "u2" are not matched. Also, the subdirectory test11, test1hello, test123, etc... and its contents will also be matched unintentionally if you do not specify the trailing slash (/).
Pierre
Please refer to p.126 (Unix Regular Expressions) in the v3.0 Admin Guide for good examples that will answer your question. This page also encourages you to refer to the regexp(5) man page. The last example on page 126 describes what you need to do. Try something like this:
^/andrew/u[1,2]/code/test1/
or something a bit more general such as
^/andrew/[^/]*/code/test1/
Be sure to anchor your RE at the beginning (^) and to specify the last slash at the end (also see examples for why this makes a difference).
When you specify "/andrew/*/code/test1" you are tryig to match 0 or more forward slahes and nothing else, so the "u1" or "u2" are not matched. Also, the subdirectory test11, test1hello, test123, etc... and its contents will also be matched unintentionally if you do not specify the trailing slash (/).
Pierre
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2005 07:11 AM
03-02-2005 07:11 AM
Re: An HIDS question
Hi Pierre,
That worked perfectly.
Thanks very much.
Andrew
That worked perfectly.
Thanks very much.
Andrew
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP