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/convert.pl
#!/usr/bin/perl -p
s/^\d+\.\d+/localtime $&/e;

Ctrl+D
. /var/convert.pl /var/squid/log/access.log |more

No Comments