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@lists.xensource.com
http://lists.xensource.com/xen-users