cancel
Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 7

MAC address table Report

Jump to solution

I'm trying to extend the Report.MAC address table Activity to support the Juniper EX switches.  Can anyone tell me what the variable type (string, array, etc) and element order, and delimiter I need to return to the main activity for it to be added into the table?  I, of course, can't see the main activity code since it is encrypted.  Thanks.

Tags (3)
0 Kudos
1 Solution

OK, cool.

It's a tab delimited string;

Each row in the string consists of the following;

Device Group, Device Name, MAC Address,MAC Type, VLAN ,Interface, Last Seen, First Seen, vbCRLF

Note the vbCRLF at the end of each row.

For the device group use cl.CurDevGroup

For the devicename use cl.CurDevName

View solution in original post

3 Replies
Level 12

What script are you using for the Juniper EX switches?

You can not extend an existing activity and so would need to write it as a custom activity.

http://www.kiwisyslog.com/help/cattools/act_creatingcustomactivity.htm

0 Kudos

The main activity script calls the same function in each device script file (in this case the function Activity_Report_MACAddressTable).  I'm creating a custom device script file and am including that function name.  I need the function to simply return the data the the correct format/order to the calling function (in the main activity script file) and it should include the juniper switch data in the final report.  

0 Kudos

OK, cool.

It's a tab delimited string;

Each row in the string consists of the following;

Device Group, Device Name, MAC Address,MAC Type, VLAN ,Interface, Last Seen, First Seen, vbCRLF

Note the vbCRLF at the end of each row.

For the device group use cl.CurDevGroup

For the devicename use cl.CurDevName

View solution in original post