Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set SNMP variables in multiple nodes

Status
Not open for further replies.

erikchess

Technical User
Jul 29, 2003
2
NL
We are currently evaluating NNM to manage 2000 nodes. Would it be possible to select a number of nodes (500 or so), and
then set a specific SNMP variable to a certain value in
all these selected nodes with a single mouse-click (instead of selecting a single node, set the SNMP variable, select the next node, set the SNMP variable, etc...).

 
Depends on what the nodes are. We have comm nodes that we monitor and use an expect script to set all community strings of all nodes using it.

Blue
 
The nodes are in fact embedded network nodes (machine
control). Each node has, lets say, a SNMP variable called
resetDevice, and when this is set by the SNMP manager,
the device should reset itself. What we like to do, is to select
a group of these devices and set this variable on all
those device with a single mouse stroke (or command). We
are not sure if the NNM allows us to do this. Please advice
if, and how this can be done.
 
Hope I am not to late.

If you are looking to for a network management tool. Check out Tivoli NetView. MUCH better product. It does the same type of discovery and management, but is not as may problems and better interface.

Trust me I have been useing NetView and HP OpenView for 3+ years now and I depend on NetView to give me the info that HP OpenView is missing.

Dan
 
Hi, yes, you can use the 'snmpset' command to acomplish that, selecting the nodes from NNM or just having a script with a list of host/IP adresses, below is an example of a "reload script using snmpset".

If they are all the same kind of device, with the same RW community, you must only supply the list of hosts and that is pretty easy.

I don't exactly remember how to add this script as an application under NNM, but it was simple to do, no big deal.Can look for info on this if you need it, ok?

---------Example for Cisco switches-------------
sysReset = .1.3.6.1.4.1.9.2.9.9 from the CISCO-STACK-MIB.my sysReset OBJECT-TYPE
-- FROM CISCO-STACK-MIB
SYNTAX Integer { other(1), reset(2), resetMinDown(3) }
MAX-ACCESS read-write
STATUS Current
DESCRIPTION "Writing reset(2) to this object resets the control logic of all modules in the system. Writing resetMinDown(3) to this object resets the system with the minimal system down time. The resetMinDown(3) is only supported in systems with redundant supervisors."

::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) cisco(9) workgroup(5) ciscoStackMIB(1) systemGrp(1) 9 }
On the Cisco switch, you must set the following command in order to support the reload command:
set snmp community read-write private

The example below reloads the router with IP address 10.16.99.55:

# ./snmpset 10.16.99.55 private .1.3.6.1.4.1.9.2.9.9.0 i 2

Explanation of the above used variables:

10.16.99.55 = ip address of your switch
private = R/W SNMP Community string of your switch .
1.3.6.1.4.1.9.2.9.9.0 = sysReset SNMP MIB OID
i = Integer as defined SYNTAX in the MIB
2 = reload command as defined in the MIB

Hope this helps,
vlan52
[sunshine]

vlan52
The end of wisdom is freedom. The end of culture is perfection. The end of
education is character. The end of knowledge is love.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top