Function: Create a SNMP Device

by Simon Sparks · 18 September 2021

To use this function add it to the class library file named OrchestratorService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: OrchestratorService.ts

Description: Orchestrator Function to Create a vCenter SNMP Device

Function SNMPDeviceCreate

public SNMPDeviceCreate(strFQDN: string, strName: string, intPort: number, strCommunity: string, strVersion: string = "V2C"): SNMPSnmpDevice | void {

    try {
        let objSNMPSnmpDevice: SNMPSnmpDevice = SnmpService.createSnmpDeviceV1V2c(strFQDN, strName, intPort, strCommunity, strVersion);

        return objSNMPSnmpDevice
    }
    catch (objException) {
        return null;
    }
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like