The following example migrates the domain varrius.com from Schema 1 to Schema 2, native mode, and adds Calendar service to all the users in the domain:
commdirmig -D "cn=Directory Manager" -w /opt/SUNWcomm/passwd -t 1 -X ldaphost -p 389 -b "o=isp" -r "o=internet" -d varrius.com -S cal -o