Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeEmacs
%hash = (
  'OpmantekGoldCoast-Global1Global' => {
    'Customer' => 'Opmantek-Global',
    'Location' => 'Bundall, Queensland',
    'Group' => 'GoldCoast'
  },
  'OpmantekBrisbane-Global2Global' => {
    'Customer' => 'Opmantek-Global',
    'Location' => 'Brisbane, Queensland',
    'Group' => 'Brisbane'
  },
  'OpmantekMexicoCity-Global3Global' => {
    'Customer' => 'Opmantek-Global',
    'Location' => 'Mexico City, Mexico',
    'Group' => 'MexicoCity'
  },
  'OpmantekNewYorkCity-Global4Global' => {
    'Customer' => 'Opmantek-Global',
    'Location' => 'New York City, New York',
    'Group' => 'NewYorkCity'
  },
  'OpmantekGoldCoast-AU1AU' => {
    'Customer' => 'Opmantek-AU',
    'Location' => 'Bundall, Queensland',
    'Group' => 'GoldCoast'
  },
  'OpmantekBrisbane-AU2AU' => {
    'Customer' => 'Opmantek-AU',
    'Location' => 'Brisbane, Queensland',
    'Group' => 'Brisbane'
  },
 'OpmantekMexicoCity-NA1NA' => {
    'Customer' => 'Opmantek-NA',
    'Location' => 'Mexico City, Mexico',
    'Group' => 'MexicoCity'
  },
  'OpmantekNewYorkCity-NA2NA' => {
    'Customer' => 'Opmantek-NA',
    'Location' => 'New York City, New York',
    'Group' => 'NewYorkCity'
  },
); 

...

eg: 'defaultMap' => 'Opmantek-Global'

Configuring Map Links (Network Links)

NMIS supports Links, it automatically looks at your network and determines the links it can see.  It then generates the file /usr/local/nmis8/conf/Links.nmis, you can add sections to this manually and NMIS will keep them and add more (if it finds any).  

You can configure opMaps to use the NMIS links to display links on your maps.  Have a look at the Links.nmis file.

Code Block
cat ../nmis8/conf/Links.nmis 
%hash = (
 '192.168.88.0' => {
 'link' => 'LAN',
 'depend' => 'N/A',
 'interface1' => 'FastEthernet0/0',
 'node2' => 'localhost',
 'ifSpeed' => 100000000,
 'node1' => 'asgard',
 'net' => 'wan',
 'interface2' => 'eth0',
 'ifIndex2' => 2,
 'subnet' => '192.168.88.0',
 'role' => 'core',
 'ifIndex1' => 1,
 'mask' => '255.255.255.0',
 'ifType' => 'ethernetCsmacd'
 }
);

We will use this link named "192.168.88.0" as a link in our maps.  We need to modify the MapLinks.nmis file to add links to the maps, the default MapLinks.nmis looks like the example below.  

Code Block
cat conf/MapLinks.nmis 
%hash = (
  'Link1' => {
    'Group1' => 'WAN1',
    'Group2' => 'Sales1',
    'Link' => 'BobLan'
  },
  'Link2' => {
    'Group1' => 'xAN1',
    'Group2' => 'DataCenter1',
    'Link' => 'IPTV'
  },
  'Link3' => {
    'Group1' => 'Cloud',
    'Group2' => 'HQ',
    'Link' => 'WANEDGE'
  }
);

The Group name is actually Map Entry name, from the example before it would be GoldCoast-AU for the GoldCoast group in the Map Opmantek-AU.

Code Block
%hash = (
  'Link1' => {
    'Group1' => 'GoldCoast-AU',
    'Group2' => 'Brisbane-AU',
    'Link' => '192.168.88.0'
  },
  'Link2' => {
    'Group1' => 'NewYorkCity-NA',
    'Group2' => 'MexicoCity-NA',
    'Link' => '192.168.88.0'
  },
  'Link3' => {
    'Group1' => 'GoldCoast-Global',
    'Group2' => 'Brisbane-Global',
    'Link' => '192.168.88.0'
  },
  'Link4' => {
    'Group1' => 'NewYorkCity-Global',
    'Group2' => 'MexicoCity-Global',
    'Link' => '192.168.88.0'
  },
  'Link5' => {
    'Group1' => 'NewYorkCity-Global',
    'Group2' => 'Brisbane-Global',
    'Link' => '192.168.88.0'
  },
);

This will create the links and use the status and interface utilisation of the link to color code the map, if the interface goes down, the link will change color.

Configure Map Types

By default opMaps will display a "TERRAIN" style map, to use an alternate map style, open the Maps.nmis file in /usr/local/opmantek/conf/

...