10 More Discussions You Might Find Interesting
1. Programming
DELETED (2 Replies)
Discussion started by: ProgMan2015
2 Replies
2. UNIX for Dummies Questions & Answers
Edit: Sorry. Mistakenly posted - please delete (3 Replies)
Discussion started by: Reddax
3 Replies
3. Shell Programming and Scripting
Hello
Does the unix korn shell provide a function to convert number entered in command line argument to text or Character so that in next step i will convert Chr to Hex (6 Replies)
Discussion started by: aadityapatel198
6 Replies
4. Shell Programming and Scripting
I am trying to create a script that will accept multi input from the user (really just me), then execute those command on a remote device.
My question is if the I enter "No" at the confirmation point "Are these statements correct y or n ?", what is the best way to go back and start over ? I... (3 Replies)
Discussion started by: popeye
3 Replies
5. UNIX for Dummies Questions & Answers
does anyone can help me with this homework, please..I am beginner in linux and I don't how to do it :(
Create a script scanner.sh which will accept two arguments: the first argument is the DNS name or the IP address of a system, or a network address or an IP range, the second argument is... (1 Reply)
Discussion started by: gennyy
1 Replies
6. Shell Programming and Scripting
Hi,
I am not very skilled using ksh scripts.
How do I create a ksh script that will accept arguments and use them in the script ?
I need to make this:
Run this command with this argument:
./mykshprogram.ksh madsen
and sometimes I need to do this:
Run the ksh again with 2... (3 Replies)
Discussion started by: hasselhaven
3 Replies
7. Homework & Coursework Questions
Hi,
I am creating a program with the C language that simulates the WC command in Unix. My program needs to count lines, bytes and words. I have not added the code to count bytes and words yet. I am having trouble understanding what the file option/flag '-' does. I can not visualize how it moves... (1 Reply)
Discussion started by: heywoodfloyd
1 Replies
8. Homework & Coursework Questions
I have no idea what the following means. The teacher is too advanced for me to understand fully. We literally went from running a few commands over the last few months to starting shell scripting. I am not a programmer, I am more hardware oriented. I wish I knew what this question was asking... (3 Replies)
Discussion started by: Wookard
3 Replies
9. Shell Programming and Scripting
In the make file
update updateq:
-------------------
----------
i want the makefile to display some messages when user gives "make update", but totally quite wehn user enters "make updateq". Can u tell me how to read these argument in makefile.
$1 doesnt work:( (3 Replies)
Discussion started by: vikashtulsiyan
3 Replies
10. Shell Programming and Scripting
Hi everybody, i want to make an argument at echo command that takes a alpharithmetic and returns it reversed. How this can be done? plus what makefile changes are needed (0 Replies)
Discussion started by: Panteras
0 Replies
SNMPKEY(1p) User Contributed Perl Documentation SNMPKEY(1p)
NAME
snmpkey - Create SNMPv3 security keys for the Net::SNMP module
USAGE
The "snmpkey" utility generates security keys based on a password and an authoritativeEngineID passed on the command line. This key can
then be used by the Net::SNMP module instead of the plain text password when creating SNMPv3 objects.
snmpkey <authProto> <password> <authEngineID> [<privProto> [<password>]]
DESCRIPTION
The User-based Security Model used by SNMPv3 defines an algorithm which "localizes" a plain text password to a specific
authoritativeEngineID using a one-way hash. This resulting key is used by the SNMP application instead of the plain text password for
security reasons.
The Net::SNMP module allows the user to either provide a plain text password or a localized key to the object constructor when configuring
authentication or privacy. The "snmpkey" utility can be used to generate the key to be used by the -authkey or -privkey named arguments
when they are passed to the Net::SNMP "session()" constructor.
REQUIRED ARGUMENTS
The "snmpkey" utility requires at least three command line arguments. The first argument defines which hash algorithm to use when creating
the authKey. Either HMAC-MD5-96 or HMAC-SHA-96 can be specified with the string 'md5' or 'sha' respectively. This choice must match the
algorithm passed to the -authprotocol argument when creating the Net::SNMP object. The second argument is the plain text password that is
to be localized to create the authKey. The third required argument is the authoritativeEngineID of the remote SNMP engine associated with
the Net::SNMP argument -hostname. The authoritativeEngineID is to be entered as a hexadecimal string 10 to 64 characters (5 to 32 octets)
long and can be prefixed with an optional "0x".
The last two arguments are optional and can be used to determine how the privKey will be generated. By default, the fourth argument
assumes a value of 'des' corresponding to the default privacy protocol defined in the User-based Security Model. The Net::SNMP module
supports CBC-3DES-EDE and CFB128-AES-128 as alternatives to the default protocol CBC-DES. These protocols can be chosen by specifying the
string '3des' or 'aes' respectively. This choice must match the protocol passed to the -privprotocol argument when creating the Net::SNMP
object. The last argument can be used to specify the plain text password that is to be localized to create the privKey. If this argument
is not specified, the authKey password is used.
AUTHOR
David M. Town <dtown@cpan.org>
LICENSE AND COPYRIGHT
Copyright (c) 2001-2009 David M. Town. All rights reserved.
This program is free software; you may redistribute it and/or modify it under the same terms as the Perl 5 programming language system
itself.
SEE ALSO
Net::SNMP
perl v5.12.4 2011-08-24 SNMPKEY(1p)