I try to use SNMP module (QuickLisp installation). I have a problem with data type for :md5 parameter:
Code: Select all
(defun get-info (hash)
(format t "~A~%" (type-of (gethash "PASSWORD" hash)))
(format t "~A~%"
(snmp:with-open-session
(s (gethash "HOST" hash)
:user (gethash "USERNAME" hash)
:auth '(:md5 (gethash "PASSWORD" hash))) <-- here
(snmp:snmp-walk s (gethash "OPTION" hash)))))

If I try to use this code, it works:
Code: Select all
(defun get-info (hash)
(format t "~A~%"
(snmp:with-open-session
(s (gethash "HOST" hash)
:user (gethash "USERNAME" hash)
:auth '(:md5 "PaSsWoRd"))
(snmp:snmp-walk s (gethash "OPTION" hash)))))
Does anybody know how to fix it? What exactly returns SBCL by calling gethash and why :md5 doesn't accept it?
Thank you!