Automation Knowledge Base

C_DOWN magic whatodo

Explanation

Shuts down the chassis, and either restarts it in a clean state or leaves it powered off.

Summary

set only, value types: I,B

Parameters

magic: integer, must be the special value -1480937026.

whattodo: coded byte, what to do after shutting chassis down: RESTART POWEROFF

Example

C_DOWN -1480937026 RESTART

C_TRAFFIC on/off moduleA portA ……. moduleX portX

Explanation

Starts or stops the traffic on a number of ports on the chassis simultaneously. The ports are identified by pairs of integers (module port) separated by white space.

Summary

set only, value types: B(0=OFF,1=ON),I*

Parameters

on/off: byte, determines if traffic is stopped (off) or started (on).

moduleX portX: two integers, specifies one port on a module, which should be stopped/started.Note: From Release 57.1, if any of the specified packet sizes cannot fit into the packet generator on any of the specified ports, this command will return FAILED and not start the traffic on those ports.

Example

(starts traffic on module/port 0/0, 3/1, 3/2 and 5/4)

C_TRAFFIC ON 0 0 3 1 3 2 5 4

C_TRAFFICSYNC on/off timestamp moduleA portA …

Explanation

Works just as the C_TRAFFIC command described above with an additional option to specify a point in time where traffic should be started. This can be used to start traffic simultaneously on multiple chassis.

Note: This requires that the chassis in question all use the TimeKeeper option to keep their CPU clocks synchronized.

Summary

 set only, value types: B(0=OFF,1=ON),L,I*

Parameters

on/off: byte, determines if traffic is stopped (off) or started (on).

timestamp: long integer, the time where traffic should be started, expressed as the number of seconds since January 1 2010, 00:00:00. To get the current timestamp of the chassis, execute “C_TIME ?”. Then add a number of seconds to the value fetched in order to generate traffic at that time.

moduleX portX: two integers, specifies one port on a module, which should be stopped/started.Note: From Release 57.1, if any of the specified packet sizes cannot fit into the packet generator on any of the specified ports, this command will return FAILED and not start the traffic on those ports.

Example

C_TIME 189200000

(starts traffic on module/port 0/0, 3/1, 3/2 and 5/4 at 10 seconds later)

C_TRAFFICSYNC ON 189200010 0 3 1 3 2 5 4

C_FLASH onoff

Explanation

Make all the test port LEDs flash on and off with a 1-second interval. This is helpful if you have multiple chassis mounted side by side and you need to identify a specific one.

Summary

set and get, value type: B

Parameters

onoff: coded byte, whether all test port LEDs are blinking: OFF ON

Example

C_FLASH OFF