solaris 11 re-ip process... root@sunbox:# svcs svc:/network/physical:nwam STATE STIME FMRI disabled Nov_03 svc:/network/physical:nwam yes. not using nwam. i was smart. for once. make sure you have ncp turned off. you never need it. really. root@sunbox:# netadm enable -p ncp DefaultFixed root@sunbox:# ipadm show-addr ADDROBJ TYPE STATE ADDR lo0/v4 static ok 127.0.0.1/8 net0/v4 static ok 192.168.10.66/22 lo0/v6 static ok ::1/128 net0/v6 addrconf ok fe80::9a4b:e1ff:fe7c:e268/10 we're changing the ip address and mask. one line it: root@sunbox:# ipadm delete-addr net0/v4 ; ipadm create-addr -T static -a 10.128.10.66/20 net0/v4 ; route -p add default 10.128.10.1 update dns. yissss: svccfg -s network/dns/client setprop config/search = astring: ("string.com" "anotherstring.com") setprop config/nameserver = net_address: (10.128.10.10 10.128.10.15) select network/dns/client:default refresh quit
Friday, December 21, 2012
re-ip re-ip re-ip sol11.
adventures in exim or mail apocalypse
whoopsies!
i renumbered a range of systems, but failed to edit my exim conf file to allow relaying from the new subnet... the messages were first bounced when i failed to add the interface. and then frozen when i failed to add the new network.
hoo hum.
those relays are defined here:
unfreeze a single message:
i renumbered a range of systems, but failed to edit my exim conf file to allow relaying from the new subnet... the messages were first bounced when i failed to add the interface. and then frozen when i failed to add the new network.
hoo hum.
those relays are defined here:
dc_relay_nets='net/20;net/24'another interface added:
dc_local_interfaces='127.0.0.1:ww.xx.yy.zz:ww.xx.yy.zz'and now the good stuff...
unfreeze a single message:
exim -Mt messageidunfreeze the entire queue and resend:
exim4 -qffunfreeze the entire queue and force resend:
mailq | grep frozen | awk '{print $3}' | xargs exim -v -Mremove all frozen messages:
exiqgrep -z -i | xargs exim -Mrmto watch the fun, open up another terminal and
tail -f -n 20 /var/log/exim4/mainlogcorrupt database:
/usr/sbin/exim_tidydb -t 1d /var/spool/exim retry > /dev/null /usr/sbin/exim_tidydb -t 1d /var/spool/exim reject > /dev/null /usr/sbin/exim_tidydb -t 1d /var/spool/exim wait-remote_smtp > /dev/null
Thursday, December 13, 2012
Subscribe to:
Posts (Atom)