Configuring configlets in OpManager NCM

Configuring configlets in OpManager NCM

Manage Engine has written instruction on using and creating configlets. The link in this KB may be changed if Manage Engine update it, but for now it is a source for other NCM info as well

https://www.manageengine.com/network-configuration-manager/help/automation-using-configlets-v12.html


Adding a configlet to OpManger

This document needs additional information at the bottom if a complete set of examples are required.


Introduction

This is a basic execution mode used to run commands as if you were logged into the CLI yourself.

·         Log into OpManager and navigate to ‘Settings > NCM > Configlets’

·         Add a name typically leading with MiMOMax to help search for MiMOMax related tasks

·         Choose the ‘Script Execution Mode’

·         Add a description to suit.


The backup option is unchecked as we have not done this in the past. The customer may have NCM set to capture Running configs for comparison, so they may want it enabled.



 Executing Script Execution Mode

Configlets can be run manually or as part of workflow. Manually running them is done through the NCM settings page.

·         Navigate to ‘Setting > NCM > Configlets

·         Filter the MiMOMax configlets or look down the list of available configlets

·         Select the Execute Configlet Icon



·         Choose the radio or radios from the list or change to the Device Groups option


·         Execute the configlet



Wait until the process is completed then select the executed configlet to see the CLI results



Once the configlet is complete you can check the CLI results



Adding Advanced Script Execution Mode

customScript.bfe

transfer otap image local scp 10.210.1.11 computer /home/tech/torn_software_04.04.01.bz2


OpManager can use have a configlet written that allows for the transfer for files from the OpManager server to a MMX Radio. This could be used to upload a customr banner of any other file you need to place in the /tmp/upload directory on a radio

Example line in the configlet below.
scp_transfer "/home/tech/test.bfe" "/tmp/upload/"