The agent uses the db2gcf program to stop a DB2 database partition. For a database with only one partition, it stops the instance. The command is:
su $DB2InstOwner -c "$InstHome/sqllib/bin/db2gcf -d -i $DB2InstOwner -p $nodenum