cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
504
Views
0
Helpful
1
Replies

Migrating DFM data from LMS 3.1 to LMS 4.2.3

cwallin
Level 1
Level 1

Hello, I need to migrate DFM alarm settings data from LMS 3.1 to LMS 4.2.3 and I want to use this method, http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_device_fault_manager/3.1/user/guide/useAAD.html#wp1433848 , to extract the data from 3.1 and then inport it into 4.2.3.

I successfully performed it for IP settings, it was easy since the data format was the same.

But the format differs quite alot for Interface and Port data, here is an example:

export from LMS 3.1

IF-hostname/17 [Gi0/0.524] [10.55.254.3]; INTERFACE:;IF-hostname/17; MANAGED_STATE:;EXPLICITLY_UNMANAGED

export from LMS 4.2.3

INTERFACE:IF-hostname/17 MANAGED_STATE:MANAGED GigabitEthernet0/0.524

It looks like I have convert interface names, sort and delete stuff to make it look the same.

Have anyone done this before and can give me some advice?

BR /Crille

1 Reply 1

cwallin
Level 1
Level 1

Just want to report back that I found an answer to this, it is enough to import this string:

INTERFACE:IF-hostname/17 MANAGED_STATE:MANAGED (or EXPLICITLY_UNMANAGED).

So what i did was use Notepad++ and regexp to filter out the needed data:

Search for: ^.+(INTERFACE.+$)

Replace with: \1

and then another replace for ";" with nothing.

Then I ended up with:

INTERFACE:IF-hostname/17 MANAGED_STATE:EXPLICITLY_UNMANAGED

which could be imported with the mentioned scripts in my original post.