- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- How to empty a log file in OpenVMS
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
тАО03-01-2005 04:22 AM
тАО03-01-2005 04:22 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 04:34 AM
тАО03-01-2005 04:34 AM
Re: How to empty a log file in OpenVMS
this depends on how your application uses that logfile.
You could create a new version of the file, then restart your application (if it keeps the file open all the time and appends to an existing logfile).
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 04:40 AM
тАО03-01-2005 04:40 AM
Re: How to empty a log file in OpenVMS
For the accounting file it is:
$ SET ACCOUNTING /NEW_FILE
this opens a new version.
For the operator log it is (on a trminal):
$ REPLY /ENABLE
$ REPLY /LOG
$ REPLY /DISABLE
again, a new version is created
For the error log:
$ SET DEFAULT SYS$ERRORLOG:
$ RENAME ERRLOG.SYS ERRLOG.OLD
a new file is automatically created
I don't have a VMS system handy at the moment, someone else will come up with the command to roll over the AUDIT log...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 04:44 AM
тАО03-01-2005 04:44 AM
Re: How to empty a log file in OpenVMS
$ SET AUDIT/JOURNAL=SECURITY/THRESHOLD=WARN=200
(to reset the space monitoring threshold and create a new smaller file)
$ SET AUDIT/SERVER=NEW_LOG
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 04:47 AM
тАО03-01-2005 04:47 AM
Re: How to empty a log file in OpenVMS
cp /dev/null sqlnet.log
but in VMS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 04:49 AM
тАО03-01-2005 04:49 AM
Re: How to empty a log file in OpenVMS
$ CREATE sqlnet.log
Volker.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 04:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-01-2005 04:59 AM
тАО03-01-2005 04:59 AM