I am not trying to be dense, I swear, but that is exactly what the %u is for. Want the port named ##: xyzpdq then the bulk port field would look like this: %u: xyzpdq From your code it looks like you want it to be ## instead of %u ? From: racktables-users-bounce@xxxxxxxxxxxxx [mailto:racktables-users-bounce@xxxxxxxxxxxxx] On Behalf Of Timothy Wolgemuth Sent: Tuesday, June 15, 2010 9:08 AM To: racktables-users@xxxxxxxxxxxxx Subject: [racktables-users] bulk adding of Ports I wanted to be able to customize where in the "Local name" and "Visible label" the count appeared. Below is a diff of the changes that I made. You just put ## where you want the count to appear. diff interface-new.php interface-old.php 1144d1143 < echo "NOTE: Place a ## where you want the count to be in the Local name and Visible label<BR><BR>\n"; diff ophandlers-new.php ophandlers-old.php 378,379c378,379 < //if(strrpos($port_name, "%u") === false ) < //$port_name .= '%u'; --- > if(strrpos($port_name, "%u") === false ) > $port_name .= '%u'; 382,385c382 < $port_temp_name = str_replace("##", "$c", $port_name); < $port_temp_label = str_replace("##", "$c", $port_label); < // $result = commitAddPort ($object_id, @sprintf($port_name,$c), $port_type_id, @sprintf($port_label,$c), ''); < $result = commitAddPort ($object_id, $port_temp_name, $port_type_id, $port_temp_label, ''); --- > $result = commitAddPort ($object_id, @sprintf($port_name,$c), $port_type_id, @sprintf($port_label,$c), ''); Tim Wolgemuth Ryan Farrington Senior Systems Engineer MedAssets 5556 Tennyson Pkwy Suite 200 Plano TX 75024 Direct - 972-244-0312 Cell - 972-836-6431 The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers