# modifyport - TCP port for modifying information. # port - TCP port for querying information. # ssl - SSL enabled (1 - default) or disabled (0) # username - Username of Administrator user # hostname - IP or hostname of Intermapper 5.x and 6.x server My $intermapper = Net::Intermapper->new(hostname=>"10.0.0.1", username=>"admin", password=>"nmsadmin") The full text of the license can be found in the LICENSE file included with this module.Net::Intermapper::Device - Interface with the HelpSystems Intermapper HTTP API - Devices SYNOPSIS use Net::Intermapper This program is free software licensed under the. Moose IO::Socket::SSL LWP::UserAgent XML::Simple MIME::Base64 URI::Escape Text::CSV_XS BUGS REQUIREMENTSįor this library to work, you need an instance with Intermapper (obviously) or a simulator like Net::Intermapper::Mock. This variable will contain detailed error information. Internal method to properly format the data and header for CRUD actions. This is handled through the create, update and delete method and should not really be used. Used in combination with the header and the format method in Net::Intermapper to perform CRUD actions. Returns the object data formatted in XML format. Returns the object data formatted in Comma Separated delimited format. Returns the object data formatted in TAB delimited format. Returns the directive aka data header required by the Intermapper API to perform CRUD actions. True if the map is enabled for layer 2 polling. Identifier of the map in the IMID format. DataRetentionPolicy (read-only)ĭatabase retention policy. This value is used for lookups in the users method in Net::Intermapper.įull path of the map, including the name of the map. Attributes are: MapId (read-only)Ī unique, persistant identifier for this map instance. Returns object of Net::Intermapper::Map on succes. My $intermapper = Net::Intermapper->new(hostname => '10.0.0.1', username => 'admin', password => 'nmsadmin') USAGE newĬlass constructor. Net::Intermapper::Device is a perl wrapper around the HelpSystems Intermapper API provided through HTTP/HTTPS for access to map information.Īll calls are handled through an instance of the Net::Intermapper class. This will NOT affect the smart-caching (only explicit calls to create, update and delete do this - for now). # But it can be done with users, devices, interfaces, maps and vertices # At this point, there is no real reason to do this as update, create and delete work with explicit arguments. # Retrieve all vertices from Intermapper, Net::Intermapper::Vertice instances My $vertices_ref = $intermapper->vertices # Retrieve all interfaces from Intermapper, Net::Intermapper::Interface instances My $interfaces_ref = $intermapper->interfaces My %interfaces = $intermapper->interfaces # Retrieve all maps from Intermapper, Net::Intermapper::Map instances # Retrieve all devices from Intermapper, Net::Intermapper::Device instances # Returns hash or hashref, depending on context # Retrieve all users from Intermapper, Net::Intermapper::User instances # cache - Boolean to enable smart caching or force network queries Net::Intermapper::Map - Interface with the HelpSystems Intermapper HTTP API - Maps SYNOPSIS use Net::Intermapper
0 Comments
Leave a Reply. |