WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] where does the log entry go ?

To: Xen Users <Xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] where does the log entry go ?
From: Anand Gupta <xen.mails@xxxxxxxxx>
Date: Tue, 7 Feb 2006 13:27:00 +0530
Delivery-date: Tue, 07 Feb 2006 08:08:01 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=YLrspzYh0/4mNhN24EYp6bcx/xgSR/vnlxhWhkfcX5zKJorMTlwmatnb63NxE7VrVSrVbJGJvBWSamrN50zfAJ1DfPq5o47OuW/lxgdlFmDftarP1LFK+lMymIAs6Ljys3Oizyv8a8AB0BOEtdpM3ak5TEjptKQAhKXKImQtj/I=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I was going through the vif- scripts in /etc/xen/scripts and find that they have log lines which should be logging information somewhere. However when i look in my /var/log/xend.log (debug enabled), i don't see those log entries. If it doesn't log in there, where does it log it then ?

I found a file in /var/log, xen-hotplug.log. However entries get written to this file only when i remove the priority of the log (with an error ofcourse).

Doing a tail on the file
usage: ifdown <device name>
usage: ifdown <device name>
usage: ifdown <device name>
logger: unknown priority name: daemon.ifconfig vm01 192.168.1.250 netmask 255.255.255.255 up.
/etc/xen/scripts/vif-route-xencp
logger: unknown priority name: daemon.arp -s 192.168.1.240 00:08:A1:50:FA:19 pub.
/etc/xen/scripts/vif-route-xencp
logger: unknown priority name: daemon.ip r a 192.168.1.240 dev vm01 src 192.168.1.250.
/etc/xen/scripts/vif-route-xencp
logger: unknown priority name: daemon.ifdown vm01.
/etc/xen/scripts/vif-route-xencp
usage: ifdown <device name>

1. The ifdown syntax is being shown in the log. Is this normal ? Would that mean the ifdown is not working / accepting the vif name as an interface ? I have named the domU as vm01 and thats what the interface is named. I tried to run ifdown vm01 on console and the same usage was returned to me.
To check in the vif-route script if the ifdown was actually getting the vif name, i put a log entry (without a priority ofcourse so it can turn up in xen-hotplug.log.

/etc/xen/scripts/vif-route
logger: unknown priority name: daemon.ifdown vm01.
/etc/xen/scripts/vif-route
usage: ifdown <device name>

Again the usage is displayed. Confused....

2. Where is the script actually logging the information to ?

If i place the following in the script it shows up in the file with error "logger: unknown priority name"
        log "ifconfig ${vif} ${main_ip} netmask 255.255.255.255 up"

However if i place a priority debug/info after log, the log entry dissapears. :(

--
regards,

Anand Gupta
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>