On 21/03/07, Chandrakant Kumar <[EMAIL PROTECTED]> wrote: > I have to use device port in UCD-snmp version: 4.1.1
Why? That particular release is over seven years old (and pre-dates our move to Source Forge). It's not even the most recent version on the 4.1.x line, quite apart from the v4.2.x line which replaced it. None of this code is under development any more. All support is aimed at the more recent releases (5.2.x and above) > but when i include device port as follows : > snmpget -v 2c -c respcom deviceIp:161 .1.3.6.1.2.1.1.3.0 > its giving the result like this > snmpget: Unknown host (No such file or directory) Correct. The v4 line was very IP-specific, and used the '-p' flag to specify a particular UDP port. The v5 line introduced a much more flexible transport mechanism, and incorporated the port information (or equivalent end-point specification for other transports) into the address string. > when i use > snmpget -v 2c -c respcom deviceIp -p 161 .1.3.6.1.2.1.1.3.0 > but again when i go for higer(>5.0) versions its says > Warning: -p option is no longer used - specify the remote host as HOST:PORT Correct. Not all transports use numeric ports to listen on, so the '-p' flag was withdrawn for the v5 line (over five years ago). > Is there any generic command so i can use it for higher and lower versions? No. The old v4 code used -p, the new v5 code uses a transport-independent parameter. You can't use exacty the same incantation for both. Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
