Adding Switches


    Adding Switches for Mapping

    Adding Switches Manually

    1. Click the Inventory -> Switches tab

    2. Click the Add Switch link available in the top right corner. This will open a dialog to accept the switch input.

    3. Select the Add Manually option.

    4. Select the Group to which the switch has to be added.

    5. Specify the Switch Name and its corresponding SNMP credential.

    6. Click the Add Switch button. The switch gets added under the Switches tab.

    7. The added switch will be automatically mapped in the background and the status is shown in the status column. 

    Importing Switch Inputs from a CSV File

    When you have a large number of switches in your network, adding switches one by one manually is a painful job. In such cases, importing the switch inputs from a csv file will be very handy. Create a csv file as below and import this file to the Switch Port Mapper tool.

     

    1. The CSV file should contain the following fields: Tree Hierarchy, Switch Name, SNMP Community, SNMP Version, Task Name, Subnet Address, Subnet Mask, User Name, Context Name, Authentication Protocol, Authentication Password, Encryption Protocol, and Encryption Password.

    2. Mandatory Fields:

      1. For SNMP V1 & v2: Switch Name, SNMP Community and SNMP Version

      2. For SNMP v3: Switch Name, SNMP Version and User Name

    3. If you have more than one subnets added for a switch you can add them as comma separated within double quotes. For example, "192.168.112.0, 192.168.111.0"

    4. All the subnets specified here should be subnetted to class C. This means that the first three octets should only be 255. This is to avoid unnecessary traffic.

     

    Sample CSV entry:

    Tree Hierarchy, Switch Name, SNMP Community, SNMP Version, Task Name, Subnet Address, Subnet Mask, User Name, Context Name, Authentication Protocol, Authentication Password, Encryption Protocol, and Encryption Password

    Zohocorp\ME\India,procurve2524,public,v1,First Floor,192.168.112.0,255.255.255.0

    Zohocorp\ME\India,192.168.109.4,public,v2,Admin Team,"192.168.113.0,192.168.113.128","255.255.255.128,255.255.255.128"

    Zohocorp\ME\USA,3com4400,public,v1,Test

    Zohocorp\ME\USA,foundry2402,public,v1,Default Group,10.1.23.0,255.255.255.128

    Zohocorp\ME\USA,catalyst2900,public,v2,First Floor,132.232.2.0,255.255.255.0

    Zohocorp\ME\UK,cisco2081,,v3,Default,,,authUser,auth,MD5,authUser,AES-128,oputils12

    Zohocorp\ME\UK,cisco0587,,v3,Default,"192.168.49.0,192.168.40.0","255.255.255.0,255.255.255.128",authUser1,auth1,MD5,authUser1

     

    To import this CSV file,

    1. Click the Add Switch link available in the Switches tab. This will open a dialog to accept the switch input.

    2. Select the Import From CSV option.

    3. Browse to select the CSV file. The CSV file should contain the Switch Name / IP Address, Switch Community, Group Name, Subnet Address, and Subnet Mask as comma separated values. The Subnet Address and Subnet Mask are optional. If you are not specifying the group, just add a comma after the switch community. When the Group Name is not specified, the switch gets added to the Default Group. If you specify a non-existing group, it gets created. Multiple switch inputs should be in a separate line.

    4. Click Import CSV.

    The switches gets added and the import details are displayed in the top. The Switch Port Mapper will scan five switches at a time and the remaining switches are shown as Yet to Scan. If any errors are obtained during scan, the same is shown as Scanning Failed. Clicking the failed count will show the details of the errors from where you can modify and scan them again.

     

    1. Only Switches and Hubs that support the BRIDGE-MIB can be mapped because device details for Switches and Hubs that do not support a BRIDGE-MIB cannot be discovered.

    2. Multiple devices may seem connected to the single port. This is because, if a Hub is connected to the Switch that is specified (Cascading) and multiple devices are connected directly to that hub, multiple devices appear as if they are connected to the same port of the switch.

     

    Discovering Switches

    In addition to adding switches manually or bulk import through a CSV file, you can also make OpUtils discover the swicthes automatically from the subnets that you have added in the IP Address MAnager tool. To discover the switches, follow the steps below:

    1. Click the Inventory -> Switches tab

    2. Click the Add Switch link available in the top right corner. This will open a dialog to accept the switch input.

    3. Select the Discover option.

    4. Enter the IP range to be discovered.

    5. Select the SNMP Credntial for scanning.

    6. When done, click Discover Switches

    Schedule Scanning of Switches

    Click Scheduler link to schedule periodic scanning of switches. While you schedule scanning, you can logically group the switches to a task and scan them separately. A switch cannot exist in more than one task.

    1. Click Scheduler link from top-right. This opens the schedules tasks and lists all the tasks that have been already created.

    2. Click Add Task to create a new task.

    3. Provide a name for the task and choose the switches to be added to this task. The "Available Switches" will list all the switches that have been added in the Switch Port Mapper tool.

    4. Select Enable from the scheduler combo and specify the interval to perform the scan:

      1. Hourly - to update every 6, 8, or 12 hours from the specified time

      2. Daily - to update everyday. You need to specify the starting time.

      3. Weekly - to update on specific day(s) in a week. You need to specify the starting time and the day(s) on which the update should happen.

      4. Monthly - to update on a specific day every month(s). You need to specify starting time, select a day and select a month/months.

      5. Once Only - to run the tool only once at the scheduled time.

    5. Click Save to save the changes.