Below is the API to create PIM router
sth::emulation_pim_config\
-mode create\
-hello_max_delay 5 \
-prune_delay_enable 0 \
-c_bsr_rp_addr 192.0.0.1\
-c_bsr_rp_holdtime 150\
-c_bsr_rp_priority 0\
-c_bsr_rp_mode create\
-port_handle $port1\
-hello_interval 30 \
-ip_version 4 \
-bs_period 60 \
-hello_holdtime 105 \
-dr_priority 1 \
-join_prune_interval 60 \
-bidir_capable 0 \
-pim_mode sm \
-join_prune_holdtime 210 \
-type remote_rp \
-c_bsr_priority 1 \
-router_id 192.0.0.1 \
-mac_address_start 00:10:94:00:00:01 \
-intf_ip_addr 192.85.1.3 \
-intf_ip_prefix_len 24 \
-neighbor_intf_ip_addr 1.1.1.1
Also attached a sample script