kimmknight / PTBuilder

A Packet Tracer extension to allow coding of network creation (with or without AI)
4 stars 0 forks source link

I cant figure how to find the module slot for 3650-24PS multi layer switch #1

Open Noam-Alum opened 3 weeks ago

Noam-Alum commented 3 weeks ago

Hi there :wave:,

First off, I just want to say how much I love this extension! It’s something I’ve been wanting for a while and I’m thrilled you've created it.

I’m currently trying to run a simple script to create a topology, but I’m having trouble locating the module slots. Here’s the script I’m working with:

addDevice("R1", "1941", 250, 100);
addDevice("MLS1", "3650-24PS", 250, 200);
addModule("MLS1","1/0","GLC-T");
addLink("R1", "GigabitEthernet0/1", "MLS1", "GigabitEthernet1/0/1", "straight");

addDevice("S1", "2960-24TT", 300, 350);
addLink("MLS1", "GigabitEthernet1/0/2", "S1", "GigabitEthernet0/1", "cross");

addDevice("PC-A", "PC-PT", 300, 450);
addLink("S1", "FastEthernet0/1", "PC-A", "FastEthernet0", "straight");

addDevice("PC-B", "PC-PT", 400, 400);
addLink("S1", "FastEthernet0/2", "PC-B", "FastEthernet0", "straight");

addDevice("PC-C", "PC-PT", 450, 330);
addLink("S1", "FastEthernet0/3", "PC-C", "FastEthernet0", "straight");

addDevice("S2", "2960-24TT", 200, 350);
addLink("MLS1", "GigabitEthernet1/0/3", "S2", "GigabitEthernet0/1", "cross");

addDevice("PC-D", "PC-PT", 200, 450);
addLink("S2", "FastEthernet0/1", "PC-D", "FastEthernet0", "straight");

addDevice("PC-E", "PC-PT", 100, 400);
addLink("S2", "FastEthernet0/2", "PC-E", "FastEthernet0", "straight");

addDevice("PC-F", "PC-PT", 50, 330);
addLink("S2", "FastEthernet0/3", "PC-F", "FastEthernet0", "straight");

I’ve tried various slot notations (like 0/0, 0/0/0, and 0/1), but none seem to work :disappointed:.

Is there any documentation available on how to correctly locate the module slots? Your help would be greatly appreciated!

Thanks!

kimmknight commented 3 weeks ago

First off, I just want to say how much I love this extension! It’s something I’ve been wanting for a while and I’m thrilled you've created it.

Awesome! I didn't expect anyone else to ever use it. I've found a few issues I haven't fixed, but might take the time now.

I’m currently trying to run a simple script to create a topology, but I’m having trouble locating the module slots. Here’s the script I’m working with:

addDevice("R1", "1941", 250, 100);
addDevice("MLS1", "3650-24PS", 250, 200);
addModule("MLS1","1/0","GLC-T");
addLink("R1", "GigabitEthernet0/1", "MLS1", "GigabitEthernet1/0/1", "straight");

addDevice("S1", "2960-24TT", 300, 350);
addLink("MLS1", "GigabitEthernet1/0/2", "S1", "GigabitEthernet0/1", "cross");

addDevice("PC-A", "PC-PT", 300, 450);
addLink("S1", "FastEthernet0/1", "PC-A", "FastEthernet0", "straight");

addDevice("PC-B", "PC-PT", 400, 400);
addLink("S1", "FastEthernet0/2", "PC-B", "FastEthernet0", "straight");

addDevice("PC-C", "PC-PT", 450, 330);
addLink("S1", "FastEthernet0/3", "PC-C", "FastEthernet0", "straight");

addDevice("S2", "2960-24TT", 200, 350);
addLink("MLS1", "GigabitEthernet1/0/3", "S2", "GigabitEthernet0/1", "cross");

addDevice("PC-D", "PC-PT", 200, 450);
addLink("S2", "FastEthernet0/1", "PC-D", "FastEthernet0", "straight");

addDevice("PC-E", "PC-PT", 100, 400);
addLink("S2", "FastEthernet0/2", "PC-E", "FastEthernet0", "straight");

addDevice("PC-F", "PC-PT", 50, 330);
addLink("S2", "FastEthernet0/3", "PC-F", "FastEthernet0", "straight");

I’ve tried various slot notations (like 0/0, 0/0/0, and 0/1), but none seem to work :disappointed:.

Thanks for you script and for reporting this. I'll see if I can find you an answer in the next few days.

Is there any documentation available on how to correctly locate the module slots? Your help would be greatly appreciated!

There isn't but should be

Thanks!

Noam-Alum commented 3 weeks ago

Thank you so much!

kimmknight commented 3 weeks ago

In the case of your script above (using the 3650-24PS), the four SFP module slots are 2/0, 2/1, 2/2, and 2/3. So this works:

addModule("MLS1","2/0","GLC-T");

FYI I used the debug window to try different slot IDs until I found the one that worked:

From here you can enter individual commands and get immediate feedback (true = success, false = failed).

HOWEVER after a quick bit of testing, I can't seem to add the AC-POWER-SUPPLY to any slot (tried 0, 1, 0/0, 1/0 etc). I think the AC-POWER-SUPPLY used by the 3650 is a different type to the one used in other devices (type 4 for other devices, type 18 for the 3650). I need to investigate.

Also todo: Add a "Module Slots" page to the Wiki. Hopefully I can use some JS to interrogate the module slots of every device, grab the count of slots and the slot type.

Noam-Alum commented 1 week ago

In the case of your script above (using the 3650-24PS), the four SFP module slots are 2/0, 2/1, 2/2, and 2/3. So this works:


addModule("MLS1","2/0","GLC-T");

FYI I used the debug window to try different slot IDs until I found the one that worked:

  • Go to Extensions menu > Scripting > Configure PT Script Modules...

  • Click the Builder script module, then click Debug

From here you can enter individual commands and get immediate feedback (true = success, false = failed).

HOWEVER after a quick bit of testing, I can't seem to add the AC-POWER-SUPPLY to any slot (tried 0, 1, 0/0, 1/0 etc). I think the AC-POWER-SUPPLY used by the 3650 is a different type to the one used in other devices (type 4 for other devices, type 18 for the 3650). I need to investigate.

Also todo: Add a "Module Slots" page to the Wiki. Hopefully I can use some JS to interrogate the module slots of every device, grab the count of slots and the slot type.

You're the best!