I need help please.

I can start the snmpd like this:

claus-kleins-macbook-pro:net-snmp clausklein$ sudo ./agent/snmpd -mall  
-Mmibs -f -Le -c /etc/snmp/snmpd.conf -Dssh ssh:localhost
registered debug token ssh, 1
ssh: registering the ssh domain
Turning on AgentX master support.
ssh: here: /var/net-snmp/sshdomainsocket, 0, 0, 0
Opened connection.
NET-SNMP version 5.7
c64 32 bit check failed
Error expanding ifHCInOctets to 64bits
c64 32 bit check failed
Error expanding ifHCInUcastPkts to 64bits
c64 32 bit check failed
Error expanding ifHCInUcastPkts to 64bits
c64 32 bit check failed
Error expanding ifHCOutOctets to 64bits
c64 32 bit check failed
Error expanding ifHCOutUcastPkts to 64bits
c64 32 bit check failed
c64 32 bit check failed
c64 32 bit check failed
c64 32 bit check failed
Error expanding ifHCInMulticastPkts to 64bits
^CReceived TERM or STOP signal...  shutting down...
ssh: close fd 5
claus-kleins-macbook-pro:net-snmp clausklein$


with this  at may authorized_keys file:
         command="/Users/clausklein/Workspace/c/net-snmp/apps/ 
sshtosnmp" ssh-rsa AAAA1234...==

claus-kleins-macbook-pro:net-snmp clausklein$ ./apps/snmpstatus -m all  
-M mibs --defSecurityModel=tsm -r0 -Dssh,tdomain,sess,snmp -- 
sshusername=clausklein --sshpublickey=${HOME}/.ssh/id_rsa.pub -- 
sshprivatekey=${HOME}/.ssh/id_rsa ssh:localhost:22
registered debug token ssh, 1
registered debug token tdomain, 1
registered debug token sess, 1
registered debug token snmp, 1
snmp_parse_args: handling (#9): -
snmp_config: remembering line "sshusername clausklein"
snmp_parse_args: handling (#10): -
snmp_config: remembering line "sshpublickey /Users/clausklein/.ssh/ 
id_rsa.pub"
snmp_parse_args: handling (#11): -
snmp_config: remembering line "sshprivatekey /Users/clausklein/.ssh/ 
id_rsa"
snmp_parse_args: finished: 11/12
snmpv3: set default version to 3
snmpv3: default secLevel set to: noAuthNoPriv = 1
snmp_alarm: no alarms found to schedule
tdomain: tdomain_transport_full("snmp", "ssh:localhost:22", 0, "udp",  
"[NIL]")
tdomain: Found domain "ssh" from specifier "ssh"
tdomain: trying domain "ssh" address "localhost:22" default address  
"[NIL]"
ssh: Fingerprint: eb58533e5676fc948765bfdc102a0067
Authentication methods: publickey,password,keyboard-interactive
        Authentication by public key succeeded.
Failed to request the ssh 'snmp' subsystem
Failed to establish an SSH session
ssh: close fd 3
snmpstatus: Unknown host (ssh:localhost:22) (No such file or directory)
claus-kleins-macbook-pro:net-snmp clausklein$



What is the right way to use ssh transport?

//regards,
Claus

On 27.07.2011, at 23:04, Claus Klein wrote:

> I want to test SSH transport feature.
>
> First of all, it does not compile on MAC-OX?
>
> With this patch, it compiles, but now I have no idea how to test it.
> I can't find any tutorial or description how to use this SNMP  
> transport domain?
>
> //regards,
>
> Claus
> <SSHDomain.diff>
> ------------------------------------------------------------------------------
> Got Input?   Slashdot Needs You.
> Take our quick survey online.  Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey_______________________________________________
> Net-snmp-coders mailing list
> Net-snmp-coders@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to