Hello,

I was hoping someone could help me figuring out why snmpwalk (5.4)
parsing command-line arguments differently under Solaris than Linux.

Under Solaris:

"snmpwalk hostname -c community_string -v 2c OID" would return an error:

No community name specified.

USAGE: snmpwalk [OPTIONS] AGENT [OID]


5.0.9 gave a different error:

snmpwalk: No securityName specified


But the same line works well under Linux. It works with all three ways
below:

"snmpwalk hostname -c community_string -v 2c OID"

"snmpwalk -v 2c -c community_string hostname OID"
 
"snmpwalk -c community_string -v 2c hostname OID"
 
Why can't we put hostname as the 1st command-line argument under Solaris?

Many thanks,

Alan

-------------------------------------------------------------------------
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
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to