MACRO petattack

Instructs the pet to attack.
 /petattack [options] target
== Usage ==
== Arguments ==
;target : unitId or name of a nearby hostile entity to attack. If not specified, the pet will attack your current target.
== Details ==
* If you instruct your pet to attack a PvP-flagged target, you will become PvP flagged.
== Examples ==
 /petattack [@targettarget]
 /petattack targettarget
Both of these will tell your pet to target your target's target (e.g. If you have a friendly target that is attacking a hostile target.)
 /petattack [target=focustarget]
This will tell your pet to target your focus' target (e.g. If you have a friendly target on /focus, and it will attack their target.)