Popularity
6.3
Declining
Activity
0.0
Stable
13
3
3

Monthly Downloads: 51
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Network     Language    
Latest version: v0.2.0.0

snmp alternatives and similar packages

Based on the "Networking" category.
Alternatively, view snmp alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of snmp or a related project?

Add another 'Networking' Package

README

snmp

Build Status Gitter chat

SNMP protocol implementation. Supports v1, v2c and v3 versions.

Usage example:

import Network.Protocol.Snmp
import Control.Applicative
import Network.Socket.ByteString (recv, sendAll)
import Network.Socket hiding (recv, sendAll)

-- create new empty packet
v2 :: Packet
v2 = initial Version2

community = Community "hello"

oi = Coupla [1,3,6,1,2,1,1,4,0] Zero

-- set community, oid
packet :: Community -> Coupla -> Packet
packet community oi =
  setCommunityP community . setSuite (Suite [oi]) $ v2

-- here must be code for create udp socket
makeSocket :: Hostname -> Port -> IO Socket
makeSocket = undefined

main :: IO ()
main = do
   socket <- makeSocket "localhost" "161"
   sendAll socket $ encode $ setRequest (GetRequest 1 0 0) packet
   result <- decode <$> recv socket 1500 :: IO Packet
   print $ getSuite result