How to copy a Device Configuration from one slot to another

Advanced topic: How to make multiple-device configuration changes from a standard SNMP v1 application other than Transition Networks' Focal Point

Note: This section is useful only for advanced users that cannot or choose not to use the Focal Point application. Extensive SNMP expertise is assumed.

  1. Assign Group Strings to the Devices by setting the <model>Groups.<serial>.<slot> MIB variables of the devices you wish to configure, where <model> is the model name of the device, <serial> is the serial number of the cabinet in which the device is installed, and <slot> is the slot into which the device has been installed.

  2. Assign a Group Control String into the cpsGroupCtrl.0 MIB variable.

  3. Make configuration changes to the group by changing MIB variables in the form <model><column>.<d>.<d> , where <model> is the same model used in step 1, <model><column> is a column from the MIB table of <model> , and <d> is a placeholder integer, the value of which is ignored.

Note that the MIB variable <model>CfgMatch.<serial>.<slot> will take on the value match(1) or nomatch(2) depending on whether or not <model>Groups.<serial>.<slot> matches cpsGroupCtrl.0 . When cpsGroupCtrl.0 is null, <model>CfgMatch.<serial>.<slot> will have the value notApplicable(3) .

Example:

This example uses the CPSMM100's Command Line Interface as the SNMP interface.

The example begins with a cabinet with two CFETF100 Devices in slots 17 and 18. We wish to configure the Devices so that we can apply configuration changes to both of them at the same time. We will then disable Link Passthrough on both Devices in a single operation. (In actual practice, very little would be gained by defining a group with only two Devices in it. In actual practice, groups generally contain many more Devices.)

[su] CPSMM100> stath Point System Agent Summary polltime=7.33(7.30) >CABINET: Serial=170 model=CPSMC1800 desc="Local" > [ 4] CPSMM100-100 - Base Management Module ethernet_link=up ICIF=yes primary=WANT,CAN,IS Hardware="M=7 R=3" Software="000822S2" Serial=105 ip=10.10.10.1/255.255.255.0 gw=10.10.10.2 tntrip=0.0.0.0/0.0.0.0 trap_dest=0.0.0.0 cfgmatch=N/A groups="" *[ 17] CFETF1001310-100 - 100Mbps Twisted Pair to Fiber FiberLink=DOWN TPLink=DOWN Fault=NO Serial=662 TP_Act=NO Fiber_Act=NO Fast_Link_Pulse=ENABLED Link_Passthrough=ENABLED ConfigMode=SOFTWARE Enabled=DISABLED Pause=ENABLED SC Multimode Fiber [000D] RJ-45 [000A] cfgmatch=N/A groups="" *[ 18] CFETF1001310-100 - 100Mbps Twisted Pair to Fiber FiberLink=DOWN TPLink=DOWN Fault=NO Serial=668 TP_Act=NO Fiber_Act=NO Fast_Link_Pulse=DISABLED Link_Passthrough=ENABLED ConfigMode=SOFTWARE Enabled=DISABLED Pause=ENABLED SC Multimode Fiber [000D] RJ-45 [000A] cfgmatch=N/A groups="" [125] CPSMP100-100 - Instant Fail Over 120VAC Power Supply In_use=YES Power_OK=YES Mode=PRIMARY Load=13300mw Temp=25(C) Remote_fan=NO fan_fault(remote)=NO fan_fault(local)=NO Serial=10 ConfigMode=HARDWARE cfgmatch=N/A groups=""

Now that the Groups have been put into place, we should examine the "cfgmatch" indicator, which tells us how management operations will be applied.

  • " YES(1) " means that any operations performed on MIB variables for this device type will be applied to one or more groups of devices, and this device IS a member of one of those groups.

  • " NO(2) " means that any operations performed on MIB variables for this device type will be applied to one or more groups of devices, and this device IS NOT a member of any of those groups.

  • " NotApplicable(3) " means that the Group Controls string is NULL, and therefore SNMP operations are being applied to individual MIB variables in the standard way. i.e. Operations will be applied to this device only if the cabinet and slot indices specified match those of this device.

In the stath display above, the "cfgmatch" indications of both group members are "N/A" or " NotApplicable(3) ". This is because the Group Control String is currently null, and therefore no evaluation of Device Group Strings is being performed. When we insert a Group Control String in the following step, the "cfgmatch" indications of all Devices with a matching Device Group String changes to " YES(1) ":

[su] CPSMM100> set=cpsgroupctrl.0,string,mygroup SNMP: SET [10.10.10.196] id=0 ind=0 cpsGroupCtrl.0 Octet String [7/0x7] "mygroup" [su] CPSMM100> stath Point System Agent Summary polltime=7.31(7.24) >CABINET: Serial=170 model=CPSMC1800 desc="Local" > [ 4] CPSMM100-100 - Base Management Module ethernet_link=up ICIF=yes primary=WANT,CAN,IS Hardware="M=7 R=3" Software="000822S2" Serial=105 ip=10.10.10.196/255.255.255.0 gw=10.10.10.2 tntrip=0.0.0.0/0.0.0.0 trap_dest=192.168.0.100 cfgmatch=NO groups="" *[ 17] CFETF1001310-100 - 100Mbps Twisted Pair to Fiber FiberLink=DOWN TPLink=DOWN Fault=NO Serial=662 TP_Act=NO Fiber_Act=NO Fast_Link_Pulse=ENABLED Link_Passthrough=ENABLED ConfigMode=SOFTWARE Enabled=DISABLED Pause=ENABLED SC Multimode Fiber [000D] RJ-45 [000A] cfgmatch=YES groups="grpa mygroup grpb" *[ 18] CFETF1001310-100 - 100Mbps Twisted Pair to Fiber FiberLink=DOWN TPLink=DOWN Fault=NO Serial=668 TP_Act=YES Fiber_Act=YES Fast_Link_Pulse=DISABLED Link_Passthrough=ENABLED ConfigMode=SOFTWARE Enabled=DISABLED Pause=ENABLED SC Multimode Fiber [000D] RJ-45 [000A] cfgmatch=YES groups="grpy mygroup grpz" [125] CPSMP100-100 - Instant Fail Over 120VAC Power Supply In_use=YES Power_OK=YES Mode=PRIMARY Load=13200mw Temp=25(C) Remote_fan=NO fan_fault(remote)=NO fan_fault(local)=NO Serial=10 ConfigMode=HARDWARE cfgmatch=NO groups=""

In this example we selected a single group called "mygroup" to apply changes to, but more complex expressions are permitted. (You may add as many members as you like to a group, and you may add a single device to as many groups as you like. Both the Group Control String and the Device Group String have a maximum length of 63 characters.)

Now, when we apply SNMP changes, they are applied to all Devices in the "mygroup" group. The Cabinet and Slot indices must be present in the request, but their values are ignored.

When we set cfetf100LinkPassThrough.0.0 to Disabled(2) , the change is applied to each of the CFETF100 devices in the current group rather than to the non-existent cabinet and slot 0[0]:

[su] CPSMM100> set=cfetf100linkpassthrough.0.0,integer,2 SNMP: SET Config. Mgmt. change applied to 170[17], status = noError SNMP: SET Config. Mgmt. change applied to 170[18], status = noError SNMP: SET [10.10.10.196] id=0 ind=0 cfetf100LinkPassThrough.170.18 Integer [4/0x4] 2/0x2 [su] CPSMM100> stath Point System Agent Summary polltime=7.30(7.64) >CABINET: Serial=170 model=CPSMC1800 desc="Local" > [ 4] CPSMM100-100 - Base Management Module ethernet_link=up ICIF=yes primary=WANT,CAN,IS Hardware="M=7 R=3" Software="000822S2" Serial=105 ip=10.10.10.196/255.255.255.0 gw=10.10.10.2 tntrip=0.0.0.0/0.0.0.0 trap_dest=192.168.0.100 cfgmatch=NO groups="" *[ 17] CFETF1001310-100 - 100Mbps Twisted Pair to Fiber FiberLink=DOWN TPLink=DOWN Fault=NO Serial=662 TP_Act=NO Fiber_Act=NO Fast_Link_Pulse=ENABLED Link_Passthrough=DISABLED ConfigMode=SOFTWARE Enabled=DISABLED Pause=ENABLED SC Multimode Fiber [000D] RJ-45 [000A] cfgmatch=YES groups="grpa mygroup grpb" *[ 18] CFETF1001310-100 - 100Mbps Twisted Pair to Fiber FiberLink=DOWN TPLink=DOWN Fault=NO Serial=668 TP_Act=NO Fiber_Act=NO Fast_Link_Pulse=DISABLED Link_Passthrough=DISABLED ConfigMode=SOFTWARE Enabled=DISABLED Pause=ENABLED SC Multimode Fiber [000D] RJ-45 [000A] cfgmatch=YES groups="grpy mygroup grpz" [125] CPSMP100-100 - Instant Fail Over 120VAC Power Supply In_use=YES Power_OK=YES Mode=PRIMARY Load=13500mw Temp=25(C) Remote_fan=NO fan_fault(remote)=NO fan_fault(local)=NO Serial=10 ConfigMode=HARDWARE cfgmatch=NO groups=""

The Group Control String must be set back to NULL to allow normal single-device management operations.

[su] CPSMM100> set=cpsgroupctrl.0,str, SNMP: SET [10.10.10.196] id=0 ind=0 cpsGroupCtrl.0 Octet String [0/0x0] "" [su] CPSMM100>