11-10-2008
Thanks for your response.Can you please tell me what will be the response of an snmpset variable call to a non-existing variable across the network?
I mean let us take the scenario of session. I want to set a particular value for a session variable across the network,if the session is active. Incase if it is notactive i can't able to set the value since it is not in scope.
So i want to know in the above case whether we will get the same response as i posted or a different one? Please suggest
With Regards
Dileep Pattayath
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
occasionally my server gives this error messages
"NOTICE:HTFS Out of inodes on HTFS dev hd (1/42)"
why ??
Alice. (3 Replies)
Discussion started by: alisev
3 Replies
2. UNIX for Dummies Questions & Answers
Hi everyone,
Can anyone explain what the following error refers to...and perhaps a solution?
vxfs: vx_nospace -/tmp file system full (8 block extent)
Thanks,
Uni (2 Replies)
Discussion started by: Uni
2 Replies
3. UNIX for Advanced & Expert Users
I'm getting an error - symbol referencing errors. No output written to, etc
Can anybody tell me why this is? (2 Replies)
Discussion started by: Dan Rooney
2 Replies
4. Solaris
Hi,
My Solaris 5.8 system keeps getting this error at boot -
"Can't set vol root to /vol"
then
/usr/sbin/vold: can't set vol root to /vol: Resource temporarily unavailiable
Any idea what is wrong, and how do I fix it? (0 Replies)
Discussion started by: ghuber
0 Replies
5. UNIX for Advanced & Expert Users
Hi,
My Solaris 5.8 system keeps getting this error at boot -
"Can't set vol root to /vol"
then
/usr/sbin/vold: can't set vol root to /vol: Resource temporarily unavailiable
Any idea what is wrong, and how do I fix it? (1 Reply)
Discussion started by: ghuber
1 Replies
6. UNIX for Dummies Questions & Answers
Question for unix programmers - what function I need to used to get the exact error message when the library failed to load?
Thanks (1 Reply)
Discussion started by: tttttt
1 Replies
7. Shell Programming and Scripting
I am new to scripting.
I am using the following script . BART.dat contains the string 'Y' .
#!/bin/ksh
cd /work/TCI/data_out
file=`cat BART.dat`
echo "$file"
if ; then
echo "true"
fi
When i am executing the above script i am getting the following error
./s.ksh: : not found
... (2 Replies)
Discussion started by: ammu
2 Replies
8. UNIX for Dummies Questions & Answers
What does this means?
- ERROR OPENING FILE - KEY LENGHT MISMATCH (2 Replies)
Discussion started by: RDM00
2 Replies
9. UNIX for Dummies Questions & Answers
I keep getting an error message in a script im writing, this line is allways pointed out.
if
and this is the message i keep getting.
line 32: [: 8: unary operator expected
Whats wrong with it?
Please Help. (5 Replies)
Discussion started by: chapmana
5 Replies
LEARN ABOUT SUNOS
snmpset
snmpset(1M) System Administration Commands snmpset(1M)
NAME
snmpset - communicate with a network entity using SNMP SET requests
SYNOPSIS
snmpset [common options] oid type value [oid type value...]
DESCRIPTION
The snmpset utility is an SNMP application that uses the SNMP SET request to set information on a network entity. A type and a value must
accompany each object identifier. Each variable name must be entered in the format specified in snmp_variables(4).
The type is a single character, one of:
i INTEGER
u UNSIGNED
c COUNTER32
s STRING
x HEX STRING
d DECIMAL STRING
n NULLOBJ
o OBJID
t TIMETICKS
a IPADDRESS
b BITS
If you have the proper MIB file loaded, you can, in most cases, replace the type with an equal sign (=). For an object of type OCTET STRING
this assumes a string such as the "s"-type notation. For other types, snmpset interprets the data in the way you would expect.
For example, the command:
snmpset -c private -v 1 test-hub system.sysContact.0 s dpz@noc.rutgers.edu
ip.ipforwarding.0 = 2
sets the variables sysContact.0 and ipForwarding.0, as follows:
system.sysContact.0 = STRING: "dpz@noc.rutgers.edu"
ip.ipForwarding.0 = INTEGER: not-forwarding(2)
If the network entity has an error processing the request packet, an error packet is returned and a message displayed, indicating the way
in which the request was malformed.
OPTIONS
snmpset takes the common options described in the snmpcmd(1M) manual page.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsmcmd |
+-----------------------------+-----------------------------+
|Interface Stability |External |
+-----------------------------+-----------------------------+
EXIT STATUS
0
Successful completion.
1
A usage syntax error. A usage message is displayed. Also used for timeout errors.
2
An error occurred while executing the command. An error message is displayed.
SEE ALSO
snmpcmd(1M), snmp_variables(4), attributes(5)
SunOS 5.10 20 Jan 2004 snmpset(1M)