extenzo / cSNMP

PowerShell SNMP Resource for DSC
15 stars 6 forks source link

Fix issues 2 and 5 #6

Closed fabiendibot closed 7 years ago

fabiendibot commented 7 years ago

Now you can use ANY keyword in the cSNMPManager resource. I'll enable the possibility to get SNMP from any hosts.

Get-DSCConfiguration is also fixed

Configuration Test {

    Import-DscResource -ModuleName cSNMP
    Import-DscResource –ModuleName PSDesiredStateConfiguration
    Node localhost {
        WindowsFeature SNMPService {
            Name = 'SNMP-Service'
            Ensure = 'Present'

        }

        WindowsFeature SNMPRSAT {
            Name = 'RSAT-SNMP'
            Ensure = 'Present'

        } 

        cSNMPCommunity Community {
            Community = "Test"
            Right = "ReadOnly"
            Ensure = "Present"
            DependsOn = '[WindowsFeature]SNMPRSAT' 

        }
        cSNMPManager SNMPServer {
            Manager = 'any'
            Ensure = 'Present'
            DependsOn = '[WindowsFeature]SNMPRSAT' 
        }  
    }
}