Archive for May, 2011

Solaris: get global zone name from non-global zone

run the netstat -p from non-global zone, get the ip information.
check the ip. one of the ip should be global zone’s ip.

there is any commands to check ? No.
so we’d better keep a good record, like motd. or cmdb.


No Comments

short scripts: convert squid timestamp

cat > /var/
#!/usr/bin/perl -p
s/^\d+\.\d+/localtime $&/e;

. /var/ /var/squid/log/access.log |more

No Comments