- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- syslog and facility level
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
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
тАО08-21-2006 11:06 PM
тАО08-21-2006 11:06 PM
syslog and facility level
Our application prints the syslog the following format on Solaris.
aaa [xxxx user.info] zzz
But when we try to migrate the application on HP-UX 11i from Solaris, the syslog can not generate the facility level that means like "use.info".
We add the syslog.conf and
/sbin/init.d/syslogd stop
/sbin/init.d/syslogd start
==================
...
*.err /var/adm/syslog/syslog.log
*.info /var/adm/syslog/syslog.log
==================
Is this the same mechanism between Solaris and HP-UX 11i?
or do we miss something procedure ?
Thanks,
-tash S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-21-2006 11:29 PM
тАО08-21-2006 11:29 PM
Re: syslog and facility level
what happens in the /var/adm/syslog/syslog.log file if you do:
logger -p user.info -t USER_INFO TESTINGINFO
logger -p user.warn -t USER_WARN TESTWARNING
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 01:15 AM
тАО08-22-2006 01:15 AM
Re: syslog and facility level
logger -p user.info "This is a test"
Here are the facility names in HP-UX:
KERN
USER
DAEMON
AUTH
SYSLOG
LPR
NEWS
UUCP
CRON
LOCAL0-7
And these are the priority names:
EMERG
ALERT
CRIT
ERR
WARNING
NOTICE
INFO
DEBUG
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 03:25 PM
тАО08-22-2006 03:25 PM
Re: syslog and facility level
Between facitily level and logging file HAVE to use TABs ONLY; spaces will not work.
Also sendig a -HUP to syslogd (or starting/stopping as you did) after any change in the sys.conf file is neccesary.
The concept is identical between the two UNIX flavors.
Cheers
Florin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2006 04:21 PM
тАО08-22-2006 04:21 PM
Re: syslog and facility level
The question is that How to show facility level which is similar to Solaris?
# logger -p user.info "This is a test"
===================
Aug 23 3:14:11 xxx-hp root: This is a test
===================
Here is Solaris running example.
# logger -p user.info "This is a test"
===================
Aug 23 3:22:41 xxxx root: [ID 702911 user.info] This is a test
===================
You can see ID and "use.info"
Thanks,
-tash S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2006 02:47 AM
тАО08-23-2006 02:47 AM
Re: syslog and facility level
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-19-2006 03:40 PM
тАО09-19-2006 03:40 PM
Re: syslog and facility level
Send output from the users command (see users(1) to the syslogd daemon, marked as level info and facility local0. The message is tagged with the string USERS:
users | logger -p local0.info -t USERS
cheers
florin