- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Creating new log files
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
Forums
Discussions
Discussions
Discussions
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
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
02-20-2002 05:56 PM
02-20-2002 05:56 PM
Creating new log files
How do i create this??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 06:03 PM
02-20-2002 06:03 PM
Re: Creating new log files
This is what I am using to get information from Cisco Routers:
#!/bin/sh
{
for i in rtr1 rtr2 rtr3 rtr4
do
telnet $i < login > /tmp/login.log
cat /tmp/login.log | grep -v Trying | grep -v Connect | grep -v Escape | grep
-v Unauth | grep -v User | grep -v Password | grep -v exit | grep -v Local
done
} > /logging/rtr.log
and the login is:
show standby bri
exit
Hope this helps.
Kenny.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 06:11 PM
02-20-2002 06:11 PM
Re: Creating new log files
router.
conf t
logging xxx.xxx.xxx.xxx (the IP of your Unix box)
logging trap warnings
alerts
critical
etc. (level of the alert)
All of the differnet levels are stated in config guide, or on the CD.
Next, on the Unix box you need to provide the following statement in your
/etc/syslog.conf
local7.debug /var/adm/cisco.log
(note: there are other syslog levels that can be used)
Then
kill -HUP `cat /var/run/syslog.pid`
and you should
be done. Don't forget to use tabs instead of spaces between the entries in syslog.conf.
Ron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2002 06:27 PM
02-20-2002 06:27 PM
Re: Creating new log files
Thanks. I have been using the same. May be I used space bar for tabs. But again..how do i set different files for differnt devices
local7.debug /var/adm/cisco.log
Is local7.debug to be used for other devices...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2002 06:36 AM
02-21-2002 06:36 AM
Re: Creating new log files
Ron