snmp config grab - right off Ciscos Page

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Infrastructure Monitoring snmp config grab - right off Ciscos Page
# 1  
Old 07-17-2009
snmp config grab - right off Ciscos Page

I need to update my scripts. I have been using depreciated oids.

I referred to the Cisco site docs and found

snmpset -v 2c -c .1.3.6.1.4.1.9.9.96.1.1.1.1.2. i 1
.1.3.6.1.4.1.9.9.96.1.1.1.1.3. i 4
.1.3.6.1.4.1.9.9.96.1.1.1.1.4. i 1
.1.3.6.1.4.1.9.9.96.1.1.1.1.5. a ""
.1.3.6.1.4.1.9.9.96.1.1.1.1.6. s ""
.1.3.6.1.4.1.9.9.96.1.1.1.1.14. i 4

I send in v1 and v2c

snmpset -v 1 -c xxxxx 10.131.255.40 .1.3.6.1.4.1.9.9.96.1.1.1.1.2.111 i 1

snmpset -v 1 -c xxxxx 10.131.255.40 .1.3.6.1.4.1.9.9.96.1.1.1.1.3.111 i 4

snmpset -v 1 -c xxxxx 10.131.255.40 .1.3.6.1.4.1.9.9.96.1.1.1.1.4.111 i 1

snmpset -v 1 -c xxxxx 10.131.255.40 .1.3.6.1.4.1.9.9.96.1.1.1.1.5.111 a "10.10.57.72"


snmpset -v 1 -c xxxxxx 10.131.255.40 .1.3.6.1.4.1.9.9.96.1.1.1.1.6.111 s "file.nam"

snmpset -v 1 -c xxxxxx 10.131.255.40 1.3.6.1.4.1.9.9.96.1.1.1.1.14.111 i 4

right after this oid, initiate transfer, is pushed down ... I receive
Error in packet.
Reason: (badValue) The value given has the wrong type or length.
Failed object: SNMPv2-SMI::enterprises.9.9.96.1.1.1.1.14.111

I need another set of eyes !!!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need to transfer all kernel logs (var/log/messages) to the snmp listener as snmp trap

i am working with embedded system -Dell DCS management sub system. my question is as below: currently we are using linux kernel 2.6.30 build and we have a kernel logs stored to the /var/log/messages path. now we have to transfer all this logs to the specified SNMP target as a part of SNMP... (4 Replies)
Discussion started by: vipul_prajapati
4 Replies

2. Infrastructure Monitoring

SNMP traps to SNMP server

Dear Champs, I am new to unix, and need to configure linux server to send below traps to a SNMP server. Monitoring TRAP Disk Space Low Monitoring TRAP Memory Low Monitoring TRAP CPU high Monitoring TRAP Admin login/Logoff Please help me how to send this information to my SNMP server... (2 Replies)
Discussion started by: stavar
2 Replies

3. IP Networking

SNMP Problem - SNMP not getting to the agent.

I am having a problem with an SNMP event, and I am not sure where I should be looking to solve this problem. Description: There is an SNMP event in our system that for one reason or another is not getting sent out as an email because it is never getting to our SNMP agent. I see where the... (0 Replies)
Discussion started by: broberts
0 Replies

4. HP-UX

How to config SNMP for hp-ux 11.31?

Hi! Please can you help me to configure SNMP to be used by another application on port 161? The aim is to monitor CPU, Memory and disk parameters. Hi have the following files in my hp-ux system: /etc/SnmpAgent.d/snmpd.conf /etc/snmpd.conf /usr/newconfig/etc/SnmpAgent.d/snmpd.conf ... (1 Reply)
Discussion started by: fretagi
1 Replies

5. Shell Programming and Scripting

Writing an snmp script to grab multiple oids at once

is it possible to grab the following oids with one invocation of the snmp command, instead of having to run separate commands: snmpwalk -v2c -c commst hostname hrStorageUsed snmpwalk -v2c -c commst hostname hrStorageDescr snmpwalk -v2c -c commst hostname hrStorageAllocationUnits ... (2 Replies)
Discussion started by: SkySmart
2 Replies

6. Red Hat

Sending data from DELL OMSA SNMP and Custom SNMP MIB to same UDP port 161

Hi , Currently DELL OMSA SNMP sends data through default udp port 161.I want my custom SNMP MIB also to send data in the same udp port 161.Whether its possible.If yes where to configure .I tried starting my custom MIB in udp port 161,but it throws port already in use.Kindly guide. (1 Reply)
Discussion started by: prabakar4all
1 Replies

7. IP Networking

Sending data from DELL OMSA SNMP and Custom SNMP MIB to same UDP port 161

Hi , Currently DELL OMSA SNMP sends data through default udp port 161.I want my custom SNMP MIB also to send data in the same udp port 161.Whether its possible.If yes where to configure .I tried starting my custom MIB in udp port 161,but it throws port already in use.Kindly guide. (0 Replies)
Discussion started by: prabakar4all
0 Replies

8. Emergency UNIX and Linux Support

Grab total page read from webalizer display in html

Hi, I need a way to grab the total combines since inception, total pages read from webalizer on my centos server or any other location (as long as since inception) and display the result live on my website So with each visit it would be increasing, or perhaps live (ajax) not sure But can... (0 Replies)
Discussion started by: lawstudent
0 Replies

9. Shell Programming and Scripting

Shell script that will compare two config files and produce 2 outputs 1)actual config file 2)report

Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated. script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made. OS :Susi linux ver 10.3. ... (4 Replies)
Discussion started by: muraliinfy04
4 Replies

10. Infrastructure Monitoring

net-snmp-config --create-snmpv3-user snmpengineID

Solaris 10 -- I created SNMPv3 users with net-snmp-config --create-snmpv3-user command. I am using HP Network Node Manager's SNMPv3 Smart Plugin to serve as the SNMP management server. Some SNMPv3 users were automatically created with the same snmpengineID. This causes NNM's brassagt proxy to... (0 Replies)
Discussion started by: rjsteele
0 Replies
Login or Register to Ask a Question
SNMPSET(1)							     Net-SNMP								SNMPSET(1)

NAME
snmpset - communicates with a network entity using SNMP SET requests SYNOPSIS
snmpset [COMMON OPTIONS] AGENT OID TYPE VALUE [OID TYPE VALUE]... DESCRIPTION
snmpset is an SNMP application that uses the SNMP SET request to set information on a network entity. One or more object identifiers (OIDs) must be given as arguments on the command line. A type and a value to be set must accompany each object identifier. Each variable name is given in the format specified in variables(5). The TYPE is a single character, one of: i INTEGER u UNSIGNED s STRING x HEX STRING d DECIMAL STRING n NULLOBJ o OBJID t TIMETICKS a IPADDRESS b BITS Most of these will use the obvious corresponding ASN.1 type. 's', 'x', 'd' and 'b' are all different ways of specifying an OCTET STRING value, and the 'u' unsigned type is also used for handling Gauge32 values. If you have the proper MIB file loaded, you can, in most cases, replace the type with an '=' sign. For an object of type OCTET STRING this will assume a string like the 's' type notation. For other types it will do "The Right Thing". For example: snmpset -c private -v 1 test-hub system.sysContact.0 s dpz@noc.rutgers.edu ip.ipforwarding.0 = 2 will set the variables sysContact.0 and ipForwarding.0: 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 will be returned and a message will be shown, helping to pinpoint in what way the request was malformed. OPTIONS
snmpset takes the common options described in the snmpcmd(1) manual page. Note that snmpset REQUIRES an argument specifying the agent to query and at least one set of OID/type/value arguments, as described in there. SEE ALSO
snmpcmd(1), variables(5). V5.6.2.1 19 Jun 2003 SNMPSET(1)